:root {
            --primary: #2c5da5; /* Azul corporativo */
            --primary-light: #4a82d6;
            --primary-dark: #1b3d73;
            --dark-bg: #090d16; /* Fondo ultra oscuro moderno */
            --card-bg: #111827; /* Tarjetas oscuras */
            --light-text: #f8fafc;
            --muted-text: #94a3b8;
            --border-color: rgba(255, 255, 255, 0.08);
            --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        html { scroll-behavior: smooth; }
        
        body { 
            font-family: 'Plus Jakarta Sans', sans-serif; 
            background: var(--dark-bg); 
            color: var(--light-text);
            overflow-x: hidden;
        }
        
        img, iframe {
            max-width: 100%;
        }
        
        h1, h2, h3, .nav-logo {
            font-family: 'Space Grotesk', sans-serif;
        }

        section { padding: 140px 8% 100px 8%; }
        
        .section-header {
            text-align: center;
            max-width: 600px;
            margin: 0 auto 60px auto;
        }
        
        .section-header span {
            color: var(--primary-light);
            text-transform: uppercase;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: 2px;
            display: inline-block;
            margin-bottom: 10px;
        }

        .section-header h2 { 
            font-size: 38px; 
            font-weight: 700; 
            color: white; 
            letter-spacing: -1px; 
        }

        /* HEADER PREMIUM OPTIMIZADO PARA LOGO GRANDE */
        header {
            position: fixed; top: 0; left: 0; width: 100%;
            padding: 0 8%; display: flex; justify-content: space-between; align-items: center;
            background: rgba(9, 13, 22, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            z-index: 1000; border-bottom: 1px solid var(--border-color); transition: var(--transition);
            height: 110px; /* Un poco más alto para dar aire al logo */
        }
        
        header.scrolled {
            height: 85px;
            background: rgba(9, 13, 22, 0.95);
        }

        .logo-container { 
            display: flex; 
            align-items: center; 
            justify-content: flex-start;
            text-decoration: none;
            height: 100%;
            width: 280px; /* Espacio reservado para que el logo no se comprima */
        }
        
        .logo-img {
            height: auto;
            max-height: 85px; /* Logo notablemente más grande */
            width: 100%; 
            object-fit: contain;
            transition: var(--transition);
            display: block;
            filter: drop-shadow(0px 4px 10px rgba(44, 93, 165, 0.3)); 
        }
        
        header.scrolled .logo-img {
            max-height: 65px; /* Se adapta al hacer scroll */
        }
        
        nav { display: flex; align-items: center; gap: 35px; }
        nav a { text-decoration: none; color: var(--muted-text); font-weight: 500; font-size: 15px; transition: var(--transition); }
        nav a:hover, nav a.active { color: white; }
        
        .btn-nav { 
            padding: 10px 22px; 
            background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
            color: white !important; 
            border-radius: 50px; 
            font-weight: 600;
            border: 1px solid rgba(255,255,255,0.1);
            box-shadow: 0 4px 15px rgba(44, 93, 165, 0.25);
        }
        .btn-nav:hover { 
            transform: translateY(-2px); 
            box-shadow: 0 8px 25px rgba(44, 93, 165, 0.4);
            border-color: rgba(255,255,255,0.2);
        }

        /* HERO SECTOR */
        .hero {
            height: 100vh;
            position: relative;
            background: radial-gradient(circle at top right, rgba(44, 93, 155, 0.15), transparent 60%),
                        linear-gradient(rgba(9, 13, 22, 0.3), rgba(9, 13, 22, 0.95)), 
                        url("https://images.unsplash.com/photo-1558981806-ec527fa84c39?auto=format&fit=crop&w=2000&q=80") center/cover;
            display: flex; justify-content: flex-start; align-items: center; padding: 0 8%;
        }
        .hero-content { max-width: 750px; z-index: 2; margin-top: 40px; }
        .hero h1 { font-size: 68px; font-weight: 700; letter-spacing: -2px; margin-bottom: 25px; line-height: 1.1; color: white; }
        .hero h1 span { color: var(--primary-light); }
        .hero p { font-size: 19px; margin-bottom: 40px; font-weight: 300; color: var(--muted-text); line-height: 1.7; }
        .buttons { display: flex; gap: 20px; }
        
        .btn { 
            background: var(--primary); 
            color: white; 
            padding: 16px 35px; 
            text-decoration: none; 
            border-radius: 50px; 
            font-weight: 600; 
            transition: var(--transition);
            box-shadow: 0 4px 20px rgba(44, 93, 165, 0.3);
            display: inline-flex;
            align-items: center;
            gap: 10px;
        }
        .btn:hover { background: var(--primary-light); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(44, 93, 165, 0.5); }
        
        .btn-outline { 
            border: 2px solid rgba(255,255,255,0.15); 
            background: rgba(255,255,255,0.03);
            color: white; 
            padding: 16px 35px; 
            text-decoration: none; 
            border-radius: 50px; 
            font-weight: 600; 
            transition: var(--transition); 
        }
        .btn-outline:hover { background: white; color: var(--dark-bg); transform: translateY(-3px); }

        /* SECCIÓN SERVICIOS */
        .services { background: var(--dark-bg); }
        .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 35px; }
        
        .card { 
            background: var(--card-bg); 
            border-radius: 24px; 
            border: 1px solid var(--border-color); 
            transition: var(--transition); 
            overflow: hidden; 
            display: flex;
            flex-direction: column;
        }
        
        .card:hover { 
            transform: translateY(-8px); 
            border-color: rgba(44, 93, 165, 0.3);
            box-shadow: 0 25px 50px rgba(0,0,0,0.4); 
        }

        .card-image-wrapper {
            width: 100%;
            height: 220px;
            position: relative;
            overflow: hidden;
        }

        .card-image-wrapper::after {
            content: '';
            position: absolute;
            bottom: 0; left: 0; width: 100%; height: 60%;
            background: linear-gradient(to top, var(--card-bg), transparent);
            z-index: 2;
        }

        .card-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .card:hover .card-img {
            transform: scale(1.08);
        }

        .card-body {
            padding: 30px 35px 40px 35px;
            position: relative;
            z-index: 3;
            margin-top: -20px;
        }

        .card-icon { 
            width: 55px; height: 55px; 
            background: var(--primary); 
            border-radius: 14px; 
            display: flex; align-items: center; justify-content: center;
            border: 1px solid rgba(255,255,255,0.15);
            box-shadow: 0 10px 20px rgba(44, 93, 165, 0.3);
            position: absolute;
            top: -28px;
            right: 35px;
            transition: var(--transition);
        }
        
        .card:hover .card-icon {
            background: var(--primary-light);
            transform: translateY(-3px);
            box-shadow: 0 15px 25px rgba(44, 93, 165, 0.5);
        }

        .card-icon i { font-size: 22px; color: white; }
        
        .card h3 { font-size: 22px; color: white; margin-bottom: 15px; font-weight: 700; }
        .card p { font-size: 15px; line-height: 1.7; color: var(--muted-text); }

        /* SECCIÓN MARCAS */
        .brands { 
            background: #0d1321; 
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
        }
        .brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 25px; }
        .brand-card {
            background: var(--card-bg); padding: 40px 20px; border-radius: 20px; text-align: center;
            border: 1px solid var(--border-color); transition: var(--transition); 
            display: flex; flex-direction: column; align-items: center; justify-content: center;
            min-height: 190px;
        }
        .brand-card:hover { 
            transform: translateY(-5px); 
            border-color: rgba(44, 93, 165, 0.4);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
        }
        
        .brand-logo-container {
            height: 65px; 
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 15px;
        }
        .brand-img {
            max-height: 100%;
            max-width: 155px; 
            object-fit: contain;
            transition: var(--transition);
        }
        .brand-card:hover .brand-img {
            transform: scale(1.06); 
        }

        .brand-name { font-size: 17px; font-weight: 700; color: white; }
        .brand-name.has-status { margin-bottom: 10px; }
        .brand-status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 12px; border-radius: 50px; }
        .status-oficial { background: rgba(44,93,165,0.15); color: var(--primary-light); border: 1px solid rgba(44,93,165,0.3); }
        .status-esp { background: rgba(249,115,22,0.15); color: #f97316; border: 1px solid rgba(249,115,22,0.3); }

        /* OPINIONES GOOGLE CON NOTA 4.9 */
        .reviews { background: #0d1321; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
        .slider-container { max-width: 850px; margin: auto; position: relative; }
        .slides { display: flex; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
        .slide { min-width: 100%; box-sizing: border-box; padding: 10px; }
        .review-card {
            background: var(--card-bg); padding: 50px; border-radius: 28px; text-align: center;
            border: 1px solid var(--border-color); position: relative;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }
        .google-icon { color: #4285F4; font-size: 30px; margin-bottom: 20px; }
        .stars { color: #f59e0b; font-size: 20px; margin-bottom: 20px; letter-spacing: 3px; }
        .review-text { font-size: 18px; font-style: italic; color: #e2e8f0; line-height: 1.8; margin-bottom: 25px; font-weight: 300; }
        .reviewer { font-weight: 700; color: white; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 10px; }
        .reviewer span { font-weight: 400; color: var(--muted-text); font-size: 14px; }
        .slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 35px; }
        .dot { width: 10px; height: 10px; background: rgba(255,255,255,0.15); border-radius: 50%; cursor: pointer; transition: var(--transition); }
        .dot.active { background: var(--primary-light); width: 28px; border-radius: 10px; }

        /* CITA ONLINE */
        .cta { 
            background: radial-gradient(circle at bottom center, rgba(44, 93, 165, 0.1), transparent 70%), var(--dark-bg); 
            border-bottom: 1px solid var(--border-color);
        }
        .booking-form { max-width: 800px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        .booking-form input, .booking-form textarea {
            padding: 16px 20px; border: 1px solid var(--border-color); background: rgba(255, 255, 255, 0.02);
            border-radius: 14px; color: white; font-family: inherit; font-size: 15px; transition: var(--transition);
        }
        .booking-form input:focus, .booking-form textarea:focus { 
            outline: none; 
            border-color: var(--primary-light); 
            background: rgba(255,255,255,0.05);
            box-shadow: 0 0 15px rgba(44, 93, 165, 0.2);
        }
        .booking-form textarea { grid-column: 1/3; height: 140px; resize: none; }
        .booking-form button { grid-column: 1/3; border: none; cursor: pointer; margin-top: 15px; }

        /* SECCIÓN CONTACTO / MAPA */
        .contact-section { background: #0d1321; }
        .contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; max-width: 1200px; margin: auto; }
        .contact-info h3 { font-size: 32px; color: white; margin-bottom: 30px; }
        .info-item { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 25px; }
        .info-item .icon-wrapper { 
            width: 45px; height: 45px; background: rgba(44, 93, 165, 0.1); border-radius: 12px;
            display: flex; align-items: center; justify-content: center; border: 1px solid rgba(44, 93, 165, 0.2);
            color: var(--primary-light); font-size: 18px; shrink: 0;
        }
        .info-item p { color: var(--muted-text); font-size: 15px; line-height: 1.6; }
        .info-item p strong { color: white; display: block; margin-bottom: 2px; }
        iframe { border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); border: 1px solid var(--border-color) !important; }

        /* FOOTER */
        footer { 
            background: var(--dark-bg); color: var(--muted-text); padding: 50px 8% 120px 8%; text-align: center; font-size: 14px;
            border-top: 1px solid var(--border-color);
        }
        
        /* WHATSAPP FLOTANTE */
        .whatsapp {
            position: fixed; right: 30px; bottom: 30px; width: 60px; height: 60px; background: #25D366;
            border-radius: 50%; display: flex; justify-content: center; align-items: center; color: white;
            font-size: 30px; text-decoration: none; box-shadow: 0 10px 30px rgba(37,211,102,0.4); z-index: 999; transition: var(--transition);
        }
        .whatsapp:hover { transform: scale(1.1) translateY(-3px); box-shadow: 0 15px 35px rgba(37,211,102,0.6); }

/* ================================
   RESPONSIVE PROFESIONAL
   Mantiene el diseño original
================================ */

/* Portátiles y pantallas medianas */
@media (max-width: 1200px) {
    header { padding-left: 5%; padding-right: 5%; }
    nav { gap: 20px; }
    nav a { font-size: 14px; }
    section, .hero { padding-left: 5%; padding-right: 5%; }
    .hero h1 { font-size: clamp(44px, 5vw, 58px); }
    .hero-content { max-width: 680px; }
    .cards { gap: 25px; }
    .contact-grid { gap: 40px; }
}

/* Tablets */
@media (max-width: 900px) {
    header {
        height: 90px;
        padding: 10px 5%;
        flex-direction: row;
    }

    .logo-container { width: 220px; }
    .logo-img { max-height: 65px; }
    nav { display: none; }

    section { padding: 120px 5% 70px; }

    .hero {
        min-height: 100svh;
        height: auto;
        padding: 130px 5% 80px;
    }

    .hero-content { max-width: 100%; }
    .hero h1 { font-size: clamp(36px, 6vw, 52px); }
    .hero h2 { font-size: clamp(28px, 5vw, 40px) !important; }
    .hero p { font-size: 17px !important; }

    .buttons { flex-wrap: wrap; }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .booking-form { grid-template-columns: 1fr; }
    .booking-form textarea,
    .booking-form button { grid-column: auto; }
}

/* Móviles */
@media (max-width: 600px) {
    header {
        height: 75px;
        padding: 8px 20px;
    }

    .logo-container { width: 190px; }
    .logo-img { max-height: 55px; }

    section { padding: 100px 20px 60px; }

    .hero {
        min-height: 100svh;
        padding: 110px 20px 60px;
        align-items: center;
    }

    .hero h1 {
        font-size: 34px !important;
        letter-spacing: -1px;
        line-height: 1.12;
    }

    .hero h2 {
        font-size: 28px !important;
        line-height: 1.2;
    }

    .hero p {
        font-size: 16px !important;
        line-height: 1.65 !important;
    }

    .buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn,
    .btn-outline {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 15px 20px;
    }

    .section-header { margin-bottom: 40px; }
    .section-header h2 { font-size: 30px; }

    .cards {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .card-image-wrapper { height: 200px; }
    .card-body { padding: 30px 25px 35px; }
    .card h3 { font-size: 20px; }

    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .brand-card {
        min-height: 160px;
        padding: 25px 12px;
    }

    .brand-img { max-width: 120px; }
    .brand-name { font-size: 15px; }

    .review-card { padding: 30px 20px; }
    .review-text { font-size: 16px; }

    .booking-form { gap: 15px; }

    .booking-form input,
    .booking-form textarea {
        width: 100%;
        font-size: 16px;
    }

    .contact-info h3 { font-size: 28px; }
    .info-item { gap: 15px; }
    iframe { height: 350px; }

    footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    footer > div { flex-wrap: wrap; }

    .whatsapp {
        width: 55px;
        height: 55px;
        right: 18px;
        bottom: 18px;
        font-size: 26px;
    }

    #cookie-banner { padding: 15px; }
    #cookie-banner p { font-size: 13px !important; }
}

/* Móviles muy pequeños */
@media (max-width: 380px) {
    .logo-container { width: 165px; }
    .hero h1 { font-size: 29px !important; }
    .hero h2 { font-size: 25px !important; }
    .brand-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 27px; }
}


/* =========================================================
   CORRECCIÓN FINAL: EVITAR DESPLAZAMIENTO HORIZONTAL
   Especialmente en la sección de reseñas
========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe {
    max-width: 100%;
}

.slider-container {
    width: 100%;
    max-width: 850px;
    overflow: hidden;
}

.slides {
    width: 100%;
    max-width: 100%;
}

.slide {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.review-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.review-text {
    max-width: 100%;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .slider-container,
    .slides,
    .slide,
    .review-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .slider-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .review-card {
        padding-left: 20px;
        padding-right: 20px;
    }

    .review-text {
        font-size: 16px;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}


/* =========================================================
   MENÚ MÓVIL
========================================================= */

.mobile-menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 8px;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1101;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    border-radius: 2px;
    background: #ffffff;
}

@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }

    header {
        position: relative;
    }

    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        padding: 20px;
        flex-direction: column;
        gap: 16px;
        z-index: 1100;
        background: #080d19;
    }

    header nav.mobile-menu-open {
        display: flex !important;
    }

    header nav a {
        display: block;
        width: 100%;
    }
}

/* =========================================================
   RESEÑAS: UNA A LA VEZ EN MÓVIL
========================================================= */

@media (max-width: 900px) {
    .slider-container {
        width: 100%;
        max-width: 850px;
        overflow: hidden;
    }

    .slides {
        display: flex;
        width: 100%;
        max-width: none;
        transition: transform 0.5s ease;
    }

    .slide {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .review-card {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .review-text {
        font-size: 16px;
        line-height: 1.6;
        overflow-wrap: normal;
        word-break: normal;
    }
}


/* =========================================================
   MENÚ MÓVIL: FONDO Y ENLACES VISIBLES
========================================================= */

@media (max-width: 900px) {
    header nav.mobile-menu-open {
        display: flex;
        background: #111111;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    header nav.mobile-menu-open a {
        color: #ffffff !important;
        text-decoration: none;
        opacity: 1;
        visibility: visible;
    }

    header nav.mobile-menu-open a:hover,
    header nav.mobile-menu-open a:active {
        color: #d4af37 !important;
    }
}


/* =========================================================
   AJUSTES FINALES: CABECERA FIJA EN MÓVIL + TÍTULO HERO
========================================================= */

/* El título principal se adapta a diferentes tamaños de ordenador */
.hero h1 {
    font-size: clamp(40px, 4.2vw, 58px);
}

/* La cabecera permanece fija también en móvil */
@media (max-width: 900px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 1200;
    }

    /* Evita que el menú abierto quede escondido detrás del contenido */
    header nav.mobile-menu-open {
        top: 100%;
    }

    /* Título más proporcionado en portátil/tablet */
    .hero h1 {
        font-size: clamp(34px, 6vw, 48px) !important;
    }
}

/* Móviles */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 30px !important;
    }
}

/* Móviles muy pequeños */
@media (max-width: 380px) {
    .hero h1 {
        font-size: 27px !important;
    }
}


/* =========================================================
   AJUSTE FINAL DE POSICIÓN DEL HERO
   Evita que la cabecera fija tape el título
========================================================= */

/* Portátiles y pantallas con poca altura: baja ligeramente el contenido */
@media (min-width: 901px) and (max-height: 800px) {
    .hero {
        padding-top: 150px;
    }
}

/* Móvil: reduce ligeramente el espacio entre la cabecera y el título */
@media (max-width: 900px) {
    .hero {
        padding-top: 110px;
    }
}




/* =========================================================
   POSICIÓN DEL HERO: 40px EXACTOS DESPUÉS DE LA CABECERA
========================================================= */

.hero {
    padding-top: 40px !important;
    box-sizing: border-box;
}
