/* Archivo principal de estilos */

/*
    CHANGES / CHANGELOG
    - 2025-11-10: Consolidado 'main' selector, ajustado z-index del .hero y .hero-media
                             para asegurar que la imagen de inicio (`mulaInicio.jpg`) se muestre
                             detrás del panel .hero-content. Añadido comentario de cambios.
    - Evitar cambios drásticos en estructura: sólo limpiezas locales y seguras.
*/

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* Espacio para el menú fijo */
}

:root{
    /* ==========================
       Tema: variables globales
       - Colores, radios, espacios y breakpoints
       - `--fixed-menu-height` se actualiza desde JS al calcular header
       ==========================
    */
    --color-primary: #1ec6d9;
    --color-dark: #23262b;
    --color-light: #f7f9fa;
    --text-on-dark: #e0e0e0;
    --bg-page: #e0e0e0;
    --radius-lg: 1.2rem;
    --radius-md: 0.6rem;
    --space-lg: 3rem;
    --fixed-menu-height: 0px; /* actualizado por JS */
    --breakpoint-md: 900px;
    --breakpoint-sm: 600px;
}

/* Utilidades rápidas */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2em; }

@media (max-width: 900px) {
    .container {
        padding: 0 1.5em;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1em;
    }
}
.btn { display: inline-block; padding: 0.6em 1.25em; border-radius: 999px; cursor: pointer; }
.btn-primary { background: var(--color-primary); color: var(--color-dark); font-weight: 700; }
.btn-main {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-dark);
    font-weight: 700;
    text-decoration: none;
    border-radius: 2em;
    padding: 0.7em 2.2em;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn-main:hover,
.btn-main:focus {
    background: var(--color-dark);
    color: #fff;
    transform: translateY(-2px);
}
.btn-main:focus {
    outline: 3px solid rgba(30, 198, 217, 0.45);
    outline-offset: 3px;
}
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-page);
    color: #111;
    /* el fondo real se genera con ::before, permitiendo aplicar transformaciones independientes */
    overflow-x: hidden; /* prevenir scroll horizontal inesperado */
}

/* Pseudo-elemento global que dibuja la imagen volteada como espejo */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('../images/mulaInicio.jpg') center center/cover no-repeat;
    transform: scaleX(-1);
    z-index: -1;
    /* cambiar a scroll para evitar movimientos raros en móvil */
    background-attachment: scroll;
}

/* Accesibilidad: enlace para saltar al contenido principal */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -40px;
    background: #1ec6d9;
    color: #072426;
    padding: 0.6em 0.9em;
    border-radius: 6px;
    z-index: 12000;
    transition: top 0.18s ease;
    text-decoration: none;
    font-weight: 700;
}
.skip-link:focus {
    top: 1rem;
}

/* HEADER Y MENÚ
   - header-top ahora es parcialmente transparente y no se fija al hacer scroll.
   - sólo la barra de menú-social-bar se convertirá en .fixed-menu cuando el header-top
     haya desaparecido de la vista. Esto evita que el bloque de información superior
     permanezca pegado.
*/
.main-header {
    background: transparent;
    color: #fff;
    box-shadow: none;
    position: relative; /* ya no fija el header completo */
    top: auto;
    left: auto;
    width: 100%;
    z-index: 1000; /* mantiene prioridad sobre contenido */
}

.header-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 1rem 2vw 0.5rem 2vw;
    background: var(--color-dark);
    backdrop-filter: blur(5px);
    box-shadow: none;
    gap: 3vw;
    position: relative;
    width: 100%;
    border-bottom: 2px solid var(--color-primary);
}

.logo {
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 4px 24px #000a, 0 1px 0 #fff2;
    margin-bottom: 0;
    text-align: center;
    min-width: 120px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.contact-info > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    background: rgba(25, 30, 40, 0.96);
    border: 1px solid rgba(30,198,217,0.25);
    border-radius: 20px;
    min-width: 180px;
    max-width: 260px;
    height: 48px;
    padding: 0.4em 0.9em;
    transition: background 0.2s, box-shadow 0.2s;
    position: relative;
    gap: 0.7em;
}
.contact-info > div:nth-child(2) {
    width: auto;
    max-width: 320px;
}
.contact-info > div:hover {
    background: #23262b;
    box-shadow: 0 40px 16px #0003;
}
.contact-info i {
    font-size: 1.5em;
    color: #1ec6d9;
    margin: 0 0.5em 0 0;
}
.contact-info .contact-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.1em;
}
.contact-info .contact-text span {
    font-size: 0.75em;
}
.contact-info span {
    display: block;
    color: #fff;
    font-size: 1em;
    text-align: left;
    margin: 0;
}
.contact-info > div span:first-of-type {
    font-weight: 600;
    font-size: 1.05em;
    margin-bottom: 0.3em;
}
.contact-info > div br {
    display: none;
}

.menu-social-bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 2vw;
    background: rgba(18, 20, 26, 0.65);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    transition: box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.24);
    position: relative;
    width: 100%;
    box-sizing: border-box;
}
.menu-social-bar .main-nav {
    background: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}
.menu-social-bar .main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    list-style: none;
    margin: 0;
    padding: 0.7em 0;
    justify-content: flex-start;
}
.menu-social-bar .social-icons {
    display: flex;
    gap: 0.6rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
    align-items: center;
}

.main-nav {
    background: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}
.main-nav ul {
    display: flex;
    gap: 2vw;
    list-style: none;
    margin: 0;
    padding: 0.7em 0;
    justify-content: flex-start;
}

.main-nav ul li a {
    color: var(--color-light);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    display: inline-block;
    padding: 0.45em 0.9em;
    border-radius: var(--radius-md);
    background: rgba(0,0,0,0.12);
    transition: transform 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    text-shadow: 0 1px 6px rgba(0,0,0,0.45);
}

.main-nav ul li a:hover,
.main-nav ul li a:focus,
.main-nav ul li a.active {
    color: #072426;
    background: linear-gradient(90deg, #1ec6d9 0%, #6ee6e9 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 34px rgba(30,198,217,0.16), 0 2px 8px rgba(0,0,0,0.45);
}

.section-servicios,
.section-novedades,
.section-testimonios,
.section-contacto {
    border-top: 2px solid var(--color-primary);
    /* pequeño espacio extra arriba para que el borde no quede pegado al contenido anterior */
    padding-top: calc(1.2rem + 2px);
}
.social-icons {
    display: flex;
    gap: 1vw;
    flex-wrap: nowrap;
}
.social-icons a {
    color: #23262b;
    background: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    margin-left: 0.1em;
    transition: background 0.2s, color 0.2s;
    box-sizing: border-box;
    overflow: hidden;
}
.social-icons a:last-child {
    margin-right: 0;
}
.social-icons a:hover {
    background: #1ec6d9;
    color: #fff;
}

/* HERO SECTION */
.hero {
    position: relative;
    width: 100%;
    /* reducir altura para que la imagen no esté exageradamente grande en pantalla
       y permita ver mas del motivo */
    height: 60vh;
    min-height: 420px;
    display: flex;
    align-items: center;
    /* Alineamos el contenido del hero a la izquierda según petición */
    justify-content: flex-start;
    overflow: visible;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    background: transparent; /* permitir ver la imagen de fondo */
    padding-left: 6vw; /* separación desde la izquierda para el panel */
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0; /* detrás del panel */
    display: block;
    overflow: hidden;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.8);
    display: block;
}

/* Panel portada destacado como sección normal */
.hero-content {
    position: relative;
    top: -90px;
    left: -20px; /* pequeño desplazamiento para animación de entrada */
    z-index: 3; /* aseguramos que el panel quede por encima de la imagen */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 360px;
    max-width: 620px;
    min-height: 420px;
    margin: 0;
    background: lab(14.82% -0.52 -7.7 / 0.94);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    padding: 2.4rem 2rem;
    border-left: 6px solid var(--color-primary);
    color: var(--color-light);
    text-align: left;
    gap: 1.1em;
    transform: translateY(0);
    animation: heroPanelFadeIn 700ms ease;
}
@keyframes heroPanelFadeIn {
    from { opacity: 0; transform: translateY(40px);}
    to { opacity: 1; transform: translateY(0);}
}
.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 0.4em;
    line-height: 1.1;
    color: #1ec6d9;
    text-shadow: 0 2px 12px #0006;
    letter-spacing: 1.5px;
    margin-left: 0;
    margin-top: 0;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
}
.hero-content .hero-desc {
    font-size: 1.18rem;
    color: #e0e0e0;
    font-weight: 400;
    margin-bottom: 1.2em;
    margin-top: 0.2em;
    line-height: 1.5;
    letter-spacing: 0.2px;
    text-shadow: none;
}
.hero-emphasis {
    display: inline-block;
    margin-top: 0.6em;
    padding: 0.6em 1em;
    background: linear-gradient(90deg, rgba(30,198,217,0.12), rgba(255,255,255,0.02));
    border-left: 6px solid #1ec6d9;
    color: #f7f9fa;
    font-weight: 700;
    border-radius: 0.6em;
    box-shadow: 0 6px 22px rgba(30,198,217,0.06), inset 0 1px 0 rgba(255,255,255,0.02);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    backdrop-filter: blur(2px);
    -webkit-font-smoothing: antialiased;
}
.hero-emphasis:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(30,198,217,0.14);
}
.hero-content .btn-main {
    margin-top: 0.2em;
    font-size: 1.15rem;
    padding: 0.7em 2.2em;
    border-radius: 2em;
    background: #1ec6d9;
    color: #23262b;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px #1ec6d955;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.hero-content .btn-main:hover {
    background: #fff;
    color: #1ec6d9;
    box-shadow: 0 4px 16px #1ec6d988;
}

/* Baja la sección de inicio para que no se superponga */
/* CONTENIDO PRINCIPAL
   Consolidado: posición y padding-top controlado por la variable --fixed-menu-height
*/
main {
    position: relative;
    z-index: 2;
    padding-top: var(--fixed-menu-height);
}

/* Cuando el menú está fijado, empuja el main hacia abajo usando la altura real del menú */
.menu-fixed main {
    padding-top: var(--fixed-menu-height);
}

/* Sección de inicio */
.section-inicio {
    /* no pintar fondo propio: se usa la imagen global del <body> para evitar duplicados. */
    background: transparent;
    padding-top: 2em !important;
    position: relative;
}

.carousel-section {
    width: 100%;
    background: transparent;
    position: relative; /* ahora en flujo normal para evitar solapamientos */
    left: 0;
    right: 0;
    top: auto;
    margin-top: 1.2rem; /* separación natural bajo hero */
    z-index: 3;
    display: flex;
    justify-content: center;
    pointer-events: auto;
    overflow: hidden;
    transform: translateY(-160px); /* elevar más el carrusel para que quede más arriba */
}
.carousel-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    pointer-events: auto;
    padding: 1rem 0;
}
.carousel-track {
    display: flex;
    gap: 1.5rem;
    margin-top: 35px;
    width: max-content;
    animation: scroll-cards 32s linear infinite;
}
.carousel-track:hover {
    animation-play-state: paused;
}
.carousel-card {
    background: #fff;
    border-radius: 1em;
    box-shadow: 0 2px 16px rgba(0,0,0,0.14);
    min-width: 320px;
    max-width: 360px;
    padding: 1.3em;
    text-align: center;
    flex-shrink: 0;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    min-height: 430px;
}
.carousel-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 0.75em;
}
.carousel-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}
.carousel-card p {
    flex: 1;
    margin: 0;
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-card .btn-main {
    margin-top: auto;
    align-self: center;
    padding: 0.55em 1.8em;
}
@keyframes scroll-cards {
    0% { 
        transform: translateX(0);
    }
    100% { 
        transform: translateX(-50%);
    }
}

.carousel-section.full-bleed, .carousel-section.full-width {
    /* usar ancho del contenedor principal, no 100vw, para evitar overflow horizontal */
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
}
.carousel-section.full-bleed .carousel-container,
.carousel-section.full-width .carousel-container {
    max-width: 100%;
    width: 100%;
    padding: 0 1.25rem; /* pequeño padding interno */
    margin: 0;
}
.carousel-track {
    margin-top: 120px; /* ya ajustado para visual */
}
@media (max-width: 900px) {
    .header-top {
        flex-direction: column;
        gap: 1rem;
        padding: 0.8rem 1vw 0.5rem 1vw;
        position: static; /* asegurar que no flote */
        width: 100%;
    }
    .logo {
        font-size: 1.2rem;
        min-width: unset;
    }
    .contact-info {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    .contact-info > div {
        width: 85vw;
        height: 40px;
        padding: 0.4em 0.6em;
        border-radius: 12px;
        background: rgba(45,49,55,0.65);
        border: 1px solid rgba(255,255,255,0.4);
        font-size: 0.9rem;
    }
    .contact-info i {
        font-size: 0.9em;
        margin: 0 0.2em 0 0;
    }
    .menu-social-bar {
        padding: 0.3rem 1vw;
        gap: 1rem;
    }
    .menu-social-bar .main-nav ul {
        gap: 0.8vw;
        padding: 0.5em 0;
    }
    .main-nav a {
        font-size: 0.95rem;
    }
    .menu-social-bar .social-icons {
        margin-left: 0.4rem;
        gap: 0.5rem;
    }
    .social-icons a {
        font-size: 0.9rem;
    }
    .hero {
        padding: 1rem 0.75rem 0.5rem;
        min-height: auto;
        height: auto;
    }
    .hero-content {
        margin-left: 0;
        text-align: center;
        position: static; /* asegurar que no flote */
        top: auto;
        left: auto;
        transform: none;
        padding: 1rem 0.8rem;
        min-height: auto;
        max-width: 100%;
        margin: 0 auto;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content .hero-desc {
        font-size: 0.95rem;
    }
    .carousel-section {
        top: 0;
        transform: none !important;
        margin-top: 0;
        margin-bottom: 0;
        padding: 0 0 1rem 0;
    }
    .carousel-section.full-bleed .carousel-container,
    .carousel-section.full-width .carousel-container {
        padding: 0 0.75rem;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .carousel-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        max-width: 100vw;
        margin: 0 auto;
    }
    .carousel-container::-webkit-scrollbar { display: none; }
    .carousel-track {
        animation: none;
        gap: 0.8rem;
        margin-top: 0;
        width: max-content;
        padding-bottom: 1rem;
    }
    .carousel-card {
        min-width: 270px;
        max-width: 270px;
        padding: 1.1em;
        min-height: auto;
        scroll-snap-align: center;
    }
    .carousel-card h3 {
        font-size: 1.1rem;
    }
    .carousel-card p {
        font-size: 0.9rem;
    }
    .carousel-card img {
        height: 170px;
    }
    .carousel-card .btn-main {
        width: 100%;
        max-width: unset;
        padding: 0.6em 1.5em;
        font-size: 0.95rem;
    }
    .servicios-grid, .novedades-list, .testimonios-slider {
        flex-direction: column;
        align-items: center;
    }
    .section-modern {
        padding: 2.5em 0 1.8em 0;
        transform: none;
    }
}

@media (max-width: 600px) {
    body::before {
        background-attachment: scroll;
        background-size: cover;
        transform: scaleX(-1);
    }
    .logo {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    .header-top {
        gap: 0.5rem;
        padding: 0.4rem 1vw 0.3rem 1vw;
    }
    .contact-info {
        flex-direction: row;
        gap: 0.3rem;
        flex-wrap: nowrap;
        justify-content: center;
    }
    .contact-info > div {
        min-width: auto;
        max-width: none;
        flex: 1 1 auto;
        white-space: normal;
        font-size: 0.7rem;
    }
    .contact-info .contact-text span:last-child {
        font-size: 0.75rem;
        word-break: break-word;   /* permite cortar email largo */
    }
    .contact-info > div:nth-child(2) {
        max-width: 160px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    .hero-content {
        padding: 2rem 1rem;
    }
    .hero-desc {
        font-size: 0.9rem !important;
        margin-bottom: 1rem;
    }
    .btn-main {
        font-size: 0.95rem;
        padding: 0.5em 1.3em;
    }
    .header-top, .main-nav {
        padding: 0 0.8vw;
    }
    .menu-social-bar {
        padding: 0.25rem 0.8vw;
        gap: 0.8rem;
    }
    .menu-social-bar .main-nav ul {
        gap: 0.4vw;
    }
    .main-nav a {
        font-size: 0.75rem;
    }
    .social-icons {
        gap: 0.3rem;
    }
    .social-icons a i {
        font-size: 1rem;
    }
}

 /* Otras secciones */
.section-modern {
    width: 100%;
    padding: 5em 0 4em 0;
    background: #23262b;
    color: #fff;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 24px #0002;
    transform: translateY(-30px);
}

/* Anular desplazamiento y ajustar padding para evitar huecos entre secciones específicas */
.section-novedades {
    transform: none; /* evita que la sección se desplace visualmente dejando hueco */
    padding: calc(1.2rem + 2px) 0 3.5em 0; /* padding más contenido para unir con testimonios */
}

/* Evitar que la sección de servicios mantenga un translate que deje espacio vacío */
.section-servicios {
    transform: none;
    padding: calc(1.2rem + 2px) 0 3.5em 0;
}

/* Evitar espacio entre Inicio y Servicios: anular desplazamientos y unificar padding */
.section-inicio {
    transform: none;
    padding: calc(1.2rem + 2px) 0 3.5em 0;
}

/* Para la primera sección en servicios.html */
.section-servicios-first {
    transform: none;
    padding: 0.8rem 0 3.5rem 0;
    margin-top: -10.5rem;
    position: relative;
    z-index: 1;
}

.section-modern:nth-child(even) {
    background: #181b1f;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.2em;
    letter-spacing: 1px;
    color: #1ec6d9;
    text-shadow: 0 2px 12px #0006;
    text-align: center;
    transition: color 0.3s;
}
.section-desc {
    font-size: 1.2rem;
    color: #e0e0e0;
    text-align: center;
    margin-bottom: 2em;
}
.section-desc-strong {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #ffffff;
    margin-bottom: 1.5em;
}
.section-highlight-panel {
    max-width: 1020px;
    margin: 0 auto 2em auto;
    padding: 1.8em 1.6em;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 1.5rem;
    box-shadow: 0 18px 42px rgba(0,0,0,0.18);
}
.section-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
    margin-top: 1.5em;
    margin-bottom: 1.5em;
}
.highlight-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.4em 1.2em;
    border-radius: 1.25rem;
    background: linear-gradient(180deg, rgba(30,198,217,0.14), rgba(255,255,255,0.05));
    border: 1px solid rgba(30,198,217,0.3);
    text-align: center;
    min-height: 190px;
}
.highlight-card h3 {
    font-size: 1.25rem;
    color: #ffffff;
    margin: 0;
}
.highlight-card p {
    color: #d8eaf0;
    margin: 0;
    line-height: 1.5;
}
@media (max-width: 920px) {
    .section-highlight-grid {
        grid-template-columns: 1fr;
    }
}
.servicio-card {
    background: #fff;
    color: #23262b;
    border-radius: 1.2em;
    box-shadow: 0 2px 16px #0002;
    padding: 2em 1.5em;
    min-width: 260px;
    max-width: 320px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    margin-bottom: 1em;
}
.servicio-card:hover {
    transform: translateY(-10px) scale(1.04);
    box-shadow: 0 8px 32px #1ec6d988;
}
.servicio-card i {
    font-size: 2.5em;
    color: #1ec6d9;
    margin-bottom: 0.7em;
    transition: color 0.3s;
}

/* === Novedades estilo tarjetas tipo panel destacado === */
.novedades-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.section-novedades {
    background: linear-gradient(135deg, rgba(8, 12, 24, 0.98), rgba(15, 26, 44, 0.96));
    color: #fff;
    position: relative;
    overflow: hidden;
}
.section-novedades::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(30, 198, 217, 0.12), transparent 34%),
                radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.05), transparent 40%);
    pointer-events: none;
}
.novedades-title {
    color: #ffffff;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.8em;
    text-align: center;
    letter-spacing: 1px;
}
.novedades-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 2rem;
    width: 100%;
    max-width: 1180px;
    align-items: start;
}
.novedad-main-card {
    background: rgba(12, 20, 38, 0.92);
    border: 1px solid rgba(255,255,255,0.22);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    box-shadow: 0 30px 80px rgba(0,0,0,0.38);
    overflow: hidden;
    min-height: 460px;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    opacity: 0;
    transform: translateY(24px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.1s;
}
.novedad-main-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 36px 90px rgba(0,0,0,0.35);
}
.novedad-main-content {
    padding: 2.5rem 2.5rem 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.novedad-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.65em 1.1em;
    letter-spacing: 0.8px;
    background: rgba(30,198,217,0.18);
    color: #ffffff;
    width: fit-content;
}
.novedad-main-content h3 {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.05;
    margin: 0;
    color: #f7f9fa;
}
.novedad-lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e8f7fb;
    max-width: 90%;
}
.novedad-main-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #f3fbff;
    opacity: 1;
}
.novedad-side-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.novedad-side-card {
    background: rgba(18, 28, 48, 0.94);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 1.75rem;
    box-shadow: 0 20px 48px rgba(0,0,0,0.28);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.25s;
}
.novedad-side-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 62px rgba(0,0,0,0.28);
    border-color: rgba(30,198,217,0.35);
}
.card-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(30,198,217,0.22);
    color: #ffffff;
    font-weight: 800;
    font-size: 1rem;
}
.novedad-side-card h4 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
}
.novedad-side-card p {
    margin: 0;
    color: #eef8ff;
    line-height: 1.7;
}
@media (max-width: 1100px) {
    .novedades-grid {
        grid-template-columns: 1fr;
    }
    .novedad-side-cards {
        grid-template-columns: 1fr;
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 700px) {
    .novedad-main-card {
        flex-direction: column;
        min-width: 220px;
        max-width: 98vw;
        min-height: unset;
    }
    .novedad-main-card img, .novedad-main-content {
        width: 100%;
        min-width: unset;
    }
    .novedad-main-content {
        padding: 1.2em 1em 1em 1em;
    }
    .novedad-side-cards {
        flex-direction: column;
        gap: 1em;
    }
    .novedad-side-card {
        min-width: 180px;
        max-width: 98vw;
    }
}

/* MEDIA QUERIES */
@media (max-width: 900px) {
    .header-top {
        flex-direction: column;
        gap: 1.5em;
        padding: 1.2rem 1vw 0.7rem 1vw;
    }
    
    .logo {
        font-size: 1.3rem;
        min-width: unset;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 1.5em;
    }
    
    .contact-info > div {
        width: 90vw;
        height: 45px;
        padding: 0.5em 0.7em;
        border-radius: 15px;
    }
    
    .menu-social-bar {
        flex-direction: column;
        padding: 0.4rem 1vw;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1vw;
    }
    
    .social-icons {
        margin-left: 0;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .logo {
        font-size: 1rem;
    }
    
    .main-nav ul li a {
        font-size: 0.75rem;
        padding: 0.25em 0.5em;
    }
}

@media (max-width: 650px) {
    .section-contacto.contacto-grid .container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1rem 0.8rem;
    }
    .section-contacto.contacto-grid .container > * {
        min-height: auto;
    }
    .section-contacto .contacto-info,
    .section-contacto .contacto-mapa,
    .section-contacto .contacto-formulario {
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 0.9rem;
        padding: 1.2rem;
    }
    .contacto-mapa iframe {
        min-height: 280px;
        width: 100%;
    }
    .contacto-lista li {
        font-size: 0.95rem;
        margin-bottom: 0.6em;
    }
    .contacto-formulario form {
        gap: 0.8rem;
    }
    .contacto-formulario .form-group input,
    .contacto-formulario .form-group textarea {
        padding: 0.6em;
        font-size: 0.95rem;
    }
}

/* Baja todas las secciones principales para que aparezcan después del carrusel */

/* Elimina el espacio entre las secciones principales */
.section-inicio,
.section-servicios,
.section-novedades,
.section-testimonios,
.section-contacto {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    top: auto; /* removido desplazamiento forzado: las secciones siguen el flujo normal */
}
    
/* Panel de datos destacado arriba de la sección de inicio */
.inicio-stats-panel {
    width: 50%;
    min-width: 320px;
    max-width: 1000px;
    background: #23262b;
    display: flex;
    justify-content: stretch;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin-bottom: 0;
    border-radius: 1.2em 0 0 1.2em;
    overflow: hidden;
    box-shadow: 0 4px 24px #0002;
    position: absolute;
    left: 0;
    top: -5.5em;
    z-index: 2;
}

@media (max-width: 900px) {
    .inicio-stats-panel {
        width: 90%;
        top: auto;
        left: auto;
        border-radius: 1.1em;
    }
    .inicio-stat {
        padding: 1.2em 0 1em 0;
        font-size: 1.5rem;
    }
    .inicio-stat-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .inicio-stats-panel {
        width: 95%;
        top: auto;
        left: auto;
        border-radius: 1em;
    }
    .inicio-stat {
        padding: 1em 0 0.8em 0;
        font-size: 1.2rem;
    }
    .inicio-stat-label {
        font-size: 0.75rem;
    }
}

.inicio-stat {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5em 0 1.3em 0;
    color: #1ec6d9;
    font-weight: 800;
    font-size: 2rem;
    border-right: 1px solid #1ec6d9;
    background: #181b1f;
    letter-spacing: 1px;
}
.inicio-stat:last-child {
    border-right: none;
}
.inicio-stat-label {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.4em;
    letter-spacing: 1.2px;
    opacity: 0.95;
    text-transform: uppercase;
    color: #fff;
}

/* Layout de la sección de inicio */
.section-inicio {
    margin-top: 0 !important;
    padding: 0;
    background: #fff;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

/* ===== Sección CONTACTO: orden y estilo ===== */
.section-contacto {
    background: linear-gradient(180deg, #23262b 0%, #1e2023 100%);
    color: var(--color-light);
    transform: none; /* eliminar desplazamiento que dejaba hueco final */
    padding: 3rem 0 4rem; /* espacio vertical, padding-bottom aumentado */
}

.section-contacto.contacto-grid .container {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
    padding: 2rem 1rem;
    max-width: 1300px;
    margin: 0 auto;
}

@media (max-width: 1000px) {
    .section-contacto.contacto-grid .container {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    .contacto-mapa {
        grid-column: 1 / -1;
    }
}

@media (max-width: 650px) {
    .section-contacto.contacto-grid .container {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1rem 0.8rem;
    }
    .section-contacto .contacto-info,
    .section-contacto .contacto-mapa,
    .section-contacto .contacto-formulario {
        background: rgba(255,255,255,0.04);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 1rem;
        box-shadow: 0 8px 24px rgba(0,0,0,0.2);
        padding: 1.2rem;
    }
    .contacto-info .section-title {
        font-size: 1.4rem;
    }
    .contacto-lista li {
        font-size: 0.95rem;
    }
    .contacto-mapa iframe {
        min-height: 300px;
    }
    .contacto-formulario {
        padding: 1rem;
    }
}

.section-contacto .contacto-info,
.section-contacto .contacto-mapa,
.section-contacto .contacto-formulario {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 1.3rem;
    box-shadow: 0 18px 45px rgba(0,0,0,0.28);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contacto-info {
    justify-content: flex-start;
}
.contacto-info .section-title { text-align: left; margin-top: 0; }

.contacto-lista {
    list-style: none;
    margin: 1rem 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contacto-lista li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: #f4fbfc;
    font-size: 1rem;
    line-height: 1.6;
}
.contacto-lista li i { color: var(--color-primary); font-size: 1.2rem; margin-top: 0.2rem; }

.contacto-redes {
    margin-top: 1rem;
    display:flex;
    gap:0.75rem;
}
.contacto-redes a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:46px;
    height:46px;
    border-radius:50%;
    background:#fff;
    color:#23262b;
    box-shadow:0 2px 10px rgba(0,0,0,0.18);
    transition: transform 0.2s ease;
}
.contacto-redes a:hover { transform: translateY(-2px); }

.contacto-mapa {
    overflow: hidden;
}
.contacto-mapa iframe {
    width:100%;
    height:100%;
    min-height:420px;
    border:0;
    display:block;
}

.contacto-formulario {
    justify-content: flex-start;
}
.contacto-form-title {
    margin-top: 0;
}
.contacto-form-text {
    margin: 0;
    color: #d8e9eb;
    line-height: 1.75;
}
.contact-form .form-group {
    margin-bottom: 0.9rem;
}
.contact-form input[type="text"], .contact-form textarea {
    width: 95%;
    padding: 0.95rem 1rem;
    border-radius: 0.85rem;
    border: none;
    background: #fff;
    color: #23262b;
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.08);
    font-size: 1rem;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form .btn-main {
    margin-top: 0.8rem;
    display: inline-flex;
}
.btn-main.btn-whatsapp {
    background: #25d366;
    color: #08220a;
}
.btn-main.btn-whatsapp:hover,
.btn-main.btn-whatsapp:focus {
    background: #1ebe59;
    color: #fff;
}
.whatsapp-note {
    margin: 0;
    font-size: 0.95rem;
    color: #d8e9eb;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .section-contacto.contacto-grid .container { grid-template-columns: 1fr; padding: 2rem 1rem; }
    .contacto-mapa iframe { min-height: 260px; }
    .contacto-info, .contacto-formulario { padding: 1rem; }
}


.inicio-main-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    min-height: 600px;
}

@media (max-width: 900px) {
    .inicio-main-row {
        flex-direction: column;
        min-height: auto;
    }
    .inicio-img-col {
        min-height: 300px;
    }
    .inicio-img-col img {
        max-height: 350px;
    }
    .inicio-text-col {
        padding: 2.5em 2em 2em 2em;
        min-height: auto;
    }
    .inicio-title {
        font-size: 2rem;
    }
    .inicio-desc {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .inicio-img-col {
        min-height: auto;
        align-items: center;
        padding: 0;
    }
    .inicio-img-col img {
        max-width: 100%;
        width: 100%;
        height: auto;
        max-height: none;
    }
    .inicio-main-row {
        min-height: auto;
        margin-top: 0;
    }
    .inicio-img-col {
        min-height: auto;
    }
    .inicio-text-col {
        padding: 1.5em 1.2em 1.5em 1.2em;
    }
    .inicio-badge {
        font-size: 0.9rem;
        padding: 0.2em 0.8em;
    }
    .inicio-title {
        font-size: 1.5rem;
        margin-bottom: 0.5em;
    }
    .inicio-desc {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    .inicio-btn {
        font-size: 0.95rem;
        padding: 0.6em 1.8em;
    }
}

.section-inicio {
    background: #fff;
    margin: 0;
    padding: 0;
    position: relative;
}

.inicio-img-col {
    flex: 1 1 50%;
    background: #181b1f;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 600px;
    padding: 0;
    border-right: 0;
    position: relative;
    overflow: visible;
}
.inicio-img-col img {
    max-width: 100%;
    max-height: 715px;
    border-radius: 0 0 0 0;
    box-shadow: none;
    object-fit: cover;
    background: #181b1f;
    border: none;
    display: block;
    margin: 0 auto;
}

.inicio-text-col {
    flex: 1 1 50%;
    background: #f7f9fa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 4em 4em 4em 3em;
    min-height: 600px;
    box-sizing: border-box;
}

.inicio-badge {
    display: inline-block;
    background: #1ec6d9;
    color: #23262b;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 0.3em;
    padding: 0.3em 1.1em;
    margin-bottom: 1.2em;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.inicio-title {
    font-size: 2.7rem;
    font-weight: 900;
    color: #23262b;
    margin: 0 0 0.7em 0;
    letter-spacing: 1px;
    line-height: 1.1;
    text-shadow: none;
}

.inicio-desc {
    font-size: 1.18rem;
    color: #23262b;
    margin-bottom: 1.5em;
    line-height: 1.5;
    font-weight: 400;
    opacity: 0.95;
}

.inicio-btn {
    display: inline-block;
    background: #1ec6d9;
    color: #23262b;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 2em;
    padding: 0.7em 2.2em;
    text-decoration: none;
    box-shadow: 0 2px 8px #1ec6d955;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin-top: 1em;
}
.inicio-btn:hover {
    background: #23262b;
    color: #fff;
    box-shadow: 0 4px 16px #d32f2f55;
}

/* NUEVO: Estructura tipo "tabs" para servicios */
.servicios-tabs-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    justify-content: center;
    align-items: center;
    margin: 1.5rem 0 2rem 0;
    border-bottom: 1.5px solid rgba(255,255,255,0.12);
    padding: 0.5rem 1rem 0.75rem;
    width: 100%;
}

.servicios-tab {
    background: #23262b;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    padding: 0.65em 1.2em;
    border-radius: 0.4em 0.4em 0 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    letter-spacing: 0.8px;
    margin-bottom: -2px;
    white-space: nowrap;
}

.servicios-tab.active,
.servicios-tab:hover {
    background: #1ec6d9;
    color: #23262b;
    box-shadow: 0 2px 10px rgba(30,198,217,0.2);
}

.servicios-tab:not(.active) {
    color: #fff;
    background: #23262b;
}

.servicio-tab-content-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 2rem;
    background: #f7f9fa;
    border-radius: 1.2em;
    box-shadow: 0 2px 18px rgba(0,0,0,0.12);
    padding: 2.4rem 1.8rem;
    margin-top: 1.8rem;
    max-width: min(100%, 1100px);
    margin-left: auto;
    margin-right: auto;
    min-height: auto;
}

@media (max-width: 900px) {
    .servicio-tab-content-row {
        flex-direction: column;
        gap: 2em;
        padding: 2em 1.5em;
        min-height: auto;
    }
    .servicio-tab-img-col {
        min-width: auto;
        max-width: 100%;
        min-height: 300px;
    }
    .servicio-tab-img-col img {
        max-width: 100%;
        min-height: 250px;
    }
    .servicio-tab-info-col {
        min-height: auto;
        padding-left: 0;
    }
    .servicio-tab-title {
        font-size: 1.7rem;
    }
    .servicio-tab-desc {
        font-size: 1rem;
    }
}

@media (max-width: 600px) {
    .servicio-tab-content-row {
        padding: 1.5em 1rem;
        gap: 1.5em;
    }
    .servicio-tab-num {
        font-size: 1.1rem;
        padding: 0.15em 0.7em;
    }
    .servicio-tab-title {
        font-size: 1.4rem;
    }
    .servicio-tab-desc {
        font-size: 0.95rem;
    }
    .servicio-tab-btn {
        font-size: 0.9rem;
    }
}

.servicio-tab-img-col {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    max-width: 540px;
    min-height: 320px;
}
.servicio-tab-img-col img {
    width: 100%;
    max-width: 520px;
    min-height: 260px;
    border-radius: 1em;
    box-shadow: 0 4px 24px rgba(35,38,43,0.18);
    object-fit: cover;
    background: #181b1f;
}

.servicio-tab-info-col {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 1rem;
    min-height: auto;
}

.servicio-tab-num {
    display: inline-block;
    background: #1ec6d9;
    color: #23262b;
    font-size: 1.3rem;
    font-weight: 800;
    border-radius: 0.2em;
    padding: 0.2em 0.9em;
    margin-bottom: 1.2em;
    letter-spacing: 1px;
}

.servicio-tab-title {
    font-size: 2.1rem;
    font-weight: 900;
    color: #23262b;
    margin: 0 0 0.5em 0;
    letter-spacing: 1px;
    line-height: 1.1;
}

.servicio-tab-desc {
    font-size: 1.15rem;
    color: #23262b;
    margin-bottom: 2em;
    line-height: 1.5;
    font-weight: 400;
    opacity: 0.95;
}

.servicio-tab-btn {
    display: inline-block;
    background: #1ec6d9;
    color: #23262b;
    font-size: 1.05rem;
    font-weight: 700;
    border: 2px solid #23262b;
    border-radius: 2em;
    padding: 0.7em 2.2em;
    text-decoration: none;
    box-shadow: 0 2px 8px #1ec6d955;
    transition: background 0.2s, color 0.2s, border 0.2s, transform 0.2s;
    margin-top: 0.5em;
}
.servicio-tab-btn:hover {
    background: #23262b;
    color: #1ec6d9;
    border: 2px solid #1ec6d9;
    transform: translateY(-2px);
}
.servicio-tab-btn-secondary {
    background: transparent;
    color: #23262b;
    border-color: #1ec6d9;
}
.servicio-tab-btn-secondary:hover {
    background: rgba(30,198,217,0.12);
    color: #fff;
}
.servicio-tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5em;
}

/* === Testimonios estilo destacado === */
.section-testimonios {
    background: #23262b;
    padding: 1.2rem 0 2.5rem 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 2px 24px rgba(0,0,0,0.24);
    overflow: hidden;
    transform: none;
}

@media (max-width: 900px) {
    .section-testimonios {
        padding: 1rem 0 2.2rem 0;
    }
}

@media (max-width: 600px) {
    .section-testimonios {
        padding: 0.9rem 0 1.8rem 0;
    }
    .testimonios-title {
        font-size: 1.9rem;
        margin-bottom: 0.5em;
    }
    .testimonios-badge {
        font-size: 0.9rem;
        padding: 0.25em 0.9em;
        margin-bottom: 0.8em;
    }
}
.testimonios-badge {
    display: inline-block;
    background: #1ec6d9;
    color: #23262b;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 0.3em;
    padding: 0.3em 1.1em;
    margin-bottom: 1.2em;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    margin-left: 50%;
    transform: translateX(-50%);
}
.testimonios-title {
    font-size: 2.7rem;
    font-weight: 900;
    color: #1ec6d9;
    margin: 0 0 0.7em 0;
    letter-spacing: 1px;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 2px 12px #0006;
}
.testimonios-slider {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: stretch;
    gap: 1.5rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    min-height: 380px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 1.5rem 1rem 0.5rem;
    max-width: 100%;
    min-width: 0;
    scrollbar-width: none;
}
.testimonios-slider::-webkit-scrollbar {
    display: none;
}

/* Carrusel: todas las cards visibles, alineadas horizontalmente */
.testimonio-card {
    flex: 0 0 360px;
    max-width: 360px;
    min-width: 280px;
    height: 100%;
    min-height: 340px;
    background: linear-gradient(120deg, rgba(229,57,53,0.9) 0%, rgba(227,93,91,0.9) 100%), url('') center center/cover no-repeat;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    border-radius: 1.2em;
    box-shadow: 0 4px 24px rgba(0,0,0,0.28);
    padding: 2rem 1.6rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0.3;
    filter: blur(2px);
    transition: 
        opacity 0.55s cubic-bezier(0.77,0,0.18,1),
        filter 0.55s cubic-bezier(0.77,0,0.18,1),
        box-shadow 0.55s cubic-bezier(0.77,0,0.18,1),
        transform 0.55s cubic-bezier(0.77,0,0.18,1),
        border 0.4s;
    overflow: hidden;
    margin: 0 0.5em;
    position: relative;
    z-index: 1;
}

@media (max-width: 750px) {
    .testimonio-card {
        flex: 0 0 360px;
        max-width: 360px;
        min-width: 280px;
        min-height: 340px;
        padding: 1.8em 1.5em 1.5em 1.5em;
        margin: 0 0.3em;
    }
}

@media (max-width: 600px) {
    .testimonio-card {
        flex: 0 0 280px;
        max-width: 280px;
        min-width: 260px;
        min-height: 320px;
        padding: 1.5em 1.2em 1.2em 1.2em;
        margin: 0 0.2em;
    }
}

.testimonio-card.active {
    opacity: 1;
    filter: none;
    z-index: 3;
    box-shadow: 0 12px 40px #1ec6d9cc, 0 4px 24px #0004;
    transform: scale(1.13) translateY(-10px);
    border: 3px solid #1ec6d9;
    transition: 
        opacity 0.55s cubic-bezier(0.77,0,0.18,1),
        filter 0.55s cubic-bezier(0.77,0,0.18,1),
        box-shadow 0.65s cubic-bezier(0.77,0,0.18,1),
        transform 0.65s cubic-bezier(0.77,0,0.18,1),
        border 0.4s;
}

.testimonio-card.prev,
.testimonio-card.next {
    opacity: 0.7;
    filter: blur(0.5px);
    z-index: 2;
    transform: scale(0.97);
    border: none;
    transition: 
        opacity 0.55s cubic-bezier(0.77,0,0.18,1),
        filter 0.55s cubic-bezier(0.77,0,0.18,1),
        box-shadow 0.55s cubic-bezier(0.77,0,0.18,1),
        transform 0.55s cubic-bezier(0.77,0,0.18,1),
        border 0.4s;
}

.testimonio-card:not(.active):not(.prev):not(.next) {
    opacity: 0.3;
    filter: blur(2px);
    z-index: 1;
    transform: scale(0.93);
    border: none;
    transition: 
        opacity 0.55s cubic-bezier(0.77,0,0.18,1),
        filter 0.55s cubic-bezier(0.77,0,0.18,1),
        box-shadow 0.55s cubic-bezier(0.77,0,0.18,1),
        transform 0.55s cubic-bezier(0.77,0,0.18,1),
        border 0.4s;
}

/* Elimina cualquier efecto de hover que cambie opacidad o filtro */
.testimonio-card:hover {
    opacity: unset;
    filter: unset;
    box-shadow: unset;
    transform: unset;
}

/* Avatar circular grande */
.testimonio-card img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1.2em;
    box-shadow: 0 2px 8px #0003;
    border: 3px solid #fff;
    background: #23262b;
    display: block;
    align-self: center;
}

/* Nombre y correo */
.testimonio-card h3 {
    font-size: 1.3em;
    font-weight: 900;
    margin: 0 0 0.3em 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(0,0,0,0.85);
    color: #1ec6d9;
    padding: 0.5em 0.7em;
    border-radius: 0.5em;
    display: inline-block;
    border: 2px solid #1ec6d9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* Nombre en div */
.testimonio-card .testimonio-nombre {
    font-size: 1.3em;
    font-weight: 900;
    margin: 0 0 0.3em 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(0,0,0,0.85);
    color: #1ec6d9;
    padding: 0.5em 0.7em;
    border-radius: 0.5em;
    display: inline-block;
    border: 2px solid #1ec6d9;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* Email en div */
.testimonio-card .testimonio-email {
    font-size: 1em;
    opacity: 1;
    margin-bottom: 1.2em;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    background: rgba(0,0,0,0.7);
    color: #1ec6d9;
    padding: 0.3em 0.5em;
    border-radius: 0.3em;
    display: inline-block;
}

/* Texto del testimonio */
.testimonio-card .testimonio-texto {
    font-size: 1.08em;
    font-weight: 400;
    margin-bottom: 1.5em;
    color: #fff;
    opacity: 0.98;
    line-height: 1.6;
    min-height: 80px;
    text-align: left;
    padding: 0.5em 0.5em;
    background: rgba(0,0,0,0.6);
    border-radius: 0.5em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Empresa y estrellas */
.testimonio-card .testimonio-empresa {
    margin-bottom: 1.2em;
}
.testimonio-card .testimonio-stars {
    margin-top: auto;
    font-size: 1.3em;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* Logo de la empresa */
.testimonio-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1em;
}
.testimonio-logo img {
    width: auto;
    height: 48px;
    object-fit: contain;
    max-width: 160px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
    padding: 0.5em;
}

/* Flechas sobrepuestas al centro vertical */
.testimonios-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #e53935;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.7em;
    box-shadow: 0 2px 8px #0003;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    opacity: 0.97;
}
.testimonios-nav-btn.left {
    left: 0;
}
.testimonios-nav-btn.right {
    right: 0;
}
.testimonios-nav-btn:hover {
    background: #e53935;
    color: #fff;
}

/* Responsive */
@media (max-width: 1200px) {
    .testimonios-slider {
        gap: 1.2em;
    }
    .testimonio-card {
        flex-basis: 340px;
        max-width: 340px;
        min-width: 220px;
    }
}
@media (max-width: 900px) {
    .testimonios-slider {
        gap: 0.5em;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        max-width: 100vw;
        padding: 0 0.5rem;
    }
    .testimonio-card {
        flex-basis: 280px;
        max-width: 280px;
        min-width: 240px;
        min-height: 300px;
        z-index: 5;
    }
    .testimonios-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.4em;
        z-index: 15;
    }
}

@media (max-width: 600px) {
    .testimonios-nav-btn {
        display: none;
    }
    .testimonio-card {
        min-width: 260px;
        padding: 1.5em 1em 1em 1em;
        flex-shrink: 0;
        scroll-snap-align: start;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
    .testimonios-slider {
        scroll-snap-type: x mandatory;
        padding: 0 1rem;
        gap: 1rem;
    }
    .testimonio-card img {
        width: 64px;
        height: 64px;
    }
    .testimonio-card .testimonio-texto {
        font-size: 1em;
        line-height: 1.5;
        padding: 0.3em 0.3em;
        background: rgba(0,0,0,0.7);
        text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    }
    .testimonio-logo img {
        height: 36px;
        max-width: 120px;
        padding: 0.3em;
    }
    .testimonio-card h3 {
        text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    }
    .testimonio-card .testimonio-email {
        text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    }
    .testimonio-card .testimonio-stars {
        text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    }
    .testimonio-card.active {
        transform: none !important;
        box-shadow: 0 10px 28px rgba(30,198,217,0.22);
    }
}


@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.fixed-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    z-index: 9999; /* el único elemento fijo: barra social/navegación */
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    animation: slideDown 0.2s;
    background: linear-gradient(180deg, #23262bcc 80%, #23262b00 100%);
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

/* Nav se encoge sin empujar los iconos fuera del contenedor */
.menu-social-bar .main-nav {
    flex: 1 1 auto;
    min-width: 0;
}
.menu-social-bar .main-nav ul {
    min-width: 0;
    overflow-x: visible;
}

/* asegurar que los iconos no se reduzcan ni desaparezcan */
.menu-social-bar .social-icons {
    flex: 0 0 auto;
    margin-left: 1rem;
}

/* Opcional: esconder scrollbar visualmente pero permitir scroll si hace falta */
.menu-social-bar .main-nav ul::-webkit-scrollbar { height: 6px; }
.menu-social-bar .main-nav ul { scrollbar-width: thin; }

/* ...existing code... */

/* Estilos para la página de servicios detallados */
.servicio-detalle {
    width: min(100%, 1120px);
    margin: 0 auto 2.5rem auto;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 2rem;
    padding: 2.2rem;
    box-shadow: 0 24px 60px rgba(0,0,0,0.22);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.servicio-detalle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30,198,217,0.1) 0%, transparent 50%, rgba(255,255,255,0.05) 100%);
    pointer-events: none;
    z-index: 0;
}

.servicio-detalle:hover {
    transform: translateY(-10px);
    box-shadow: 0 34px 80px rgba(0,0,0,0.26);
    border-color: rgba(30,198,217,0.45);
    background: rgba(255,255,255,0.1);
}

.servicio-img,
.servicio-content {
    position: relative;
    z-index: 1;
}

.servicio-img {
    flex: 1 1 45%;
    max-width: 640px;
    min-width: 360px;
}

.servicio-img img {
    width: 100%;
    border-radius: 1.6rem;
    box-shadow: 0 14px 34px rgba(0,0,0,0.24);
    transition: transform 0.6s ease, box-shadow 0.35s ease;
    transform: scale(1.05);
}

.servicio-detalle:hover .servicio-img img {
    transform: scale(1.1);
    box-shadow: 0 26px 54px rgba(0,0,0,0.32);
}

.servicio-content {
    flex: 1 1 45%;
    min-width: 360px;
    transition: transform 0.35s ease;
}

@media (max-width: 1080px) {
    .servicio-detalle {
        padding: 1.8rem;
        gap: 2rem;
    }
    .servicio-img,
    .servicio-content {
        flex: 1 1 100%;
        min-width: auto;
    }
    .servicio-img {
        max-width: 100%;
    }
}

.servicio-detalle:hover .servicio-content {
    transform: translateY(-4px);
}

.servicio-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1ec6d9;
    margin-bottom: 1em;
    letter-spacing: 1px;
}

.servicio-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5em;
    color: #e0e0e0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.servicio-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2em;
}

.servicio-content li {
    padding: 0.65em 0;
    padding-left: 1.7em;
    position: relative;
    color: #e0e0e0;
}

.servicio-content li:before {
    content: "✓";
    color: #1ec6d9;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.text-center {
    text-align: center;
}

.text-center h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1ec6d9;
    margin-bottom: 1em;
}

.text-center p {
    font-size: 1.1rem;
    color: #e0e0e0;
    margin-bottom: 2em;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive para servicios */
@media (max-width: 900px) {
    .servicio-detalle {
        flex-direction: column;
        gap: 2em;
    }
    
    .servicio-content h2 {
        font-size: 2rem;
    }
}

/* ============================================================
   SISTEMA RESPONSIVE
   Jerarquía (desktop-first):
   ≤ 900px  Tablet portrait / phablet grande
   ≤ 768px  Tablet pequeña portrait
   ≤ 600px  Móvil grande
   ≤ 480px  Móvil mediano
   ≤ 375px  Móvil pequeño (iPhone SE, Galaxy A series)
============================================================ */

/* ── ≤ 900px: Tablet ──────────────────────────────────────── */
@media (max-width: 900px) {
    /* Header: fila compacta con pills de contacto */
    .header-top {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: 0.5rem 0.75rem;
        padding: 0.55rem 1.5vw;
        position: relative;
        width: 100%;
        box-sizing: border-box;
    }
    .logo { font-size: 1.3rem; min-width: auto; flex-shrink: 0; }
    .contact-info {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.4rem;
        justify-content: flex-start;
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .contact-info::-webkit-scrollbar { display: none; }
    .contact-info > div {
        flex-shrink: 0;
        min-width: 120px;
        max-width: 190px;
        height: 38px;
        font-size: 0.78rem;
        padding: 0.25em 0.55em;
    }
    /* Nav bar: posición relativa normal (el JS aplica .fixed-menu cuando hace scroll) */
    .menu-social-bar {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 0.35rem 1rem;
    }
    .menu-social-bar { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav ul { justify-content: flex-start; flex-wrap: wrap; gap: 0.4rem; min-width: 0; overflow-x: visible; }
    .main-nav ul li { flex: 0 1 auto; }
    .main-nav a { font-size: 0.9rem; padding: 0.4em 0.8em; }
    .social-icons { margin-left: 0; }
    /* Hero */
    .hero { min-height: auto; padding: 1.5rem 1rem 1rem; }
    .hero-content {
        position: static !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 1.5rem 1rem 1.2rem;
    }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content .hero-desc { font-size: 0.95rem; }
    /* Carousel: animación activa, reducir tamaño de cards */
    .carousel-section { transform: none !important; margin-top: 1rem; padding: 0.5rem 0 1.5rem; }
    .carousel-container { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; touch-action: pan-x; scroll-snap-type: x mandatory; scrollbar-width: none; max-width: 100%; }
    .carousel-track { gap: 0.8rem; margin-top: 0; }
    .carousel-card { min-width: 260px; max-width: 260px; padding: 1em; min-height: auto; scroll-snap-align: center; }
    .carousel-card img { height: 160px; }
    .carousel-card h3 { font-size: 1rem; }
    .carousel-card p { font-size: 0.88rem; }
    .carousel-card .btn-main { width: 100%; }
    /* Stats */
    .inicio-stats-panel { position: static !important; top: auto !important; left: auto !important; width: 100% !important; margin: 0 auto 0.5rem; border-radius: 1.2rem; }
    .inicio-stat { font-size: 1.6rem; padding: 1.2em 0 1em; }
    .inicio-stat-label { font-size: 0.85rem; }
    /* Sección inicio */
    .inicio-main-row { flex-direction: column; min-height: auto; }
    .inicio-img-col { min-height: 280px; }
    .inicio-img-col img { max-height: 340px; width: 100%; object-fit: cover; }
    .inicio-text-col { padding: 2rem; min-height: auto; }
    .inicio-title { font-size: 2rem; }
    .inicio-desc { font-size: 1rem; }
    /* Servicios tabs */
    .servicio-tab-content-row { flex-direction: column; gap: 1.5rem; padding: 1.8rem 1.2rem; }
    .servicio-tab-img-col,
    .servicio-tab-info-col,
    .servicio-img,
    .servicio-content { min-width: auto; width: 100%; max-width: 100%; }
    .servicio-tab-img-col { min-height: 260px; }
    .servicio-tab-img-col img,
    .servicio-img img { width: 100%; height: auto; min-height: 220px; }
    .servicio-tab-title { font-size: 1.7rem; }
    .servicio-detalle { flex-direction: column; gap: 1.5rem; padding: 1.8rem 1.2rem; }
    .servicio-content h2 { font-size: 2rem; }
    /* Novedades */
    .novedad-side-cards { grid-template-columns: 1fr; }
    /* Testimonios */
    .section-testimonios { padding: 1rem 0 2rem; }
    .testimonios-slider { overflow-x: auto; overflow-y: hidden; gap: 0.6rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; touch-action: pan-x; max-width: 100vw; padding: 0.5rem; }
    .testimonio-card { flex: 0 0 auto; flex-basis: 280px; min-width: 250px; max-width: 290px; min-height: 300px; padding: 1.3rem 1rem; scroll-snap-align: center; opacity: 1 !important; filter: none !important; transform: none !important; }
    .testimonio-card.active { box-shadow: 0 10px 28px rgba(30,198,217,0.35); border: 2px solid rgba(30,198,217,0.6); }
    .testimonios-nav-btn { display: none; }
    /* Contacto */
    .section-contacto.contacto-grid .container { grid-template-columns: 1fr; padding: 1.2rem; gap: 1rem; }
    .section-contacto .contacto-info,
    .section-contacto .contacto-mapa,
    .section-contacto .contacto-formulario { width: 100%; max-width: 100%; min-height: auto; padding: 1rem; }
    .contacto-form input[type="text"],
    .contacto-form textarea { width: 100%; }
    .contacto-mapa iframe { min-height: 260px; }
    /* General */
    .section-modern { padding: 2.5em 0 2em; transform: none; }
    .section-title { font-size: 2rem; }
}

/* ── ≤ 768px: Tablet pequeña portrait ────────────────────── */
@media (max-width: 768px) {
    .logo { font-size: 1.3rem; }
    .contact-info > div { min-width: 120px; max-width: 190px; height: 38px; font-size: 0.79rem; }
    .contact-info i { font-size: 1.2em; }
    .main-nav a { font-size: 0.87rem; padding: 0.38em 0.75em; }
    .hero-content h1 { font-size: 2rem; }
    .hero-content .hero-desc { font-size: 0.92rem; }
    .carousel-card { min-width: 240px; max-width: 240px; }
    .inicio-title { font-size: 1.8rem; }
    .inicio-text-col { padding: 1.5rem 1.5rem; }
    .novedades-title { font-size: 2.4rem; }
    .testimonios-title { font-size: 2.3rem; }
    .servicio-content h2 { font-size: 1.8rem; }
    .section-title { font-size: 1.85rem; }
}

/* ── ≤ 600px: Móvil grande ────────────────────────────────── */
@media (max-width: 600px) {
    /* Header muy compacto: logo + pills con scroll horizontal */
    .main-header { position: relative; top: auto; }
    .header-top {
        flex-direction: row !important;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
        padding: 0.45rem 1vw 0.35rem;
        background: var(--color-dark);
    }
    .logo { font-size: 1rem; min-width: 80px; letter-spacing: 1px; flex-shrink: 0; margin-bottom: 0; }
    .contact-info {
        flex: 1 1 auto;
        flex-direction: row !important;
        flex-wrap: nowrap;
        gap: 0.35rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        min-width: 0;
        justify-content: flex-start;
    }
    .contact-info::-webkit-scrollbar { display: none; }
    .contact-info > div {
        flex: 0 0 auto;
        min-width: 90px;
        max-width: 130px;
        height: 40px;
        padding: 0.3em 0.55em;
        border-radius: 10px;
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
    }
    .contact-info > div:nth-child(2) { max-width: 148px; }
    .contact-info .contact-text { flex-direction: row; align-items: center; gap: 0.25rem; overflow: hidden; min-width: 0; }
    .contact-info .contact-text span:first-child { display: none; }
    .contact-info .contact-text span:last-child { font-size: 0.7rem; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; max-width: 100%; }
    .contact-info i { font-size: 1.1em; margin-right: 0.35em; flex-shrink: 0; }
    /* Nav bar: sticky, columna (nav arriba, redes abajo) */
    .menu-social-bar {
        position: sticky;
        top: 0;
        z-index: 1099;
        padding: 0.3rem 0.8vw 0.35rem;
        gap: 0;
        flex-direction: column;
        align-items: stretch;
    }
    .main-nav ul { gap: 0.25rem; padding: 0.3em 0; flex-wrap: wrap; }
    .main-nav a { font-size: 0.72rem; padding: 0.3em 0.6em; }
    .social-icons a { width: 32px; height: 32px; font-size: 0.95rem; }
    /* Hero */
    .hero { padding: 0 0.75rem 0.75rem; min-height: 320px; height: auto; }
    .hero-content { padding: 1rem 0.85rem; }
    .hero-content h1 { font-size: 1.7rem; line-height: 1.2; }
    .hero-content .hero-desc { font-size: 0.87rem; }
    /* Carousel: en móvil, scroll táctil en lugar de animación */
    .carousel-section { overflow: visible; }
    .carousel-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        min-width: 0;
        padding: 0 0.75rem 0.5rem;
    }
    .carousel-track { animation: none; width: max-content; margin-top: 0; gap: 0.75rem; }
    .carousel-card { min-width: 240px; max-width: 240px; scroll-snap-align: center; }
    /* Stats */
    .inicio-stats-panel { margin-top: 0 !important; margin-bottom: 0 !important; }
    .inicio-stat { font-size: 1.3rem; padding: 1em 0 0.8em; }
    .inicio-stat-label { font-size: 0.78rem; }
    /* Sección inicio */
    .section-inicio { margin-top: 0; position: relative; top: 0; left: 0; width: 100%; }
    .inicio-main-row { min-height: auto; margin-top: 0; }
    .inicio-img-col { min-height: auto; padding: 0; }
    .inicio-img-col img { max-height: 240px; width: 100%; height: auto; object-fit: cover; display: block; }
    .inicio-text-col { padding: 1.5rem 1rem 1.5rem; min-height: auto; }
    .inicio-title { font-size: 1.5rem; }
    .inicio-desc { font-size: 0.92rem; margin-bottom: 1rem; }
    .inicio-badge { font-size: 0.85rem; }
    .inicio-btn { font-size: 0.95rem; padding: 0.6em 1.5em; }
    /* Servicios tabs: apilados verticalmente */
    .servicios-tabs-bar { flex-direction: column; align-items: stretch; padding: 0.5rem; }
    .servicios-tab { width: 100%; text-align: center; font-size: 0.92rem; padding: 0.6rem; border-radius: 0.4em; }
    .servicio-tab-content-row { padding: 1.2rem 0.8rem; gap: 1rem; }
    .servicio-tab-title,
    .servicio-content h2 { font-size: 1.45rem; }
    .servicio-tab-desc,
    .servicio-content p { font-size: 0.9rem; }
    .servicio-content li { font-size: 0.9rem; }
    /* Novedades */
    .novedades-title { font-size: 1.9rem; }
    .novedad-main-content { padding: 1.5rem 1.2rem 1.2rem; }
    .novedad-main-content h3 { font-size: 1.8rem; }
    .novedad-lead { font-size: 1rem; max-width: 100%; }
    /* Testimonios: 1 card, scroll snap */
    .section-testimonios { padding: 0.9rem 0 1.8rem; }
    .testimonios-title { font-size: 1.8rem; }
    .testimonios-badge { font-size: 0.88rem; }
    .testimonios-nav-btn { display: none !important; }
    .testimonios-slider { padding: 0.5rem 1rem; gap: 0.75rem; scroll-snap-type: x mandatory; }
    .testimonio-card {
        flex: 0 0 80vw;
        min-width: 250px;
        max-width: 84vw;
        min-height: 310px;
        padding: 1.4em 1.1em;
        scroll-snap-align: center;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
    .testimonio-card.active { transform: none !important; box-shadow: 0 10px 28px rgba(30,198,217,0.22); }
    .testimonio-card img { width: 64px; height: 64px; }
    .testimonio-card .testimonio-texto { font-size: 0.95em; }
    /* Contacto */
    .section-contacto.contacto-grid .container { padding: 1rem 0.75rem; gap: 0.85rem; }
    .section-contacto .contacto-info,
    .section-contacto .contacto-mapa,
    .section-contacto .contacto-formulario { padding: 1rem; border-radius: 0.9rem; box-sizing: border-box; }
    .contacto-info .section-title { font-size: 1.4rem; }
    .contacto-lista li { font-size: 0.9rem; }
    .contacto-mapa iframe { min-height: 260px; }
    .contact-form input[type="text"],
    .contact-form textarea { font-size: 0.9rem; padding: 0.8rem; }
    .contact-form .btn-main { width: 100%; }
    /* General */
    .section-title { font-size: 1.65rem; }
    .btn-main { font-size: 0.9rem; padding: 0.55em 1.2em; }
}

/* ── ≤ 480px: Móvil mediano ───────────────────────────────── */
@media (max-width: 480px) {
    .logo { font-size: 0.92rem; min-width: 68px; }
    .contact-info > div { min-width: 82px; max-width: 110px; height: 36px; font-size: 0.65rem; }
    .contact-info > div:nth-child(2) { max-width: 115px; }
    .contact-info i { font-size: 1em; }
    .main-nav a { font-size: 0.68rem; padding: 0.28em 0.52em; }
    .social-icons a { width: 28px; height: 28px; font-size: 0.85rem; }
    .hero-content h1 { font-size: 1.45rem; }
    .hero-content .hero-desc { font-size: 0.83rem; }
    .carousel-card { min-width: 225px; max-width: 225px; }
    .inicio-title { font-size: 1.3rem; }
    .inicio-desc { font-size: 0.88rem; }
    .servicios-tab { font-size: 0.85rem; padding: 0.55rem; }
    .novedades-title { font-size: 1.6rem; }
    .novedad-main-content h3 { font-size: 1.5rem; }
    .testimonios-title { font-size: 1.5rem; }
    .testimonio-card { flex: 0 0 88vw; max-width: 90vw; }
    .section-title { font-size: 1.5rem; }
}

/* ── ≤ 375px: Móvil pequeño (iPhone SE, Galaxy A) ─────────── */
@media (max-width: 375px) {
    .logo { font-size: 0.82rem; min-width: 58px; }
    .contact-info > div { min-width: 68px; max-width: 88px; height: 32px; padding: 0.2em 0.4em; font-size: 0.6rem; }
    .contact-info > div:nth-child(2) { max-width: 93px; }
    .contact-info i { font-size: 0.9em; margin-right: 0.25em; }
    .contact-info .contact-text span:last-child { font-size: 0.6rem; }
    .main-nav a { font-size: 0.63rem; padding: 0.25em 0.45em; }
    .social-icons a { width: 26px; height: 26px; font-size: 0.8rem; }
    .hero-content h1 { font-size: 1.25rem; }
    .hero-content .hero-desc { font-size: 0.8rem; }
    .hero-content { padding: 0.9rem 0.7rem; }
    .carousel-card { min-width: 205px; max-width: 205px; }
    .testimonio-card { flex: 0 0 94vw; max-width: 96vw; }
    .section-title { font-size: 1.35rem; }
    .inicio-title { font-size: 1.15rem; }
    .novedades-title { font-size: 1.4rem; }
    .testimonios-title { font-size: 1.35rem; }
}

/* Logo imagen en el header */
.header-logo-img {
    height: 58px;
    max-height: 58px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    border-radius: 6px;
    flex-shrink: 0;
    display: block;
}

@media (max-width: 900px) {
    .header-logo-img { height: 44px; }
}

@media (max-width: 600px) {
    .header-logo-img { height: 36px; }
}

@media (max-width: 375px) {
    .header-logo-img { height: 30px; }
}

