/* =========================================
   1. VARIABLES & CONFIGURACIÓN BASE
   ========================================= */
:root {
    /* Paleta RabEat */
    --primary: #26A69A;      /* Verde Principal (RabGreen) */
    --secondary: #80CBC4;    /* Verde Claro (RabCarrot) */
    --structure: #546E7A;    /* Gris Azulado (RabBrown) */
    --accent: #4FC3F7;       /* Azul Acento (RabBlue) */
    
    /* Textos */
    --text-main: #37474F;    /* Texto Oscuro */
    --text-light: #78909C;   /* Texto Ligero */
    --white: #FFFFFF;
    
    /* Fondos */
    --bg-light: #FAFAFA;
    --bg-tint: #E0F2F1;
    --footer-bg: #263238;
    
    /* UI & Dimensiones */
    --header-height: 80px;
    --gradient: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.05);
    --shadow-mint: 0 4px 15px rgba(38, 166, 154, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: var(--header-height); /* Vital para que el header fijo no tape contenido */
}

/* =========================================
   2. HEADER & NAVEGACIÓN (Lógica Scroll + Glass)
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    background: transparent; /* Transparente inicial */
    transition: all 0.4s ease;
}

/* Estado Scrolled (Se activa con JS) */
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    height: 70px; /* Se compacta al bajar */
}

/* Logo */
header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
}

header .logo span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header .logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(38, 166, 154, 0.2);
    transition: transform 0.3s ease;
}

header.scrolled .logo img { height: 35px; }

/* Navegación Desktop */
header nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

header nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

/* Efecto Subrayado Hover */
header nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

header nav ul li a:hover { color: var(--primary); }
header nav ul li a:hover::after { width: 100%; }

/* Botón "Descargar / CTA" del Header */
header .header-cta {
    background: var(--gradient);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: var(--shadow-mint);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

header .header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(38, 166, 154, 0.5);
}
header .header-cta::after { display: none; }

/* Botón Login (borde) */
.nav-login {
    border: 2px solid var(--primary);
    padding: 6px 18px !important;
    border-radius: 20px;
    color: var(--primary) !important;
}
.nav-login:hover {
    background-color: var(--primary);
    color: white !important;
}
.nav-login::after { display: none; }

/* Botón "Volver" (Para Blog/Legal) */
.back-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    padding: 8px 20px;
    border: 2px solid var(--bg-tint);
    border-radius: 20px;
    transition: all 0.3s;
}
.back-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Toggle Menú Móvil */
.menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}
.menu-toggle svg {
    width: 28px;
    height: 28px;
    stroke: var(--text-main);
}

/* =========================================
   3. HERO & BOTONES TIENDA (Store Buttons)
   ========================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 5% 60px;
    
    /* CAMBIO: Usamos var(--secondary) para un verde más fuerte al inicio */
    /* y lo degradamos hacia el blanco (bg-light) */
    background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-light) 85%);
    
    min-height: 90vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 56px);
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero h1 span {
    /* Quitamos el degradado del texto para que sea blanco sólido */
    background: none; 
    -webkit-text-fill-color: initial; 
    
    color: #FFFFFF; /* Blanco puro */
    text-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Sombra suave para leer mejor */
}
.hero p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 35px;
    max-width: 90%;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: #fff;
    border-radius: 45px;
    border: 10px solid var(--text-main);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Botones App Store / Play Store */
.store-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-store {
    display: flex;
    align-items: center;
    background-color: #1a1a1a; 
    color: #fff;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    min-width: 160px;
}

.btn-store:hover {
    transform: translateY(-3px);
    background-color: #000;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.btn-store svg {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    fill: #fff;
}

.btn-store .text-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: left;
}

.btn-store .small-text {
    font-size: 0.75rem;
    font-weight: 300;
    opacity: 0.9;
}

.btn-store .big-text {
    font-size: 1.1rem;
    font-weight: 600;
}

/* =========================================
   4. SECCIONES: FEATURES & ABOUT (Misión/Visión)
   ========================================= */
section { padding: 80px 5%; }

h2 {
    font-size: clamp(30px, 4vw, 40px);
    margin-bottom: 50px;
    color: var(--text-main);
    text-align: center;
}

/* Features */
.features { background: var(--bg-light); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 35px 25px;
    border-radius: 25px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s;
    border: 1px solid var(--bg-tint);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary);
}

.feature-card .icon {
    font-size: 40px;
    margin-bottom: 15px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
}

/* About Section (Misión / Visión) */
.about-section {
    padding: 80px 5%;
    background-color: #ffffff;
    text-align: center;
}

.about-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 700;
}

.about-header p {
    color: #666;
    max-width: 700px;
    margin: 0 auto 50px auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-card {
    background: #f9fbfb;
    padding: 40px 30px;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(38, 166, 154, 0.15);
    border-color: transparent;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: #e0f2f1;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    color: var(--primary);
}

.about-card h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

/* =========================================
   5. TESTIMONIOS (Carrusel Animado)
   ========================================= */
.testimonials {
    background: var(--white);
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.carousel-track:hover { animation-play-state: paused; }

.testimonial-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: left;
    width: 320px;
    flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.03);
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 12px;
}

.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
}

.stars { font-size: 12px; color: #FBC02D; }

.testimonial-card p {
    color: var(--text-light);
    font-style: italic;
    font-size: 14px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-320px * 5 - 20px * 5)); }
}

/* =========================================
   6. FAQ & CONTACTO
   ========================================= */
/* FAQ */
.faq-section { background: var(--bg-light); }

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

details {
    background: white;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

details:hover {
    transform: translateY(-2px);
    border-color: var(--bg-tint);
}

details[open] {
    border-color: var(--secondary);
    box-shadow: var(--shadow-soft);
}

summary {
    font-weight: 600;
    color: var(--text-main);
    list-style: none;
    position: relative;
    padding-right: 30px;
    font-size: 16px;
}

summary::-webkit-details-marker { display: none; }

summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
    color: var(--primary);
    font-size: 20px;
    transition: transform 0.2s;
}

details[open] summary::after {
    content: '-';
    color: var(--structure);
}

details p {
    margin-top: 15px;
    color: var(--text-light);
    line-height: 1.6;
    border-top: 1px solid var(--bg-tint);
    padding-top: 15px;
    font-size: 15px;
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    background-color: var(--bg-light);
    color: var(--text-main);
    outline: none;
    min-width: 200px;
}

.contact-form input:focus { border-color: var(--primary); }

.error-message {
    color: #dc2626;
    background-color: #fef2f2;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 0.9em;
    display: none;
    text-align: center;
    border: 1px solid #fca5a5;
    width: 100%;
}

/* =========================================
   7. VISTAS ESPECIALES: BLOG & LEGAL
   ========================================= */
/* Legal Container */
.legal-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 50px 5%;
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--bg-tint);
}
.legal-container h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--text-main);
}
.legal-container h2 {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary);
}
.legal-container ul { padding-left: 20px; margin-bottom: 20px; }
.legal-container li { margin-bottom: 10px; color: var(--text-light); }

/* Blog View Principal */
#blog-view { transition: opacity 0.3s; }

.blog-header {
    text-align: center;
    padding: 60px 20px 50px;
    background: radial-gradient(circle at top, var(--bg-tint) 0%, var(--bg-light) 70%);
}
.blog-header h1 { font-size: 42px; margin-bottom: 15px; color: var(--text-main); }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5% 80px;
}

.article-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(0,0,0,0.03);
    height: 100%;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(38, 166, 154, 0.15);
    border-color: var(--secondary);
}

.card-image {
    height: 220px;
    position: relative;
    background-size: cover;
    background-position: center;
}
.category-tag {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(255,255,255,0.95);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px; font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-content { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.card-date { font-size: 12px; color: var(--text-light); margin-bottom: 10px; }
.card-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; color: var(--text-main); }
.card-excerpt { font-size: 15px; color: var(--text-light); margin-bottom: 20px; flex: 1; }
.read-more { color: var(--primary); font-weight: 600; font-size: 14px; }

/* Blog Detalle (Hidden by default) */
#article-detail {
    display: none; /* Controlado por JS */
    padding: 40px 5% 80px;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.detail-hero {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    cursor: pointer;
    color: var(--text-light);
    font-weight: 600;
    transition: color 0.3s;
}
.back-btn:hover { color: var(--primary); }

.detail-title { font-size: 42px; line-height: 1.2; margin-bottom: 30px; color: var(--text-main); }
.detail-body { font-size: 18px; line-height: 1.8; color: #546E7A; }
.detail-body h3 { margin-top: 40px; margin-bottom: 20px; color: var(--text-main); font-size: 26px; }
.detail-body p { margin-bottom: 20px; }

.author-box {
    margin-top: 60px;
    padding: 30px;
    background: var(--bg-tint);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* =========================================
   8. LOGIN MODAL (Glassmorphism)
   ========================================= */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active { display: flex; opacity: 1; }

.login-modal {
    background: #ffffff;
    width: 90%;
    max-width: 400px;
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.8);
}

.modal-overlay.active .login-modal { transform: translateY(0); }

.close-modal {
    position: absolute;
    top: 20px; right: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #999;
    font-size: 20px;
    padding: 5px;
    transition: color 0.3s, transform 0.2s;
}
.close-modal:hover { color: var(--text-main); transform: rotate(90deg); }

.login-icon-wrapper { display: flex; justify-content: center; margin-bottom: 20px; }
.modal-logo { width: 80px; height: 80px; object-fit: contain; }

.text-center h2 { font-size: 1.8rem; color: var(--text-main); margin-bottom: 10px; font-weight: 700; text-align: center; }
.subtitle { font-size: 0.95rem; color: var(--text-light); text-align: center; margin-bottom: 30px; }

.google-btn-wrapper { display: flex; justify-content: center; margin-bottom: 20px; width: 100%; }
.google-btn-wrapper iframe { margin: 0 auto !important; }

.legal-text { font-size: 0.75rem; color: #999; text-align: center; margin-top: 20px; }
.legal-text a { color: var(--primary); text-decoration: none; }
.error-box { display: none; margin-top: 15px; background: #FFF5F5; color: #E53E3E; padding: 12px; border-radius: 12px; text-align: center; border: 1px solid #FED7D7; }

/* =========================================
   9. FOOTER PROFESIONAL
   ========================================= */
.professional-footer {
    background-color: var(--footer-bg);
    color: #B0BEC5;
    padding: 60px 0 30px;
    font-size: 14px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    text-decoration: none;
}
.footer-logo img { width: 30px; height: 30px; border-radius: 8px; }

.brand-area { display: flex; flex-direction: column; gap: 8px; }
.brand-area span { font-size: 13px; opacity: 0.6; padding-left: 40px; }

.legal-nav { display: flex; gap: 30px; flex-wrap: wrap; }
.legal-nav a { color: #B0BEC5; text-decoration: none; transition: color 0.2s; font-weight: 500; font-size: 13px; }
.legal-nav a:hover { color: var(--secondary); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright-text strong { color: var(--white); }

.dev-credit { font-size: 13px; display: flex; align-items: center; gap: 5px; }
.dev-link { color: var(--white); text-decoration: none; font-weight: 600; position: relative; }
.dev-link::after {
    content: ''; position: absolute; width: 100%; height: 2px; bottom: -2px; left: 0;
    background: var(--gradient); transform: scaleX(0); transform-origin: bottom right; transition: transform 0.3s ease-out;
}
.dev-link:hover::after { transform: scaleX(1); transform-origin: bottom left; }

/* =========================================
   10. MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 992px) {
    /* Header Responsive */
    header { padding: 0 20px; }
    .menu-toggle { display: block; }
    
    header nav {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: white;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
        opacity: 0; visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    header nav.active { opacity: 1; visibility: visible; transform: translateY(0); }
    header nav ul { flex-direction: column; align-items: center; gap: 20px; }
    
    header .header-cta { width: 80%; text-align: center; margin-top: 10px; }

    /* Hero & General */
    .hero { flex-direction: column; text-align: center; padding-top: 40px; gap: 50px; }
    .hero h1 { font-size: 42px; }
    .hero p { margin: 0 auto 30px; }
    .phone-mockup { width: 260px; height: 520px; }
    .store-buttons { justify-content: center; }
}

@media (max-width: 768px) {
    /* Footer Stacked */
    .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; gap: 20px; }
    .legal-nav { flex-direction: column; gap: 15px; }
    .brand-area span { padding-left: 0; }
    
    /* Elements */
    .faq-container { width: 100%; }
    .testimonial-card { width: 280px; padding: 20px; }
    .legal-container, #article-detail { margin: 30px auto; padding: 30px 5%; width: 90%; }
    .detail-title { font-size: 30px; }
    .detail-hero { height: 250px; }
}
/* =========================================
   ESTILOS CONTACTO / CTA (Mejorado)
   ========================================= */
.cta-section {
    background: linear-gradient(to bottom, var(--white) 0%, var(--bg-tint) 100%);
    padding: 100px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Contenedor para limitar el ancho y centrar */
.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 15px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* Necesario para el gradiente en texto */
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

/* Estilo del Formulario "Píldora" */
.contact-form {
    display: flex;
    justify-content: center;
}

.input-group {
    display: flex;
    background: white;
    padding: 5px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(38, 166, 154, 0.15); /* Sombra verdosa suave */
    border: 1px solid rgba(0,0,0,0.05);
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.input-group:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(38, 166, 154, 0.25);
    border-color: var(--secondary);
}

.contact-form input {
    border: none;
    background: transparent;
    padding: 15px 25px;
    font-size: 1rem;
    flex: 1; /* Ocupa todo el espacio disponible */
    outline: none;
    color: var(--text-main);
    min-width: 0; /* Evita desbordes en flex */
}

.btn-submit {
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 35px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(38, 166, 154, 0.3);
}

.btn-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(38, 166, 154, 0.5);
}

/* Responsivo para móviles */
@media (max-width: 480px) {
    .input-group {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        border: none;
        gap: 15px;
    }

    .contact-form input {
        background: white;
        border-radius: 50px;
        box-shadow: var(--shadow-soft);
        text-align: center;
        padding: 18px;
    }

    .btn-submit {
        width: 100%;
        padding: 18px;
    }
}
/* =========================================
   11. PÁGINAS LEGALES (Términos / Privacidad)
   ========================================= */

.legal-wrapper {
    max-width: 900px;
    margin: 40px auto 80px; /* Margen superior e inferior */
    background: var(--white);
    padding: 60px 8%;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05); /* Sombra suave y difusa */
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

/* Barra decorativa superior */
.legal-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 8px;
    background: var(--gradient);
}

/* Título Principal */
.legal-wrapper h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -1px;
}

/* Texto "Última actualización" */
.legal-wrapper p:first-of-type strong {
    color: var(--primary);
}

.legal-wrapper p {
    font-size: 1.05rem;
    color: #546E7A; /* Tono gris azulado suave para lectura */
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Subtítulos (1. Uso, 2. Descargo...) */
.legal-wrapper h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-top: 50px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-tint); /* Línea divisoria sutil */
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left; /* Asegurar alineación izquierda */
}

/* Pequeño acento visual antes de cada H2 */
.legal-wrapper h2::before {
    content: '';
    display: block;
    width: 8px;
    height: 30px;
    background: var(--secondary);
    border-radius: 4px;
}

/* Listas personalizadas */
.legal-wrapper ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.legal-wrapper ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    color: #546E7A;
    font-size: 1rem;
}

/* Icono de Check personalizado para las listas */
.legal-wrapper ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: var(--bg-tint);
    color: var(--primary);
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enlaces de contacto dentro del legal */
.legal-wrapper a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.legal-wrapper a:hover {
    border-bottom-color: var(--primary);
}

/* Responsivo para móviles */
@media (max-width: 768px) {
    .legal-wrapper {
        margin: 20px 5% 60px; /* Menos margen en móvil */
        padding: 40px 25px;
        border-radius: 20px;
    }
    
    .legal-wrapper h1 {
        font-size: 2rem;
    }

    .legal-wrapper h2 {
        font-size: 1.3rem;
    }
}
/* --- FIX: Estilo para páginas internas (sin Hero) --- */
/* Mantiene el header visible y con fondo desde el principio */
header.header-static {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); /* Sombra sutil para separar del fondo */
    backdrop-filter: blur(10px);
}
/* Definimos la animación */
@keyframes flotar {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* La aplicamos al mockup */
.phone-mockup {
    /* ... tus estilos actuales ... */
    animation: flotar 6s ease-in-out infinite;
}