/* --- Configuración Global --- */
:root {
    --primary-blue: #0f4c81; 
    --bg-main: #f4f8fd;      
    --bg-card: #ffffff;      
    --text-main: #1f2937;    
    --text-secondary: #4b5563; 
    --border-color: #cbd5e1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Evita desplazamiento horizontal no deseado */
/* --- style.css (Al principio del archivo) --- */

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Esto es vital */
    position: relative; /* Añade esto por si acaso */
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-main); 
    color: var(--text-main);
    line-height: 1.6;
}

/* Modificación para bloqueo TOTAL del scroll en móvil */
body.no-scroll { 
    overflow: hidden !important;
    height: 100vh !important;
    width: 100% !important;
    position: fixed !important; 
}

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

html {
    scroll-behavior: smooth;
}
/* --- Header / Navegación --- */
/* --- Header / Navegación --- */
.site-header {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    z-index: 50;
    padding: 1rem 0 2rem 0; 
    background: linear-gradient(to bottom, rgba(226, 230, 234, 1) 20%, rgba(226, 230, 234, 0.8) 60%, rgba(226, 230, 234, 0) 100%);
    
    /* BORRA ESTA LÍNEA DE AQUÍ ABAJO: */
    /* backdrop-filter: blur(2px); */
    
    border-bottom: none;
}

.site-header .container {
    max-width: 100%; width: 100%; padding: 0 3rem; 
    display: flex; justify-content: space-between; align-items: center;
}

.site-logo { max-height: 120px; width: auto; display: block; }

.main-nav ul { display: flex; gap: 2rem; align-items: center; }
.main-nav a {
    font-weight: 700; font-size: 0.9rem; text-transform: uppercase;
    color: var(--text-main); transition: color 0.3s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary-blue); }

.hamburger-menu { display: none; }
.close-menu-item { display: none; }

/* --- Sección Hero (Portada CON VIDEO) --- */
.hero-section {
    position: relative; 
    min-height: 100vh; 
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    overflow: hidden; 
    /* El padding extra abajo evita que el degradado tape contenido */
    padding-bottom: 100px; 
}

/* Estilos del Video de Fondo */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0; /* Al fondo del todo */
object-position: center 100%; 
}

/* --- style.css --- */

/* Busca este bloque y sustituye la línea del background */
.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    
    /* NUEVO DEGRADADO MÁS CLARO EN EL CENTRO: */
    /* - Empieza sólido arriba (1) para unirse al header */
    /* - Baja rápidamente a muy transparente (0.3 en el 25%) */
    /* - Se mantiene muy claro en el centro (0.2 en el 50%) */
    /* - Termina casi transparente abajo (0.1) para mezclarse con el siguiente degradado */
    background: linear-gradient(to bottom, 
        rgba(226, 230, 234, 1) 0%, 
        rgba(226, 230, 234, 0.3) 25%, 
        rgba(226, 230, 234, 0.2) 50%, 
        rgba(226, 230, 234, 0.1) 100%);
        
    z-index: 1; 
}

/* Transición suave al final de la portada */
/* Transición suave al final de la portada */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px; 
    
    /* CAMBIO: De #ffffff (blanco puro) a #f6f9fd (el gris azulado de las otras secciones) */
    background: linear-gradient(to bottom, transparent 0%, #d4d7da 100%);
    
    z-index: 2; 
    pointer-events: none;
}

/* Contenedor del texto (Encima de todo) */
.hero-container { position: relative; z-index: 3; padding-top: 120px; }

.hero-text-content { margin-bottom: 3rem; }
.hero-text-content h1 { font-weight: 700; font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--text-main); letter-spacing: -0.5px; }
.hero-text-content h2.highlight-blue { color: var(--primary-blue); font-weight: 800; font-size: 3.5rem; margin-bottom: 1.5rem; line-height: 1.2; text-shadow: 2px 2px 0px rgba(255,255,255,0.5); }
.hero-text-content .sub-headline { font-size: 1.2rem; max-width: 750px; margin: 0 auto; color: var(--text-main); font-weight: 500; font-weight: bold;}

/* Beneficios */
.benefits-bar {
    display: flex; justify-content: space-between;
    background-color: var(--bg-card); border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
    padding: 2.5rem 1rem; margin-bottom: 3rem; border: 1px solid #ffffff;
}
.benefit-item { flex: 1; padding: 0 1.5rem; display: flex; flex-direction: column; align-items: center; border-right: 1px solid var(--border-color); }
.benefit-item.no-border { border-right: none; }
.benefit-icon { width: 48px; height: 48px; color: var(--primary-blue); margin-bottom: 1rem; background-color: #f0f4f8; padding: 10px; border-radius: 50%; }
.benefit-item p { font-size: 0.9rem; font-weight: 700; color: var(--text-secondary); }

/* CTA Buttons */
.cta-container { display: flex; justify-content: center; gap: 1.5rem; }
.btn { display: inline-block; padding: 1rem 2.2rem; font-weight: 700; text-transform: uppercase; border-radius: 8px; transition: all 0.3s ease; letter-spacing: 0.5px; font-size: 0.9rem; }
.btn-primary { background-color: var(--primary-blue); color: #ffffff; border: 2px solid var(--primary-blue); box-shadow: 0 4px 10px rgba(15, 76, 129, 0.3); }
.btn-primary:hover { background-color: #0a355c; border-color: #0a355c; transform: translateY(-2px); }
.btn-outline { background-color: transparent; color: var(--text-main); border: 2px solid var(--text-main); }
.btn-outline:hover { background-color: var(--text-main); color: #ffffff; transform: translateY(-2px); }

/* --- PORTFOLIO 3D --- */
/* --- PORTFOLIO 3D --- */
.portfolio-section { 
    padding: 80px 0; 
    text-align: center; 
    
    /* CAMBIO: Quitamos el borde blanco que sobraba */
    border-bottom: none; 
    
    /* PARALLAX CONFIG */
    position: relative;
    overflow: hidden;
    background-image: url('../images/hero-bg.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
/* EL VELO (OVERLAY) */
.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Degradado vertical suave porque aquí el contenido está centrado */
    background: linear-gradient(
        to left, 
        rgba(246, 249, 253, 0.85) 0%, 
        rgba(246, 249, 253, 0.75) 100%  
    );
    z-index: 1;
}

/* IMPORTANTE: Elevar el contenido sobre el velo */
.portfolio-section .container {
    position: relative;
    z-index: 2;
}
.portfolio-header { margin-bottom: 40px; }
.portfolio-link-hover { text-decoration: none; color: inherit; transition: color 0.3s ease; }
.portfolio-link-hover:hover { color: var(--primary-blue); }

.carousel-3d-wrapper { position: relative; width: 100%; max-width: 1000px; margin: 20px auto 0; display: flex; align-items: center; justify-content: center; height: 500px; overflow: hidden; }
.carousel-3d-container { position: relative; width: 100%; height: 100%; perspective: 1000px; transform-style: preserve-3d; }

.carousel-3d-item { position: absolute; top: 50%; left: 50%; width: 280px; height: 420px; aspect-ratio: 2/3; background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.3); transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); transform-origin: center center; transform: translate(-50%, -50%) scale(0.5); opacity: 0; z-index: 1; cursor: zoom-in; }
.carousel-3d-item img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(0.6); transition: filter 0.6s ease; }

.carousel-3d-item.item-center { transform: translate(-50%, -50%) scale(1.1); opacity: 1; z-index: 10; box-shadow: 0 20px 50px rgba(15, 76, 129, 0.3); }
.carousel-3d-item.item-center img { filter: brightness(1); }
.carousel-3d-item.item-right-1 { transform: translate(20%, -50%) scale(0.85) translateZ(-100px); opacity: 0.8; z-index: 5; }
.carousel-3d-item.item-left-1 { transform: translate(-120%, -50%) scale(0.85) translateZ(-100px); opacity: 0.8; z-index: 5; }
.carousel-3d-item.item-right-2 { transform: translate(90%, -50%) scale(0.7) translateZ(-200px); opacity: 0.5; z-index: 2; }
.carousel-3d-item.item-left-2 { transform: translate(-190%, -50%) scale(0.7) translateZ(-200px); opacity: 0.5; z-index: 2; }

.portfolio-overlay { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: white; padding: 20px; opacity: 0; transition: opacity 0.4s ease 0.2s; text-align: center; }
.item-center .portfolio-overlay { opacity: 1; }
.portfolio-overlay h3 { margin: 5px 0 0; font-size: 1.4rem; }

.nav-btn-3d { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.8); border: none; color: var(--primary-blue); width: 50px; height: 50px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; z-index: 20; transition: all 0.3s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.1); display: flex; align-items: center; justify-content: center; }
.nav-btn-3d:hover { transform: translateY(-50%) scale(1.1); }
.prev-btn-3d { left: 10px; } .next-btn-3d { right: 10px; }


/* =========================================
   MEDIA QUERIES (RESPONSIVIDAD)
   ========================================= */

/* TABLET (hasta 1024px) */
@media (max-width: 1024px) {
    .site-header .container { padding: 0 1.5rem; } 
    .hero-text-content h1 { font-size: 2rem; }
    .hero-text-content h2.highlight-blue { font-size: 2.5rem; }
    .benefits-bar { flex-wrap: wrap; }
    .benefit-item { flex-basis: 45%; margin-bottom: 2rem; border-right: none; }
}

/* MÓVIL (hasta 768px) */
@media (max-width: 768px) {
    
    /* 1. Header con degradado */
    .site-header { 
        position: absolute; 
        background: linear-gradient(to bottom, rgba(255,255,255,1) 40%, rgba(255,255,255,0) 100%);
        border-bottom: none;
        padding-bottom: 20px;
    }
    .site-header .container { justify-content: space-between; padding: 0 1.5rem; }
    .site-logo { max-height: 60px; width: auto; } 

    /* Menú Móvil */
    .hamburger-menu { display: block; background: none; border: none; cursor: pointer; padding: 10px; z-index: 60; }
    .hamburger-menu span { display: block; width: 30px; height: 3px; background-color: var(--text-main); margin: 6px 0; border-radius: 3px; transition: 0.3s; }
    
    /* --- style.css --- */

/* Busca esto dentro del @media (max-width: 768px) y SUSTITÚYELO */

.main-nav {
    position: fixed; 
    top: 0; 
    right: 0; /* CAMBIO: Lo pegamos a la derecha siempre */
    width: 75%; 
    height: 100vh;
    background-color: white; 
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 70; 
    padding: 80px 20px 20px;

    /* LA CLAVE: Usamos transform para sacarlo de la pantalla sin que ocupe espacio real */
    transform: translateX(100%); 
    transition: transform 0.4s ease-in-out; /* Animamos la transformación */
    
    /* Nota: He quitado 'transition: right' porque ya no usamos 'right' para animar */
}

.main-nav.active { 
    /* CAMBIO: Para mostrarlo, simplemente le quitamos la traslación */
    transform: translateX(0); 
    /* right: 0; <-- Esto ya no hace falta cambiarlo */
}
    .main-nav ul { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .main-nav a { font-size: 1.1rem; }
    .close-menu-item { display: block; position: absolute; top: 20px; right: 20px; }
    .close-menu { background: none; border: none; font-size: 2rem; color: var(--text-main); cursor: pointer; }

    /* 2. Portada Transparente y Video Oculto */
    
    /* ¡IMPORTANTE! Ocultamos el video en el móvil para ahorrar datos y batería */
    /* DENTRO DE @media (max-width: 768px) */

    .hero-bg-video { 
        display: block; 
        
        /* CAMBIO: Limitamos la altura del video */
        /* Antes ocupaba todo el alto de la sección (que es muy larga por el texto) */
        /* Ahora le decimos: ocupa solo 750px (aprox lo que mide una pantalla de móvil) */
        height: 750px !important; 
        
        object-fit: cover;
        object-position: center bottom; /* Ajustamos para que se vea la carretera */
    }

    /* Opcional: Ajustamos también el degradado para que coincida con el corte del video */
    .hero-section .overlay {
        height: 750px !important;
    }

   .hero-section {
    height: auto; 
    min-height: 600px; /* Altura mínima para que quepa todo */
    padding-bottom: 60px;
    
    /* 2. QUITAMOS LA IMAGEN DE FONDO (Para que se vea el video) */
    background-image: none; 
    background-color: #e2e6ea; /* Color de reserva por si tarda en cargar el video */
}
    
    .hero-section .overlay {
    background: linear-gradient(
        to bottom, 
        rgba(226, 230, 234, 0.8) 0%,    /* Arriba: un poco más sólido para el menú */
        rgba(226, 230, 234, 0.3) 30%,   /* Centro: transparente para ver el video */
        rgba(226, 230, 234, 0.3) 60%,   
        rgba(226, 230, 234, 1) 100%     /* Abajo: sólido para fusionarse con la tarjeta blanca */
    );
}
    .hero-section::after { height: 150px; }

    .hero-container { padding-top: 160px; } 
    .hero-text-content h1 { font-size: 1.8rem; margin-top: 10px; }
    .hero-text-content h2.highlight-blue { font-size: 2rem; }
    
    .benefit-item { flex-basis: 100%; border-bottom: 1px solid #eee; padding-bottom: 1rem; margin-bottom: 1rem; }
    .benefit-item:last-child { border-bottom: none; }
    .cta-container { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }

    /* 5. Portfolio Móvil */
    .carousel-3d-wrapper { height: 450px; }
    .carousel-3d-item { width: 240px; height: 360px; }
    .carousel-3d-item.item-center { transform: translate(-50%, -50%) scale(1.0); }
    .carousel-3d-item.item-right-1 { transform: translate(15%, -50%) scale(0.8) translateZ(-50px); }
    .carousel-3d-item.item-left-1 { transform: translate(-115%, -50%) scale(0.8) translateZ(-50px); }
    .nav-btn-3d { width: 40px; height: 40px; font-size: 1.2rem; }
    .prev-btn-3d { left: 0; } .next-btn-3d { right: 0; }
}

/* PC GRANDE (Portfolio) */
@media (min-width: 1025px) {
    .carousel-3d-wrapper { height: 600px; max-width: 100%; overflow: hidden; }
    .carousel-3d-item { width: 320px; height: 480px; transform-style: flat; opacity: 1 !important; border: 2px solid white; }
    .carousel-3d-item.item-center { left: 50%; transform: translate(-50%, -50%) scale(1.1); z-index: 30; filter: brightness(1); }
    .carousel-3d-item.item-right-1 { left: 50%; transform: translate(calc(-50% + 400px), -50%) scale(0.9); z-index: 20; filter: brightness(0.5); }
    .carousel-3d-item.item-left-1 { left: 50%; transform: translate(calc(-50% - 400px), -50%) scale(0.9); z-index: 20; filter: brightness(0.5); }
    .carousel-3d-item.item-right-2 { left: 50%; transform: translate(calc(-50% + 750px), -50%) scale(0.7); z-index: 10; filter: brightness(0.3); }
    .carousel-3d-item.item-left-2 { left: 50%; transform: translate(calc(-50% - 750px), -50%) scale(0.7); z-index: 10; filter: brightness(0.3); }
    .carousel-3d-item:not(.item-center):hover { filter: brightness(1); cursor: pointer; transform: translate(calc(-50% + 400px), -50%) scale(0.95); }
    .carousel-3d-item.item-left-1:hover { transform: translate(calc(-50% - 400px), -50%) scale(0.95); }
    .nav-btn-3d { width: 60px; height: 60px; font-size: 2rem; background: white; }
    .prev-btn-3d { left: 80px; } .next-btn-3d { right: 80px; }
}

/* Lightbox */
.zoom-icon { font-size: 1rem; margin-left: 8px; opacity: 0.8; cursor: pointer; vertical-align: middle; }
.lightbox { display: none; position: fixed; z-index: 10000; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.95); backdrop-filter: blur(5px); align-items: center; justify-content: center; flex-direction: column; }
.lightbox.active { display: flex; }
.lightbox-content { margin: auto; display: block; width: auto; max-width: 90%; max-height: 80vh; border-radius: 8px; box-shadow: 0 0 50px rgba(255,255,255,0.1); animation: zoomIn 0.3s; }
#caption { margin: auto; display: block; width: 80%; max-width: 700px; text-align: center; color: #ccc; padding: 10px 0; height: 150px; font-size: 1.2rem; font-weight: 500; }
.close-lightbox { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; transition: 0.3s; cursor: pointer; z-index: 10001; }
.close-lightbox:hover { color: var(--primary-blue); }
@keyframes zoomIn { from {transform:scale(0.8); opacity: 0} to {transform:scale(1); opacity: 1} }
@media only screen and (max-width: 700px){ .lightbox-content { width: 95%; } .close-lightbox { top: 10px; right: 20px; font-size: 30px; } }

/* Flechas de navegación dentro del Lightbox */
.nav-btn-lightbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5); /* Fondo oscuro para que se vean */
    border: none;
    color: white;
    font-size: 2.5rem;
    padding: 15px;
    cursor: pointer;
    z-index: 10002;
    border-radius: 5px;
}   
.nav-btn-lightbox:hover { background: rgba(255, 255, 255, 0.3); }
.prev-lightbox { left: 10px; }
.next-lightbox { right: 10px; }
@media (max-width: 768px) { .nav-btn-lightbox { display: none; } }

/* OCULTAR BOTÓN MENÚ SUAVEMENTE (Crucial) */
.hamburger-menu.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
/* =========================================
   SECCIÓN PROCESO DE IMPORTACIÓN
   ========================================= */
.process-section {
    padding: 100px 0;
    /* CAMBIO: Ponemos la imagen de fondo fija */
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    position: relative; /* Necesario para que el velo se coloque bien */
    overflow: hidden; 
}

/* NUEVO: Capa semitransparente encima de la foto pero debajo del contenido */
.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* SOLUCIÓN: Usamos EXACTAMENTE la misma dirección y valores que en Stock Spain */
    /* Dirección 'to left' para que la luz venga del mismo sitio en toda la web */
    background: linear-gradient(
        to left, 
        rgba(246, 249, 253, 0.85) 0%,   
        rgba(246, 249, 253, 0.75) 100%  
    );
    
    z-index: 1;
}
.process-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    
    /* AÑADIR ESTAS DOS LÍNEAS: */
    position: relative; 
    z-index: 2; /* Nivel 2: Encima del velo */
}

/* Columna Izquierda (Texto) */
.process-content {
    flex: 1;
    max-width: 500px;
}

.titulo-seccion.align-left {
    text-align: left;
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
    line-height: 1.2;
}

.process-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Botones de navegación */
.process-controls {
    display: flex;
    gap: 1rem;
}

.proc-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-blue);
    background: transparent;
    color: var(--primary-blue);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proc-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

/* Columna Derecha (Slider) */
.process-slider-wrapper {
    flex: 1;
    overflow: hidden; /* Oculta las tarjetas que no están activas */
    width: 100%;
    /* Sombra sutil a los lados para indicar que hay más contenido */
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.process-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1); /* Transición suave */
}

/* Tarjetas de Pasos */
.process-card {
    min-width: 300px; /* Ancho fijo de cada tarjeta */
    background-color: var(--bg-main);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid #eee;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    user-select: none; /* Evita seleccionar texto al arrastrar */
}

/* --- style.css --- */

.step-number {
    font-size: 3.5rem;
    font-weight: 800;
    
    /* CAMBIO: Subimos la opacidad del 0.1 al 0.15 para que se note más */
    color: rgba(15, 76, 129, 0.15); 
    
    margin-bottom: -15px; 
    line-height: 1;
    transition: color 0.3s ease; /* Transición suave por si quieres hover */
}

/* OPCIONAL: Si pasas el ratón por encima de la tarjeta, el número se oscurece más */
.process-card:hover .step-number {
    color: rgba(15, 76, 129, 0.25); /* Se vuelve más visible al interactuar */
}

/* AJUSTE ESPECÍFICO PARA PC (Pantallas grandes) */
@media (min-width: 1025px) {
    .step-number {
        font-size: 5rem; /* Un poco más grande en PC para llenar espacio */
        /* Un pelín más oscuro en PC porque los monitores suelen tener mucho brillo */
        color: rgba(0, 30, 56, 0.274); 
    }
}

.process-card h3 {
    font-size: 1.4rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-weight: 700;
}

.process-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* --- RESPONSIVIDAD (MÓVIL) --- */
@media (max-width: 900px) {
    .process-container {
        flex-direction: column; /* Apila uno encima de otro */
        align-items: flex-start;
        gap: 2rem;
    }

    .process-content {
        max-width: 100%;
        text-align: left;
    }

    .process-section {
        background-attachment: scroll; /* AÑADIR ESTO */
        padding: 60px 0;
    }

    .titulo-seccion.align-left {
        font-size: 1.8rem;
    }

    /* En móvil, las tarjetas ocupan casi todo el ancho de la pantalla */
    .process-card {
        min-width: 85vw; 
    }
    
    .process-controls {
        /* En móvil a veces es mejor ocultar flechas si hay swipe, 
           pero las dejamos para accesibilidad */
        margin-top: 10px;
    }
}
/* =========================================
   SECCIÓN STOCK ESPAÑA (ENTREGA INMEDIATA)
   ========================================= */
/* =========================================
   SECCIÓN STOCK ESPAÑA (PARALLAX STYLE)
   ========================================= */
.stock-spain-section {
    padding: 100px 0;
    border-top: none; 

    /* PARALLAX CONFIG */
    position: relative;
    overflow: hidden;
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* EL VELO (OVERLAY) */
.stock-spain-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    /* CORRECCIÓN: 'to left' porque el texto está a la derecha. 
       Igualamos opacidad a Servicios (0.95 -> 0.85) */
    background: linear-gradient(
        to left, 
        rgba(246, 249, 253, 0.85) 0%,   
        rgba(246, 249, 253, 0.75) 100%
    );
    z-index: 1;
}
/* IMPORTANTE: Elevar el contenido */
.stock-spain-section .container {
    position: relative;
    z-index: 2;
}

.stock-wrapper {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: white;
    padding: 2rem;
    border-radius: 20px;
    
    /* CAMBIO 3: Sombra gris neutra en vez de azulada */
    /* Antes era: rgba(15, 76, 129, 0.08) */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); 
    
    /* Opcional: Si quieres un borde gris muy finito para delimitar la tarjeta */
    border: 1px solid #f1f1f1;
}

/* Columna Imagen */
.stock-image-col {
    flex: 1.2; /* La imagen ocupa un poco más */
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.stock-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    transition: transform 0.5s ease;
}

.stock-image-col:hover .stock-main-img {
    transform: scale(1.03); /* Efecto zoom suave al pasar ratón */
}

/* Badges (Etiquetas) */
.stock-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.badge {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.badge-delivery {
    background-color: #22c55e; /* Verde éxito */
    color: white;
}

.badge-registered {
    background-color: var(--primary-blue);
    color: white;
}

/* Columna Info */
.stock-info-col {
    flex: 1;
}

.stock-car-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.stock-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Parrilla de Specs */
.stock-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    padding-left: 15px;
    border-left: 3px solid #e2e8f0; /* Línea decorativa gris */
}

.spec-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Precio y Botón */
.stock-price-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-main);
    padding: 1.5rem;
    border-radius: 12px;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
}

.btn-stock {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
}

/* --- RESPONSIVIDAD (MÓVIL) --- */
@media (max-width: 900px) {
    .stock-wrapper {
        flex-direction: column;
        padding: 0;
        overflow: hidden; /* Para que la imagen respete los bordes */
        background: transparent; /* Quitamos fondo blanco en móvil para que parezca tarjeta nativa */
        box-shadow: none;
        gap: 0;
    }

    .stock-image-col {
        width: 100%;
        border-radius: 12px 12px 0 0;
    }

    .stock-info-col {
        background: white;
        padding: 2rem 1.5rem;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        width: 100%;
    }

    .stock-car-title {
        font-size: 1.6rem;
    }

    .stock-specs-grid {
        grid-template-columns: repeat(2, 1fr); /* Mantenemos 2 columnas en móvil */
        gap: 1rem;
    }

    .stock-price-action {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .btn-stock {
        width: 100%;
    }
}
/* =========================================
   GALERÍA STOCK (SLIDER REPARADO)
   ========================================= */

/* 1. EL MARCO (CONTENEDOR) */
.stock-image-col {
    position: relative; /* Obligatorio para que las fotos vivan aquí dentro */
    width: 100%;
    
    /* PROPORCIÓN FIJA (Evita saltos de tamaño) */
    aspect-ratio: 4/3; 
    /* Altura de seguridad por si el navegador es antiguo */
    min-height: 300px; 
    
    overflow: hidden; /* Recorta lo que sobresalga */
    border-radius: 12px;
    
    /* COLOR DE FONDO (Gris suave, NO NEGRO) */
    background-color: #f4f8fd; 
    
    /* Sombra suave */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 2. LAS FOTOS (Todas apiladas en el mismo sitio) */
.stock-photo {
    position: absolute !important; /* ¡CLAVE! Obliga a que estén una encima de otra */
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    
    object-fit: cover; /* Rellena el hueco sin deformar la foto */
    object-position: center;
    
    opacity: 0; /* Invisibles por defecto */
    transition: opacity 0.4s ease-in-out;
    z-index: 1;
}

/* 3. LA FOTO ACTIVA (Solo cambiamos opacidad) */
.stock-photo.active {
    opacity: 1; /* Se hace visible */
    z-index: 2; /* Se pone delante */
    /* NO ponemos position: relative aquí, porque rompería la pila */
}

/* Flechas de Navegación */
.stock-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; 
}

.stock-image-col:hover .stock-arrow {
    opacity: 1; 
}

.stock-arrow:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.stock-prev { left: 15px; }
.stock-next { right: 15px; }

/* Puntos (Dots) */
.stock-dots-container {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.stock-dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stock-dot.active {
    background-color: white;
    transform: scale(1.2);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* AJUSTES PARA MÓVIL */
@media (max-width: 900px) {
    .stock-arrow { opacity: 1; width: 35px; height: 35px; }
}
/* =========================================
   SECCIÓN SERVICIOS INCLUIDOS (Orden Invertido)
   ========================================= */

.services-section {
    padding: 100px 0;
    
    /* BORRA o COMENTA esta línea: background-color: #f4f8fd; */
    
    border-top: none;

    /* AÑADE ESTO PARA EL FONDO PARALLAX */
    background-image: url('../images/hero-bg.png'); /* O la imagen que quieras */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Degradado claro invertido */
    background: linear-gradient(to left, rgba(246, 249, 253, 0.85) 0%, rgba(246, 249, 253, 0.75) 100%);
    z-index: 1;
}

/* CAMBIO 2: INVERTIMOS EL ORDEN HORIZONTAL */
/* Solo aplicamos esto al contenedor dentro de services-section */
.services-section .process-container {
    flex-direction: row-reverse; /* ESTA YA LA TIENES, NO LA BORRES */
    
    /* AÑADE ESTAS DOS: */
    position: relative;
    z-index: 2;
}

/* Ajustamos la alineación del texto a la derecha para que quede bien */
.services-section .process-content {
    text-align: right;
    /* Si el contenedor de texto usa flex verticalmente, esto lo alinea a la derecha */
    align-items: flex-end; 
}

/* Forzamos al título a alinearse a la derecha */
.services-section .titulo-seccion.align-left {
    text-align: right;
}

/* Alineamos los botones de las flechas también a la derecha */
.services-section .process-controls {
    justify-content: flex-end;
}


/* Estilo de las tarjetas (se mantiene igual) */
.service-card-style {
    background-color: #ffffff; 
    border: none; 
    box-shadow: 0 15px 30px rgba(15, 76, 129, 0.06);
}


/* --- RESPONSIVIDAD (MÓVIL) --- */
@media (max-width: 900px) {
    .services-section {
        padding: 60px 0;
    }

    /* EN MÓVIL: VOLVEMOS AL ORDEN NORMAL (Apilado) */
    /* Es mejor que en el móvil el título esté arriba y el carrusel abajo */
    .services-section .process-container {
        flex-direction: column;
    }

    /* Restauramos la alineación del texto a la izquierda en móvil */
    .services-section .process-content,
    .services-section .titulo-seccion.align-left {
        text-align: left;
    }
    
    .services-section .process-controls {
        justify-content: flex-start;
    }
}
/* --- style.css --- */
.stock-photo {
    /* ... tus estilos actuales ... */
    cursor: zoom-in; /* Cambia el cursor para indicar que se puede ampliar */
}
/* =========================================
   SECCIÓN RESEÑAS (LIBRO 3D REALISTA)
   ========================================= */
.reviews-section {
    padding: 80px 0 120px;
    
    /* BORRA o COMENTA: background-color: #f6f9fde3; */
    
    position: relative;
    overflow: hidden;

    /* AÑADE ESTO PARA EL FONDO PARALLAX */
    background-image: url('../images/hero-bg.png'); /* Queda bien usar la misma o una de carretera */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.reviews-section::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    
    /* SOLUCIÓN: Misma dirección (to left) y valores que las secciones que te gustan */
    background: linear-gradient(
        to left, 
        rgba(246, 249, 253, 0.85) 0%, 
        rgba(246, 249, 253, 0.75) 100%
    );
    z-index: 1;
}
/* --- AÑADIR ESTO EN style.css (Sección Reseñas) --- */

/* Degradado suave para unir con el Footer */

.bg-lines-right {
    position: absolute; right: -10%; top: 50%; transform: translateY(-50%);
    opacity: 0.5; max-height: 90%; z-index: 0; pointer-events: none;
    display: none;
}

.book-container-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    
    /* AÑADE ESTO: */
    position: relative;
    z-index: 2;
}

/* Columna Izquierda (Texto) */
.book-intro {
    flex: 1;
    max-width: 400px;
}
.reviews-subtitle { color: var(--text-secondary); margin-bottom: 30px; font-size: 1.1rem; }

/* Controles del Libro */
.book-controls button {
    background: transparent; border: 1px solid var(--primary-blue);
    color: var(--primary-blue); padding: 10px 20px; border-radius: 30px;
    cursor: pointer; font-weight: 600; transition: 0.3s; margin-right: 10px;
}
.book-controls button:hover:not(:disabled) { background: var(--primary-blue); color: white; }
.book-controls button:disabled { border-color: #ccc; color: #ccc; cursor: not-allowed; }


/* --- EL LIBRO 3D --- */
.book-scene {
    flex: 1;
    perspective: 1500px; /* Clave para el 3D */
    display: flex;
    justify-content: center;
    position: relative;
    height: 450px; /* Altura del libro */
}

.book {
    position: relative;
    width: 350px;
    height: 100%;
    transform-style: preserve-3d;
}

/* Estilo común de las páginas */
.book-page {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0; left: 0;
    transform-origin: left center; /* Giran desde el lomo izquierdo */
    transition: transform 1s cubic-bezier(0.645, 0.045, 0.355, 1); /* Movimiento de página natural */
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Clase para voltear la página */
.book-page.flipped {
    transform: rotateY(-180deg); /* Gira hacia la izquierda */
}

/* CARAS DE LA PÁGINA (Frente y Dorso) */
.page-front, .page-back {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 5px 15px 15px 5px; /* Bordes redondeados en el exterior */
    box-shadow: inset 20px 0 30px rgba(0,0,0,0.05), 5px 5px 15px rgba(0,0,0,0.1); /* Sombras internas del lomo */
    overflow: hidden;
    backface-visibility: hidden; /* Oculta la cara cuando se gira */
}

.page-front { z-index: 2; }
.page-back { 
    z-index: 1; 
    transform: rotateY(180deg); /* El dorso ya está girado */
    background-color: #fdfdfd;
    background-image: linear-gradient(to right, rgba(0,0,0,0.1) 0%, transparent 10%); /* Sombra del lomo trasero */
}

/* --- DISEÑO DE CONTENIDO DE LAS PÁGINAS --- */

/* Portada Azul */
.cover-page {
    background: var(--primary-blue);
    display: flex; align-items: center; justify-content: center; text-align: center;
    box-shadow: inset 10px 0 20px rgba(0,0,0,0.3); /* Sombra lomo más fuerte */
}
.book-branding { color: white; }
.book-branding h3 { margin-top: 15px; font-size: 1.8rem; font-family: serif; letter-spacing: 1px; }

/* Páginas de Reseña */
.review-content-book {
    padding: 30px; height: 100%;
    display: flex; flex-direction: column;
}
.review-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 15px; }
.review-thumb { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-main); }
.stars { color: #f59e0b; font-size: 0.9rem; }
.review-text { font-size: 0.95rem; font-style: italic; color: var(--text-secondary); flex-grow: 1; }
.car-tag { display: inline-block; padding: 5px 10px; background: #eff6ff; color: var(--primary-blue); font-size: 0.8rem; font-weight: 700; border-radius: 4px; margin-top: auto; }
.page-number { position: absolute; bottom: 15px; right: 20px; font-size: 0.8rem; color: #ccc; }

/* Contraportada */
.end-page { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #fafafa; }

/* Sombra debajo del libro */
.book-shadow {
    position: absolute;
    bottom: -10px; left: 10px; width: 90%; height: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    filter: blur(10px);
    z-index: -1;
}

/* =========================================
   PARCHE DE EMERGENCIA PARA EL LIBRO EN MÓVIL
   ========================================= */
@media (max-width: 900px) {

    /* 1. Desactivamos Flexbox en el contenedor padre */
    /* Esto es la clave: pasamos de Flex a Block para evitar conflictos 3D */
    .book-container-flex {
        display: block !important;
        width: 100%;
        padding-bottom: 50px; /* Espacio extra abajo */
    }

    /* 2. Ajustamos los textos introductorios */
    .book-intro {
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 40px;
        display: block;
    }

    .titulo-seccion.align-left, 
    .reviews-subtitle.align-left {
        text-align: center !important;
    }

    .book-controls {
        justify-content: center !important;
        margin-bottom: 30px;
    }

    /* 3. Forzamos la visibilidad del escenario 3D */
    .book-scene {
        display: block !important;
        width: 280px !important;  /* Ancho fijo seguro */
        height: 380px !important; /* Alto fijo seguro */
        margin: 0 auto !important; /* Centrado horizontal clásico */
        perspective: 1000px;
        z-index: 10;
        position: relative;
        /* Quitamos transformaciones extrañas del contenedor */
        transform: none !important;
    }

    /* 4. Aseguramos que el libro ocupe el espacio */
    .book {
        width: 100% !important;
        height: 100% !important;
        transform-style: preserve-3d !important;
        /* Quitamos el translateZ(0) que a veces aplana el 3D en algunos móviles */
        transform: rotateY(0deg) !important; 
    }

    /* 5. Aseguramos que las páginas tengan dimensión y posición */
    .book-page {
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0; left: 0;
        /* Forzamos que se muestren */
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* 6. Aseguramos que la sección no recorte el libro */
    .reviews-section {
        overflow: visible !important;
    }
}
/* =========================================
   FOOTER (PEGADO A LA IZQUIERDA Y COMPACTO)
   ========================================= */
.site-footer {
    background-color: #ffffff8e;

    color: var(--text-main);
    padding-top: 40px; 
    border-top: 1px solid #eef2f6;
    font-size: 0.9rem;
}

/* AQUÍ ESTÁ EL CAMBIO CLAVE: */
/* Sobrescribimos el contenedor solo en el footer para pegarlo a la izquierda */
.site-footer .container {
    width: 100%;        /* Ocupa todo el ancho */
    max-width: 100%;    /* Quita el límite de 1200px */
    margin: 0;          /* Quita el "auto" que lo centraba */
    padding-left: 30px; /* Pegado a la izquierda (con 30px de aire para que no toque el borde) */
    padding-right: 20px;
}

.footer-grid {
    display: grid;
    /* Ajustamos las columnas para que no se desperdiguen si la pantalla es muy ancha */
    /* La primera ocupa espacio, las otras dos se ajustan al contenido */
    grid-template-columns: 400px auto auto; 
    justify-content: start; /* Alinea todo el bloque a la izquierda */
    gap: 4rem; /* Separación entre columnas */
    padding-bottom: 20px; 
}

/* Columna Marca */
.footer-logo {
    max-width: 130px;
    margin-bottom: 15px;
    filter: invert(1) brightness(0.2); 
    display: block;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 350px; /* Un poco más ancho para que el texto respire */
    line-height: 1.5;
}

/* Redes Sociales */
.social-icons {
    display: flex;
    gap: 10px;
    justify-content: flex-start; 
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #f0f4f8;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

/* Títulos */
.footer-col h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mt-4 { margin-top: 1.5rem; }

/* Listas */
.contact-list, .hours-list, .footer-links { list-style: none; }
.contact-list li, .hours-list li, .footer-links li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.footer-links a { text-decoration: none; color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary-blue); text-decoration: underline; }
.highlight-link { font-weight: 700; color: var(--primary-blue); }

/* Barra Inferior */
.footer-bottom {
    background-color: #f8fafc;
    padding: 15px 0;
    font-size: 0.8rem;
    color: #94a3b8;
    border-top: 1px solid #eef2f6;
}

.footer-bottom .container {
    display: flex;
    justify-content: flex-start; /* Alineado a la izquierda */
    gap: 40px; /* Separación entre copyright y créditos */
    align-items: center;
}

/* RESPONSIVIDAD (MÓVIL) */
@media (max-width: 900px) {
    .site-footer .container {
        padding-left: 20px; /* Un poco menos de borde en móvil */
        padding-right: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Una columna en móvil */
        gap: 2rem;
        text-align: left; /* Aseguramos alineación izquierda */
    }

    .footer-bottom .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* RESPONSIVIDAD (MÓVIL) - AQUÍ ESTÁ EL CAMBIO CLAVE DE ALINEACIÓN */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        /* CAMBIO: Forzamos alineación a la IZQUIERDA en vez de centro */
        text-align: left; 
    }

    .footer-logo {
        /* Quitamos el margin auto para que se quede a la izquierda */
        margin: 0 0 15px 0; 
    }

    .footer-tagline {
        /* Quitamos margin auto */
        margin: 0 0 20px 0; 
    }

    .social-icons {
        /* Iconos a la izquierda */
        justify-content: flex-start; 
    }

    .footer-bottom .container {
        flex-direction: column;
        align-items: flex-start; /* Texto copyright a la izquierda */
        gap: 5px;
        text-align: left;
    }
}
/* =========================================
   BARRA DE ACCIÓN FLOTANTE (ESTILOS AVANZADOS)
   ========================================= */
/* Contenedor Principal */
.floating-action-bar {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9990;
    display: flex;
    flex-direction: column; /* En escritorio es columna (solo se ve el redondo) */
    align-items: flex-end;
    gap: 15px;
    pointer-events: none; /* Importante: deja pasar clics a través del área vacía */
}

/* Reactivar clics en los hijos */
.floating-action-bar > * {
    pointer-events: auto;
}

/* --- NUEVO BOTÓN LARGO FORMULARIO (Base: Oculto en Desktop) --- */
.mobile-form-btn {
    display: none; /* Oculto por defecto */
}

/* --- Botón Redondo Chat (Existente) --- */
.floating-chat-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Evita que se aplaste en móvil */
}

.floating-chat-btn:hover { transform: scale(1.05); }

.floating-chat-btn svg { position: absolute; transition: all 0.3s ease; }
.floating-chat-btn .close-icon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.floating-chat-btn.is-active { background-color: #1f2937; transform: rotate(90deg); }
.floating-chat-btn.is-active .chat-icon { opacity: 0; transform: rotate(90deg) scale(0.5); }
.floating-chat-btn.is-active .close-icon { opacity: 1; transform: rotate(0deg) scale(1); }

/* --- Ventana de Opciones Chat --- */
.chat-options-window {
    background-color: white;
    border-radius: 16px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    width: 220px;
    opacity: 0; visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: bottom right;
    /* Aseguramos que en móvil quede encima de la barra */
    position: absolute;
    bottom: 80px; 
    right: 0;
}
.chat-options-window.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.chat-option {
    display: flex; align-items: center; text-decoration: none; color: var(--text-main);
    padding: 12px; border-radius: 12px; margin-bottom: 8px; transition: all 0.2s ease;
    font-weight: 600; font-size: 0.95rem;
}
.chat-option:last-child { margin-bottom: 0; }
.option-icon { margin-right: 12px; display: flex; }
.chat-option.whatsapp:hover { background-color: #e6ffed; color: #25d366; }
.chat-option.phone:hover { background-color: #eef2ff; color: #3b82f6; }
.chat-option.email:hover { background-color: #fff0f0; color: #ef4444; }


/* =========================================
   MEDIA QUERY: TRANSFORMACIÓN EN MÓVIL
   ========================================= */
@media (max-width: 768px) {
    /* 1. Cambiamos el contenedor para que sea una barra inferior */
    .floating-action-bar {
        bottom: 0; right: 0; left: 0; 
        flex-direction: row; 
        align-items: center;
        justify-content: space-between;
        padding: 15px; 
        
        /* CAMBIO: Hemos quitado la línea de 'background: linear-gradient...' */
        background: transparent; /* Ahora el fondo es invisible */
        
        pointer-events: none; /* IMPORTANTE: Esto permite hacer clic en la web a través del hueco vacío */
    }

    /* 2. Hacemos visible y estilizamos el botón largo azul */
    .mobile-form-btn {
        display: flex; /* ¡Visible! */
        flex-grow: 1; /* Ocupa todo el espacio sobrante */
        align-items: center;
        justify-content: space-between;
        background-color: var(--primary-blue); /* Azul corporativo */
        color: white;
        text-decoration: none;
        padding: 0 20px;
        height: 60px; /* Misma altura que el botón redondo */
        border-radius: 30px; /* Forma de píldora */
        margin-right: 15px; /* Separación con el botón redondo */
        font-weight: 700;
        font-size: 0.95rem;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
        transition: transform 0.2s ease;
    }

    .mobile-form-btn:active {
        transform: scale(0.98); /* Efecto al pulsar */
    }
    
    .btn-arrow {
        margin-left: 10px;
    }

    /* 3. Ajustamos la ventana del chat para que no se salga */
    .chat-options-window {
        right: 15px; /* Ajuste por el padding del contenedor */
        bottom: 85px; /* Un poco más arriba */
    }

    /* En pantallas muy pequeñas, reducimos el texto */
    @media (max-width: 380px) {
        .mobile-form-btn .btn-text { font-size: 0.85rem;}
        .mobile-form-btn { padding: 0 15px; }
    }
    /* --- PEGAR ESTO DENTRO DE @media (max-width: 900px) --- */

    /* Sobrescribimos la opacidad solo para móviles */
    .process-section::before,
    .stock-spain-section::before,
    .services-section::before,
    .reviews-section::before,
    .portfolio-section::before {
        background: linear-gradient(
            to left, 
            rgba(246, 249, 253, 0.95) 0%,   /* <--- MÓVIL: 95% (Casi sólido) */
            rgba(246, 249, 253, 0.85) 100%  /* <--- MÓVIL: 85% */
        ) !important;
    }
}
/* --- AÑADIR AL FINAL DE style.css --- */

/* Estilos para la foto del coche dentro del libro */
.review-attached-photo {
    width: 100%;
    height: 120px; /* Altura fija para que quepa todo */
    border-radius: 8px;
    overflow: hidden;
    margin-top: auto; /* Empuja hacia abajo */
    margin-bottom: 10px;
    border: 1px solid #f0f0f0;
}

.review-attached-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Recorta la imagen para llenar el hueco */
    display: block;
}

/* Ajuste del texto para que no sea enorme */
.review-text {
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 10px;
}
/* --- AÑADIR AL FINAL DE style.css --- */

/* Texto pequeño debajo de la foto */
.click-hint {
    font-size: 0.7rem;
    color: #888;
    text-align: center;
    margin-top: 5px;
    margin-bottom: 8px;
    font-style: italic;
    pointer-events: none; /* Para que no moleste al click */
}

/* Cursor de lupa y efecto al pasar el ratón */
.review-img-zoom {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.review-img-zoom:hover {
    transform: scale(1.05); /* Pequeño zoom al pasar el ratón */
}
/* --- OCULTAR LA OLA EN MÓVILES --- */
@media (max-width: 768px) {
    .wave-container {
        display: none !important;
    }
}