/* Original responsive styles preserved */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #333;
}

/* Estilos para coincidir con la web de referencia */
.overlay-swampy-strong {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
    position: relative;
}

.overlay-swampy-strong::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/img/Despacho_1.jpg') center/cover;
    opacity: 0.3;
    z-index: -1;
}

/* Estilos para el contenido principal */
.s-basic {
    padding: 60px 0;
    position: relative;
}

.wnd-align-center {
    text-align: center;
}

.wsw-17, .wsw-33, .wsw-43, .wsw-47 {
    color: #000;
    font-weight: bold;
}

.wnd-font-size-140 {
    font-size: 1.4em;
}

/* Título principal */
h1 {
    font-size: 2.5em;
    margin: 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h3 {
    font-size: 1.8em;
    margin: 15px 0;
    line-height: 1.4;
}

/* Contenedor de contenido */
.s-c {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    background-color: #000;
    border-bottom: 1px solid #eaeaea;
    font-size: 12px;
    color: #666;
}

.top-bar .social-icons a {
    margin-right: 15px;
    color: #666;
    text-decoration: none;
}

.main-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 40px 10px 40px;
    background-color: #000;
    gap: 40px;
}

/* Estilos del contenedor del logo - solo para estructura antigua */
.main-header .logo-container {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-header nav {
    flex: 1 1 auto;
}

.main-header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-header nav ul li {
    margin-left: 20px;
}

.main-header nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding-bottom: 5px;
}

.main-header nav ul li a.active,
.main-header nav ul li a:hover {
    border-bottom: 2px solid #007bff;
    color: #007bff;
}

/* Estilos de la imagen del logo */
.main-header .logo-container .logo {
    max-width: 40px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

img, picture, video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Excepción para el logo del header - no aplicar reglas generales */
header.Header-Main-1 img[src$=".ico"],
header.Header-Main-1 img[src*="Logo_Claro.ico"] {
    max-width: unset !important;
    height: unset !important;
}

/* Ajustes para pantallas más pequeñas - solo para estructura antigua */
@media (max-width: 768px) {
    .main-header .logo-container {
        width: 35px;
        height: 35px;
        margin-right: 10px;
    }
}

/* Estilos para el footer de contacto */
.b-c.b-text-c {
    width: 100%;
    padding: 0 15px;
}

.contacto-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-title {
    text-align: center;
    width: 100%;
    margin-bottom: 2rem;
}

.footer-title h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

.contacto-item {
    flex: 1 1 200px;
    min-width: 200px;
    padding: 1rem;
    box-sizing: border-box;
}

.contacto-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: #222;
}

.contacto-item a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contacto-item a:hover {
    color: #004499;
    text-decoration: underline;
}

/* Media query para móviles */
@media screen and (max-width: 992px) {
    .contacto-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2.5rem;
        padding: 0 20px;
    }
    
    .contacto-item {
        width: 100%;
        max-width: 400px;
        padding: 1.5rem;
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .footer-title h2 {
        font-size: 1.5rem;
    }
    
    .contacto-item strong {
        font-size: 1.1rem;
    }
}

/* Estilos para la sección "Qué Nos Distingue" */
.s-bg-l.overlay-swampy-strong + .s-c .b-text-c {
    color: #000 !important;
}

.s-bg-l.overlay-swampy-strong + .s-c .b-text-c h2,
.s-bg-l.overlay-swampy-strong + .s-c .b-text-c p,
.s-bg-l.overlay-swampy-strong + .s-c .b-text-c strong,
.s-bg-l.overlay-swampy-strong + .s-c .b-text-c em {
    color: #000 !important;
}

/* Estilos para el menú móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1000;
    position: relative;
    width: 40px;
    height: 30px;
}

.menu-icon {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.menu-line {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.menu-line:nth-child(1) {
    top: 0;
}

.menu-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-line:nth-child(3) {
    bottom: 0;
}

/* Estado activo del botón hamburguesa */
.menu-toggle.active .menu-line:nth-child(1) {
    transform: translateY(13.5px) rotate(45deg);
}

.menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
    transform: translateY(-13.5px) rotate(-45deg);
}

/* Navegación principal */
.primary-navigation {
    flex: 1 1 auto;
}

.menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px;
}

.menu-item a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
    transition: color 0.3s ease;
}

.menu-item a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.menu-item a:hover,
.menu-item a:focus {
    color: #007bff;
}

.menu-item a:hover::after,
.menu-item a:focus::after {
    width: 100%;
}

/* Botón hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .main-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        position: relative;
    }

    .main-header .logo-container {
        z-index: 1001;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .primary-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: #000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 20px;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        overflow-y: auto;
    }

    .primary-navigation.mobile-visible {
        right: 0;
    }

    .menu {
        flex-direction: column;
        gap: 10px;
    }

    .menu-item a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .menu-item a::after {
        display: none;
    }

    .menu-item a:hover,
    .menu-item a:focus {
        color: #007bff;
        background-color: #000;
    }
}

/* Asegurar que el contenido no se desplace cuando el menú está abierto */
body.menu-open {
    overflow: hidden;
}

/* Mejoras de accesibilidad */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Transición suave para el menú */
.primary-navigation {
    transition: transform 0.3s ease-in-out;
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 480px) {
    .primary-navigation {
        width: 90%;
    }
    
    .main-header {
        padding: 10px 15px;
    }
    
    .top-bar {
        padding: 5px 15px;
        font-size: 11px;
    }
    
    .contacto-container {
        padding: 0 15px;
        gap: 1.5rem;
    }
    
    .contacto-item {
        padding: 1rem;
        min-width: 100%;
    }
}

/* Mejoras adicionales de responsividad móvil */
@media (max-width: 768px) {
    /* Asegurar que el contenido se adapte correctamente */
    .s-w,
    .s-c,
    .ez,
    .ez-c,
    .cw,
    .cw-c {
        padding: 0 15px;
    }
    
    /* Mejorar espaciado en móviles */
    .c {
        width: 100% !important;
        margin-bottom: 20px;
    }
    
    /* Texto más legible en móviles */
    .b-text-c {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Imágenes responsivas - excluir logo del header */
    .b-img,
    .b-img img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
    
    /* Excepción para el logo del header en móvil */
    .b-img header.Header-Main-1 img[src$=".ico"],
    .b-img header.Header-Main-1 img[src*="Logo_Claro.ico"] {
        width: unset !important;
        height: unset !important;
        max-width: unset !important;
    }
    
    /* Reorganizar la sección específica de "Qué Nos Distingue" en móvil */
    .cw-c {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    /* En móvil, cambiar el orden para que la imagen aparezca después del texto */
    .cw-c .c:first-child {
        order: 1;
        width: 100% !important;
    }
    
    .cw-c .c:last-child {
        order: 2;
        width: 100% !important;
    }
    
    /* Botones más grandes para touch */
    .menu-item a {
        padding: 15px 0;
        font-size: 16px;
    }
    
    /* Espaciado de secciones en móvil */
    section {
        padding: 20px 0;
    }
}

/* Media query para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-header {
        padding: 15px 30px;
    }
    
    .contacto-container {
        gap: 30px;
        padding: 0 20px;
    }
    
    .menu {
        gap: 15px;
    }
}

/* Mejoras de accesibilidad y usabilidad móvil */
@media (max-width: 768px) {
    /* Área de toque más grande para elementos interactivos */
    .menu-toggle {
        padding: 15px;
        width: 50px;
        height: 40px;
    }
    
    /* Mejorar contraste y legibilidad */
    .top-bar .social-icons a {
        color: #000 !important;
        padding: 10px;
    }
    
    /* Asegurar que los enlaces sean fáciles de tocar */
    .contacto-item a {
        display: inline-block;
        padding: 10px;
        margin: 5px 0;
    }
    
    /* Overlay para menú móvil */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
}

/* Links and interactive elements */
a {
    color: #ffffff !important;
}

a:hover {
    color: #007bff !important;
}

/* Ensure all text is white on black background */
h1, h2, h3, h4, h5, h6, p, span, div, strong, em {
    color: #ffffff !important;
}

/* Permitir imágenes de fondo personalizadas */

/* Estilos específicos para la sección "Qué Nos Distingue" */
.cw-c {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

/* Asegurar que el texto ocupe el espacio correcto en desktop */
@media (min-width: 769px) {
    .cw-c .c:first-child {
        flex: 1 1 55%;
        max-width: 55%;
    }
    
    .cw-c .c:last-child {
        flex: 1 1 45%;
        max-width: 45%;
    }
}

/* Mejorar la imagen específica */
#wnd_ImageBlock_23111746878369269 {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

#wnd_ImageBlock_23111746878369269_img {
    position: relative !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    border-radius: 8px;
}