/* Variables y Configuración Base */
:root {
    --primary: #0056b3;
    --accent: #00a8e8;
    --dark: #1d1d1f;
    --light: #f5f5f7;
    --white: #ffffff;
    --gray: #86868b;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
    /* CORRECCIÓN SCROLL: Evita que la web baile hacia los lados */
    overflow-x: hidden; 
    width: 100%;
}

/* Navbar */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 8%; position: sticky; top: 0;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(15px);
    z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.logo { display: flex; align-items: center; font-weight: 700; color: var(--primary); }
.logo-img { height: 40px; margin-right: 10px; width: auto; }

.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li a { text-decoration: none; color: var(--dark); margin: 0 15px; font-weight: 500; font-size: 0.9rem; transition: 0.3s; }
.nav-links li a:hover { color: var(--primary); }
.btn-nav { background: var(--primary); color: white !important; padding: 8px 20px; border-radius: 50px; white-space: nowrap; }

/* Hero Centrado */
.hero {
    min-height: 85vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 100px 10%;
    /* Ajuste para que el navbar fijo no tape el inicio del hero en algunos casos */
    scroll-margin-top: 100px;
    background: radial-gradient(circle at center, #f0f7ff 0%, #ffffff 100%);
}
.hero-content { max-width: 850px; }
.hero h1 { font-size: 3.8rem; line-height: 1.1; margin-bottom: 25px; letter-spacing: -1px; }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.25rem; color: var(--gray); margin-bottom: 40px; }

/* Botones */
.btn-primary, .btn-secondary { 
    text-decoration: none; padding: 15px 35px; border-radius: 30px; 
    font-weight: 600; display: inline-block; transition: 0.3s; border: none; cursor: pointer;
}
.btn-primary { background: var(--primary); color: white; }
.btn-secondary { background: transparent; color: var(--dark); border: 1px solid #d2d2d7; margin-left: 10px; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,86,179,0.2); }

/* Secciones */
.section-title { text-align: center; margin-bottom: 60px; font-size: 2.5rem; letter-spacing: -1px; }
.services, .pricing-section, .extras-section, .faq-section, .contact-section { padding: 100px 10%; }
.services { background: var(--light); }

/* Grids y Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: var(--white); padding: 45px; border-radius: 24px; transition: 0.3s; border: 1px solid rgba(0,0,0,0.03); }
.card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.card .icon { font-size: 3rem; margin-bottom: 20px; }

/* Tabla Precios */
.table-container { overflow-x: auto; background: white; border-radius: 24px; box-shadow: 0 15px 40px rgba(0,0,0,0.06); }
.pricing-table { width: 100%; border-collapse: collapse; text-align: center; min-width: 600px; /* Evita que se aplaste en móvil */ }
.pricing-table th, .pricing-table td { padding: 25px; border-bottom: 1px solid #eee; }
.highlight { background: var(--primary); color: white; }
.price-row td { background: #f9fbff; font-weight: 700; font-size: 1.15rem; }
.highlight-price { color: var(--accent); font-size: 1.4rem !important; }

/* Extras */
.extras-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.extra-card { border: 1px solid #eee; padding: 35px; border-radius: 20px; background: white; }
.price-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed #eee; }
.price-list strong { color: var(--primary); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; }
.faq-item h4 { color: var(--primary); margin-bottom: 15px; font-size: 1.1rem; }
.faq-item p { color: var(--gray); font-size: 0.95rem; }

/* Contacto */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea, .select-field { padding: 18px; border-radius: 12px; border: 1px solid #ddd; font-family: inherit; font-size: 1rem; }
.legal-check { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--gray); margin: 10px 0; }

/* Botón WhatsApp Flotante */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px;
    background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center;
    font-size: 30px; box-shadow: 2px 2px 3px #999; z-index: 1000; transition: 0.3s;
    display: flex; align-items: center; justify-content: center;
}
.whatsapp-float:hover { background-color: #128c7e; transform: scale(1.1); }
.whatsapp-float i { margin-top: 2px; }

/* MODO OSCURO AUTOMÁTICO */
@media (prefers-color-scheme: dark) {
    :root { --white: #0f1011; --dark: #f5f5f7; --light: #18191a; --gray: #a1a1a6; }
    body { background-color: var(--white); color: var(--dark); }
    .navbar { background: rgba(15, 16, 17, 0.85); box-shadow: 0 2px 10px rgba(0,0,0,0.3); }
    .card, .table-container, .extra-card, .pricing-table th:not(.highlight), .contact-form input, .select-field, .contact-form textarea {
        background: #18191a; border-color: #2d2d2d; color: var(--dark);
    }
    .pricing-table td, .extra-card, .price-list li, .price-row td { border-color: #2d2d2d; background: #18191a; }
    .btn-secondary { color: var(--dark); border-color: #444; }
    .hero { background: radial-gradient(circle at center, #001529 0%, #0f1011 100%); }
    .section-title span { color: var(--accent); }

    /* CORRECCIÓN LOGO OSCURO: Lo vuelve blanco en modo oscuro */
    /* --- LOGO GIGANTE PARA WEB --- */
.logo-img {
    height: 120px; /* Tamaño mucho más grande (antes era 40px o 60px) */
    width: auto;
    filter: brightness(0) invert(1); /* Sigue siendo blanco */
    display: block;
    /* Añadimos un poco de sombra para darle nitidez y "cuerpo" */
    filter: brightness(0) invert(1) drop-shadow(0 0 1px rgba(255,255,255,0.5));
    transition: 0.3s;
}

/* Ajuste para que la barra de navegación crezca si el logo es muy alto */
.navbar {
    /* Si la altura fija (70px) es menor que el logo, se adapta */
    min-height: 80px; 
    height: auto; 
    padding-top: 10px;
    padding-bottom: 10px;
}
}

/* Responsivo y Correcciones Móvil */
@media (max-width: 900px) {
    /* Ajustes generales */
    .contact-container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero h1 { font-size: 2.8rem; }
    .section-title { font-size: 2rem; }
    
    /* CABECERA MÓVIL OPTIMIZADA */
    .navbar { 
        padding: 10px 5%; 
        flex-direction: column; /* Pone el logo arriba */
        align-items: flex-start;
    }
    
    .logo { 
        width: 100%; 
        margin-bottom: 10px; 
    }
	@media (max-width: 768px) {
    /* ... otras reglas ... */

    /* LOGO MÁS PEQUEÑO EN MÓVIL */
    .logo-img {
        height: 60px; /* En móvil 60px está bien, 120px es demasiado */
        /* Mantenemos el filtro blanco y la sombra */
        filter: brightness(0) invert(1) drop-shadow(0 0 1px rgba(255,255,255,0.5));
    }
}

    /* MENÚ DESLIZABLE (Instagram Style) */
    .nav-links {
        width: 100%;
        overflow-x: auto;       /* Permite deslizar con el dedo */
        white-space: nowrap;    /* Obliga a estar en una línea */
        padding-bottom: 5px;    /* Espacio para el dedo */
        justify-content: flex-start; /* Alineado a la izquierda */
        /* Ocultar barra scroll */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; 
    }
    .nav-links::-webkit-scrollbar { display: none; }
    
    .nav-links li a { margin: 0 10px; font-size: 0.85rem; }

    /* CORRECCIÓN PRECIOS: Evita que el € se caiga */
    .price-list li strong, .price-row td, .highlight-price {
        white-space: nowrap;
    }
}