/* --- VARIABLES Y CONFIGURACIÓN --- */
:root {
    /* Tu Paleta de Colores */
    --primary-dark: #114a94;
    /* Azul Profundo (Footer, Navbar scroll) */
    --primary-main: #004c9c;
    /* Azul Institucional (Títulos, Botones) */
    --accent: #2c90c2;
    /* Celeste Brillante (Hover, Detalles) */
    --bg-light: #f0f9ff;
    /* Cielo Muy Claro (Fondos suaves) */
    --text-dark: #1a1a1a;
    /* Texto oscuro */
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

body {
    background-color: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    font-weight: 400;
    /* Regular */
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
}

/* --- TIPOGRAFÍA --- */
h1,
h2,
h3 {
    font-weight: 900;
    /* Black */
    color: var(--primary-main);
    text-transform: uppercase;
    letter-spacing: -1px;
}

p {
    color: #4a4a4a;
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
}

/* --- NAVBAR --- */
.navbar {
    position: absolute;
    /* Fixed at the top */
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    /* Más compacto */
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Always Floating / Pill Style */
    background-color: rgba(255, 255, 255, 0.9);
    /* White with blur */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--primary-dark);
    /* Dark text for white background */
}

.navbar.scrolled {
    /* Ya es flotante por defecto, aquí podemos ajustar si queremos que cambie algo al bajar, 
       o dejarlo igual. Por consistencia, lo dejamos igual o reducimos un poco más la sombra?
       Dejemos solo retoques mínimos si es necesario. */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    /* Ajustado para el diseño compacto */
    width: auto;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    /* SemiBold */
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-logo-ascanelli {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Navbar Button */
.btn-nav {
    background-color: var(--primary-main);
    color: var(--white) !important;
    /* Force white text */
    padding: 10px 25px;
    border-radius: 50px;
    transition: background 0.3s, transform 0.2s;
}

.btn-nav:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    color: var(--white) !important;
}

.menu-toggle {
    display: none;
    /* Oculto en escritorio */
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.scroll-track {
    position: relative;
    height: 500vh;
    /* 5 sections/slides + transitions */
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.hero {
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    /* Ensure content stays within bounds */
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: opacity;
}

#video-front {
    z-index: -1;
    opacity: 1;
}

#video-back {
    z-index: -2;
    opacity: 0;
}

#video-argentina {
    z-index: -3;
    opacity: 0;
}

#video-services {
    z-index: -4;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Degradado usando tus azules para filtrar el video */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Updated to match the dark filter requested for both sections */
    background: linear-gradient(135deg, rgba(14, 52, 92, 0.9), rgba(6, 26, 51, 0.85));
    z-index: 1;
    /* Updated to sit on top of videos (-1 and -2) but below content (2) */
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient Azul Más Profundo/Oscuro para resaltar textos */
    /* Aclarado más (v3) a pedido del usuario */
    background: linear-gradient(135deg, rgba(14, 52, 92, 0.4), rgba(6, 26, 51, 0.35));
    z-index: 1;
    /* Same layer as base overlay, JS opacity will blend them */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s linear;
    /* Fast transition controlled by JS */
}

.hero-content {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    height: 100vh;
    pointer-events: none;
    /* Center slides container content within viewport */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slides container logic */
.hero-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    transition: opacity 0.5s ease;
}

/* Si usas position absolute, el padre .hero debe tener height fijo o flex center. 
   Como .hero tiene display flex align center, el contenido está centrado.
   Pero si ponemos absolute a los hijos, salen del flujo.
   Mejor estrategia: Grid Overlay o Position Absolute en ambos.
*/

/* Reset para evitar problemas layout: */
.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    place-items: center;
    width: 100%;
    /* Reduced height and margin-top to shift the absolute 'top: 50%' center downwards */
    height: calc(100% - 100px - 130px);
    margin-top: 100px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    padding: 0 24px;
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#hero-slide-1,
#hero-slide-2,
#hero-slide-3 {
    opacity: 0;
    pointer-events: none;
    /* Initial state slightly lower for the fade-in effect */
    transform: translate(-50%, calc(-50% + 20px));
}

#hero-slide-1 {
    opacity: 1;
    transform: translate(-50%, -50%);
    pointer-events: auto;
}

/* --- HERO ACCORDION --- */
.hero-accordion {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-accordion-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.hero-accordion-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-accordion-item.open {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-accordion-item .card-header {
    background: transparent;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    border: none;
    cursor: pointer;
    color: var(--white);
    transition: background 0.3s;
}

.hero-accordion-item .icon-box {
    margin-bottom: 0;
    font-size: 1.5rem;
    color: var(--accent);
    width: 30px;
    display: flex;
    justify-content: center;
}

.hero-accordion-item h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--white);
    flex-grow: 1;
}

.hero-accordion-item .card-caret {
    color: var(--white);
    opacity: 0.7;
    transition: transform 0.3s;
}

.hero-accordion-item.open .card-caret {
    transform: rotate(180deg);
}

.hero-accordion-item .card-body {
    padding: 0 24px 20px 69px;
    /* Align with text after icon (30px + 15px gap + 24px padding) */
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.hero-accordion-item.open .card-body {
    max-height: 200px;
    opacity: 1;
    padding-bottom: 24px;
}

.hero-accordion-item .card-body p {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 500;
}

/* Expanded State Styles */
.hero-accordion-item.open h3 {
    color: var(--accent);
    /* Blue/Celeste title for contrast */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-accordion-item.open .card-body p {
    color: #8ed1fc;
    /* Celeste/Light Blue */
    font-size: 1rem;
    margin-bottom: 0;
    font-weight: 500;
}

#hero-slide-1 {
    /* Centrado por grid padre */
    padding-bottom: 0;
}

#hero-slide-1 h1 {
    margin-bottom: 12px;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 3.2rem);
    margin-bottom: clamp(12px, 2.5vh, 20px);
    color: var(--white);
    line-height: 1.1;
}

/* --- BRAND BADGE --- */
.brand-badge {
    margin-bottom: clamp(15px, 3vh, 40px);
    /* Reduced gap to save vertical space */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-badge p {
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.5vw, 2px);
    font-size: clamp(0.7rem, 1.2vw, 0.85rem);
}

.ascanelli-logo {
    width: clamp(280px, 50vw, 720px);
    max-width: 100%;
    height: auto;
    display: block;
}

.official-badge {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    z-index: 3;
}

.official-badge p {
    margin: 0;
    font-weight: 900;
    letter-spacing: -1px;
    font-size: 3.5rem;
    line-height: 1.1;
    color: var(--white);
    text-transform: uppercase;
}

.official-badge img {
    height: 720px;
    width: auto;
    object-fit: contain;
}

.hero-title {
    white-space: pre-line;
}

.hero-content p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    font-weight: 500;
    color: #e0e0e0;
    max-width: 800px;
    margin-bottom: clamp(20px, 4vh, 35px);
}

/* Features List Styles */
.hero-features {
    list-style: none;
    margin-bottom: 18px;
    text-align: left;
    display: inline-block;
}

.hero-features li {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-features i {
    color: var(--accent);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.small-note {
    font-size: 0.9rem !important;
    margin-top: 15px;
    font-weight: 400 !important;
}

/* BOTONES */
.btn {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--primary-main);
    color: var(--white);
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    transition: background 0.3s, transform 0.2s;
    border-radius: 50px;
    /* Estilo redondeado 'Pill' */
}

.btn:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}

/* --- SECCIONES GENERALES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.split-section {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 100px 20px;
    background-color: var(--white);
}

.text-block {
    flex: 1;
}

.image-block {
    flex: 1;
}

.image-block img {
    width: 100%;
    height: auto;
    box-shadow: 20px 20px 0px var(--bg-light);
    /* Efecto decorativo */
}

/* --- SERVICIOS GRID --- */
/* Services integration */
#services-slide-1,
#services-slide-2 {
    transform: translateY(-20px);
}


.services-section {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    padding: 60px 0;
    text-align: center;
    z-index: 2;
    /* Ensure content is above video/overlay */
    overflow: hidden;
    isolation: isolate;
}

.services-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-video-services {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.overlay-services {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 76, 156, 0.12), rgba(0, 76, 156, 0.35));
    z-index: 1;
    pointer-events: none;
}

.services-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    /* Title then slides */
    place-items: center;
    pointer-events: none;
}

.section-title {
    grid-column: 1;
    margin-bottom: 60px;
    font-size: 2.5rem;
    pointer-events: auto;
}

.services-slide {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: auto;
}

#services-slide-2 {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.services-section .section-title {
    color: var(--white);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    width: 100%;
}

.card {
    position: relative;
    background: rgba(255, 255, 255, 0.78);
    padding: 32px 24px;
    border-top: 4px solid var(--primary-main);
    text-align: left;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.1);
    transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.3s ease;
    overflow: hidden;
    border-radius: 18px;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.collapsible {
    padding: 0;
    min-height: 0;
}

.card-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 24px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
    position: relative;
}

.card-header:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.card-caret {
    margin-left: auto;
    font-size: 1rem;
    transition: transform 0.25s ease;
    color: var(--primary-main);
}

.card-body {
    padding: 0 24px 20px 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding-top 0.25s ease;
    opacity: 0;
}

.collapsible.open .card-body {
    max-height: 1200px;
    opacity: 1;
    padding-top: 0;
}

.collapsible.open .card-caret {
    transform: rotate(180deg);
}

.card-body p {
    margin-bottom: 10px;
}

.icon-box {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.card-header .icon-box {
    margin-bottom: 0;
}

.card-header h3 {
    font-size: 1.15rem;
    letter-spacing: 0;
}

.collapsible.open {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.2);
}

.collapsible.muted {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    opacity: 0.7;
    transform: none;
}

.collapsible.muted:hover {
    transform: none;
    box-shadow: none;
}

.center-card {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 520px;
}

.center-card .card-header {
    justify-content: center;
}

.center-card .card-body {
    text-align: center;
}

.center-card .card-list {
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}

.card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(44, 144, 194, 0.25), transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(0, 76, 156, 0.18), transparent 40%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.card:hover::before,
.collapsible.open::before {
    opacity: 1;
}

.grid-container {
    perspective: 1200px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.card-list {
    list-style: disc;
    padding-left: 20px;
    margin: 12px 0 0;
    display: grid;
    gap: 8px;
    color: #3a3a3a;
}

.card-list li strong {
    color: var(--primary-main);
}

/* --- FOOTER --- */
footer {
    background-color: rgba(255, 255, 255, 0.9);
    /* White crystal background */
    color: var(--primary-dark);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 40px 10px;
    width: 95%;
    max-width: 1420px;
    margin: 40px auto 20px;
    border-radius: 40px;
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(40px);
}

footer.visible {
    opacity: 1;
    transform: translateY(0);
}

footer.floating {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, 0.85);
    /* Light semi-transparent white */
    z-index: 1000;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    transition: none;
    /* Disable transition while floating for better JS tracking */
}

.footer-content {
    max-width: 1420px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    /* 2 columns on desktop */
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
    position: relative;
}

.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 5px;
    object-fit: contain;
}

.footer-content h3 {
    color: var(--primary-main);
    margin-bottom: 10px;
}

.footer-content p {
    color: var(--primary-main);
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    text-align: left;
}

.footer-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    /* Align Ascanelli group to the right column */
    color: var(--primary-dark);
    text-align: right;
    line-height: 1.5;
}

.footer-ascanelli-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centered over the logo */
    text-align: center;
    gap: 5px;
    z-index: 20;
}

.footer-ascanelli-title {
    font-weight: 700;
    color: var(--primary-main);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

.footer-ascanelli-logo {
    height: 140px;
    /* Reduced to balance space and vertical height */
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Removes the solid white background by blending with the light footer */
}

.footer-address {
    margin-top: 8px;
}

.socials {
    margin: 5px 0;
}

.socials a {
    color: var(--primary-main);
    font-size: 1.5rem;
    margin: 0 20px 0 0;
    transition: color 0.3s, transform 0.3s;
    display: inline-block;
}

.socials a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 10px;
    max-width: 1420px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 15px;
    font-size: 0.8rem;
    color: var(--primary-dark);
    text-align: left;
}

.footer-bottom p {
    color: var(--primary-dark);
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
}

.footer-dev {
    position: absolute;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.75rem;
}

.footer-dev img {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: brightness(0.2);
    /* Make EnterLab logo visible on white */
}

.footer-copy {
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.8;
}

.footer-terms {
    margin-left: auto;
    position: absolute;
    right: 0;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 400;
    font-size: inherit;
}

.footer-terms:hover,
.footer-terms:focus-visible {
    text-decoration: underline;
}

/* --- ANIMACIONES --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    /* Hidden by default */
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* Parallax Effect Helper */
/* El JS manipulará 'transform', pero necesitamos will-change para performance */
#bg-video {
    will-change: transform;
}

/* --- RESPONSIVE (Móvil) --- */
@media (max-width: 768px) {
    html {
        scroll-snap-type: none;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        /* Reduced gap from 30px */
    }

    footer {
        padding: 20px 20px 10px;
        margin-top: 20px;
    }

    .footer-logo {
        height: 50px;
        width: auto;
    }

    .footer-left p {
        font-size: 0.85rem;
    }

    .footer-right {
        justify-content: center;
        text-align: center;
    }

    .footer-ascanelli-group {
        position: static;
        margin-top: 20px;
        /* Reduced margin from 30px */
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-ascanelli-logo {
        height: 70px;
        /* Reduced height from 100px */
    }

    .footer-ascanelli-title {
        font-size: 0.8rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        position: static;
    }

    .footer-dev {
        position: static;
        order: -1;
    }

    .footer-terms {
        position: static;
        margin-left: 0;
    }

    .nav-logo-ascanelli {
        height: 28px;
    }

    .menu-toggle {
        display: block;
        color: var(--primary-dark);
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: transparent;
        backdrop-filter: none;
        padding: 20px;
        gap: 15px;
        border-radius: 0 0 18px 18px;
        box-shadow: none;
        transform: translateY(-20px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* Push content down to avoid overlap */
    .hero-content {
        margin-top: 140px;
        /* Increased from default */
    }

    /* Hide regular links on mobile, show only Portal Pedidos */
    .nav-links li:not(:has(.btn-nav)) {
        display: none;
    }


    .hero-content h1 {
        font-size: 2.5rem;
    }

    #hero-slide-1 {
        padding-bottom: 60px;
    }

    .split-section {
        flex-direction: column;
    }

    .services-track {
        height: auto;
    }

    .services-section {
        position: relative;
        min-height: auto;
        padding: 60px 20px;
    }

    .top-button {
        bottom: 84px;
    }

    .official-badge {
        top: 50%;
    }

    .official-badge img {
        height: 400px;
    }

    .official-badge p {
        font-size: 2.5rem;
    }

    #hero-slide-1 {
        padding-bottom: 0;
    }

    #hero-slide-1 h1 {
        margin-bottom: 10px;
    }
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background-color: #25d366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    z-index: 1100;
    border: none;
}

.whatsapp-float img {
    width: 68%;
    height: 68%;
    object-fit: contain;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible,
.whatsapp-float.active {
    background-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.whatsapp-float:focus {
    outline: none;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float img {
        width: 60%;
        height: 60%;
    }
}

.top-button {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--primary-main);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
}

.top-button.visible {
    opacity: 1;
    pointer-events: auto;
}

.top-button:hover,
.top-button:focus-visible {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
    outline: none;
}

.top-button {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--primary-main);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
}

.top-button.visible {
    opacity: 1;
    pointer-events: auto;
}

.top-button:hover,
.top-button:focus-visible {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
    outline: none;
}


/* --- MODAL NOSOTROS --- */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1200;
}

.modal.show {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    max-width: 720px;
    width: 90%;
    padding: 32px 36px;
    border-radius: 18px;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.2);
    z-index: 1;
    animation: modalIn 0.25s ease;
    overflow: hidden;
}

/* Specific compact width for WhatsApp modal */
#whatsapp-modal .modal-content {
    max-width: 450px;
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 16px;
    color: var(--primary-main);
}

.modal-content h3 {
    margin: 18px 0 10px;
    color: var(--primary-main);
}

.modal-logo {
    display: block;
    margin: 0 auto 6px;
    height: 64px;
    width: auto;
    object-fit: contain;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.modal-content p {
    margin-bottom: 12px;
    color: #3a3a3a;
    line-height: 1.6;
}

.modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.modal-list li {
    padding-left: 0;
    color: #2d2d2d;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 1.8rem;
    color: var(--primary-main);
    cursor: pointer;
    line-height: 1;
    padding: 6px;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
    background: var(--bg-light);
    transform: scale(1.05);
}

.modal-content::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.16), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(44, 144, 194, 0.25), transparent 30%),
        radial-gradient(circle at 50% 80%, rgba(0, 76, 156, 0.2), transparent 40%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.modal-content:hover::before {
    opacity: 1;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: grid;
    gap: 12px;
}

.contact-list a {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(0, 76, 156, 0.12), rgba(44, 144, 194, 0.16));
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.contact-list a:hover,
.contact-list a:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.14);
    background: linear-gradient(90deg, rgba(44, 144, 194, 0.2), rgba(0, 76, 156, 0.24));
    outline: none;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.highlight-text {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: clamp(10px, 2vh, 15px);
    text-transform: uppercase;
    letter-spacing: clamp(1px, 0.4vw, 2px);
    font-size: clamp(0.75rem, 1.25vw, 0.95rem);
}