/* =========================================
   1. FUENTES LOCALES
   ========================================= */
@font-face { font-family: 'PlusJakartaSans'; src: url('../assets/fonts/PlusJakartaSans-ExtraBold.ttf') format('truetype'); font-weight: 800; }
@font-face { font-family: 'PlusJakartaSans'; src: url('../assets/fonts/PlusJakartaSans-Bold.ttf') format('truetype'); font-weight: 700; }
@font-face { font-family: 'Montserrat'; src: url('../assets/fonts/Montserrat-Medium.ttf') format('truetype'); font-weight: 500; }
@font-face { font-family: 'Montserrat'; src: url('../assets/fonts/Montserrat-Regular.ttf') format('truetype'); font-weight: 400; }

/* =========================================
   2. VARIABLES DE DISEÑO
   ========================================= */
:root {
    --bg-page: #F5F2EB; --bg-card: #FFFFFF;
    --text-dark: #1A1A1A; --accent-brown: #4A3F35;
    --text-gray: #666666; --text-disabled: #A0A0A0; --border-light: #EAE6DF;
}

/* =========================================
   3. BASE Y RESET
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-page); color: var(--text-dark);
    font-family: 'Montserrat', sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'PlusJakartaSans', sans-serif; color: var(--accent-brown); line-height: 1.2; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* CLASE PARA DELINEADO CAFÉ PREMIUM */
.outlined-box { border: 2px solid var(--accent-brown); }

/* =========================================
   4. NAVEGACIÓN
   ========================================= */
.navbar { padding: 30px 24px; display: flex; justify-content: space-between; align-items: center; }
.logo { height: 100px; width: auto; }
.nav-menu { display: flex; gap: 32px; align-items: center; }
.nav-menu a { text-decoration: none; color: var(--text-dark); font-weight: 500; font-size: 0.95rem; transition: color 0.3s; }
.nav-menu a:hover { color: var(--accent-brown); }
.nav-cta { padding: 10px 24px; border: 2px solid var(--accent-brown); border-radius: 50px; font-weight: 700; color: var(--accent-brown) !important; }
.nav-cta:hover { background-color: var(--accent-brown); color: #fff !important; }

/* =========================================
   5. BOTONES
   ========================================= */
.btn-primary, .btn-secondary {
    display: inline-block; padding: 16px 40px; text-decoration: none; font-weight: 700;
    font-family: 'PlusJakartaSans', sans-serif; border-radius: 50px; border: 2px solid var(--accent-brown);
    transition: all 0.3s ease; text-align: center; cursor: pointer;
}
.btn-primary { background-color: var(--accent-brown); color: #fff; }
.btn-primary:hover { background-color: transparent; color: var(--accent-brown); }
.btn-secondary { background-color: transparent; color: var(--accent-brown); }
.btn-secondary:hover { background-color: var(--accent-brown); color: #fff; }

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; padding: 60px 24px 100px; }
.hero-text-col h1 { font-size: 3.8rem; letter-spacing: -1px; margin-bottom: 24px; color: var(--text-dark); }
.title-highlight { color: var(--accent-brown); font-weight: 800; }
.lead-text { font-size: 1.15rem; color: var(--text-gray); margin-bottom: 40px; max-width: 90%; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-profile-col { display: flex; justify-content: flex-end; }
.profile-hero-img { width: 100%; max-width: 420px; border-radius: 40px; box-shadow: 0 20px 50px rgba(74, 63, 53, 0.15); object-fit: cover; }

/* =========================================
   7. NEWSLETTER GIGANTE
   ========================================= */
.newsletter-wrapper { position: relative; margin-top: -60px; z-index: 10; }
.big-island {
    background-color: var(--bg-card); border-radius: 40px; padding: 60px;
    box-shadow: 0 30px 60px rgba(74, 63, 53, 0.08); display: flex; align-items: center; gap: 60px;
}
.news-info-large { display: flex; align-items: flex-start; gap: 30px; flex: 1.2; }
.news-icon-giant { width: 140px; height: auto; flex-shrink: 0; }
.news-text-large h3 { font-size: 2rem; margin-bottom: 12px; color: var(--accent-brown); }
.news-text-large p { color: var(--text-gray); font-size: 1.05rem; line-height: 1.6; margin: 0; }
.news-form-wrapper { flex: 1; display: flex; flex-direction: column; gap: 16px; width: 100%; }
.news-form-large { display: flex; gap: 12px; width: 100%; }
.input-pill-large { flex: 1; padding: 18px 24px; border-radius: 50px; border: 1px solid var(--border-light); background-color: var(--bg-page); font-family: 'Montserrat', sans-serif; font-size: 1rem; outline: none; transition: 0.3s; }
.input-pill-large:focus { border-color: var(--accent-brown); }
.btn-submit-pill-large { padding: 18px 32px; background-color: var(--text-dark); color: #fff; border: none; border-radius: 50px; font-weight: 700; font-size: 1rem; font-family: 'PlusJakartaSans', sans-serif; cursor: pointer; transition: 0.3s; white-space: nowrap; }
.btn-submit-pill-large:hover { background-color: var(--accent-brown); }
.privacy-check { font-size: 0.85rem; color: var(--text-gray); display: flex; align-items: center; gap: 10px; padding-left: 10px; }
.privacy-check a { color: var(--accent-brown); text-decoration: underline; font-weight: 500; }

/* =========================================
   8. SERVICIOS (LISTAS CON NEGRILLA PREMIUM)
   ========================================= */
.services-section { padding: 120px 24px; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-header h2 { font-size: 3rem; margin-bottom: 16px; color: var(--accent-brown); }
.pillar-header { text-align: center; margin-bottom: 50px; }
.pillar-header h3 { font-size: 2.2rem; color: var(--accent-brown); margin-bottom: 8px;}
.pillar-container { margin-bottom: 100px; }
.pricing-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: stretch; }
.pricing-card {
    background-color: var(--bg-card); border-radius: 30px; padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); border: 1px solid var(--border-light);
    display: flex; flex-direction: column; position: relative; transition: transform 0.3s ease;
}
.pricing-card:hover { transform: translateY(-5px); }
.card-featured { border: 3px solid var(--accent-brown); }
.badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background-color: var(--accent-brown); color: #fff; padding: 6px 20px; border-radius: 30px; font-size: 0.8rem; font-weight: 700; font-family: 'PlusJakartaSans', sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.card-header { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); }
.pricing-card h4 { font-size: 1.5rem; margin-bottom: 12px; color: var(--accent-brown); }
.neuro-desc { font-size: 0.95rem; color: var(--text-gray); line-height: 1.5; }

/* EL TRUCO VISUAL DE LAS LISTAS */
.feature-list { flex-grow: 1; display: flex; flex-direction: column; gap: 16px; font-weight: 400; color: var(--text-gray); }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; line-height: 1.4; }
.feature-list li img { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.feature-list li span { flex: 1; }
.included { color: var(--text-dark); }

/* LA NEGRILLA PREMIUM */
.feature-list strong { 
    font-family: 'PlusJakartaSans', sans-serif; /* Usa la fuente de los títulos */
    font-weight: 800; /* Extra gruesa */
    color: var(--accent-brown); /* Color Café */
}

/* DELINEADO INFERIOR PARA EL ITEM ESPECIAL (Ej: Incluye lo anterior) */
.special-item span { 
    border-bottom: 2px solid var(--accent-brown); 
    padding-bottom: 2px;
}

.excluded { color: var(--text-disabled); text-decoration: line-through; opacity: 0.7; }

/* =========================================
   9. CTA FINAL
   ========================================= */
.final-cta-section { padding: 40px 24px 100px; }
.cta-floating-box {
    background-color: var(--bg-card); border-radius: 40px; padding: 80px 40px;
    text-align: center; max-width: 900px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}
.cta-floating-box h2 { font-size: 2.8rem; margin-bottom: 16px; color: var(--accent-brown); }
.cta-floating-box p { color: var(--text-gray); margin-bottom: 40px; font-size: 1.1rem; }

/* =========================================
   10. FOOTER PREMIUM
   ========================================= */
.footer-premium { background-color: var(--bg-card); padding: 80px 0 40px; border-top: 1px solid var(--border-light); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
.footer-logo { height: 100px; width: auto; margin-bottom: 20px; opacity: 0.9; }
.footer-col-brand p { color: var(--text-gray); font-size: 0.9rem; }
.footer-grid h4 { font-size: 1.2rem; margin-bottom: 24px; color: var(--accent-brown); }
.social-links { display: flex; gap: 16px; }
.social-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background-color: var(--bg-page); border: 1px solid var(--border-light); transition: all 0.3s ease; }
.social-btn img { width: 22px; height: 22px; filter: brightness(0) saturate(100%) invert(24%) sepia(13%) saturate(936%) hue-rotate(347deg) brightness(96%) contrast(88%); }
.social-btn:hover { background-color: var(--accent-brown); border-color: var(--accent-brown); }
.social-btn:hover img { filter: brightness(0) invert(1); }
.legal-links li { margin-bottom: 12px; }
.legal-links a { text-decoration: none; color: var(--text-gray); font-size: 0.9rem; transition: color 0.2s; }
.legal-links a:hover { color: var(--accent-brown); }

/* =========================================
   11. ANIMACIONES
   ========================================= */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   12. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .pricing-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-split { grid-template-columns: 1fr; text-align: center; }
    .hero-profile-col { justify-content: center; order: -1; }
    .hero-buttons { justify-content: center; }
    .big-island { flex-direction: column; padding: 40px 30px; text-align: center; gap: 30px; }
    .news-info-large { flex-direction: column; align-items: center; }
    .news-form-large { flex-direction: column; }
    .btn-submit-pill-large { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col-brand { align-items: center; }
    .social-links { justify-content: center; }
}
@media (max-width: 768px) {
    .pricing-grid-3 { grid-template-columns: 1fr; }
    .hero-text-col h1 { font-size: 2.8rem; }
    .navbar { flex-direction: column; gap: 20px; }
    .nav-menu { flex-wrap: wrap; justify-content: center; }
}

/* =========================================
   13. PÁGINAS LEGALES EDITORIALES
   ========================================= */
.legal-page {
    padding: 60px 24px 120px;
    display: flex;
    justify-content: center;
}

.legal-document {
    background-color: var(--bg-card);
    padding: 80px;
    border-radius: 40px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(74, 63, 53, 0.05);
}

.legal-document h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.last-updated {
    font-size: 1rem;
    color: var(--text-disabled);
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
    font-weight: 500;
}

.legal-content h2 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-top: 50px;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.legal-content p {
    color: var(--text-gray);
    margin-bottom: 24px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Estilo para las listas dentro del documento legal */
.legal-list {
    list-style-type: disc; /* Aquí sí activamos los puntos */
    padding-left: 24px;
    margin-bottom: 30px;
}

.legal-list li {
    color: var(--text-gray);
    margin-bottom: 12px;
    font-size: 1.05rem;
    line-height: 1.6;
}

.legal-list strong {
    color: var(--text-dark);
}

/* Responsive para páginas legales */
@media (max-width: 768px) {
    .legal-document {
        padding: 40px 24px;
    }
    .legal-document h1 {
        font-size: 2.5rem;
    }
}

/* =========================================
   14. BANNER DE COOKIES FLOTANTE
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    max-width: 380px;
    background-color: var(--bg-card);
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(74, 63, 53, 0.15); /* Sombra café */
    border: 1px solid var(--border-light);
    z-index: 9999;
    
    /* Inicialmente oculto y un poco más abajo para la animación */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none; /* Para que no estorbe si está invisible */
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Esta clase se activa con JavaScript */
.cookie-banner.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-banner p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 16px;
    line-height: 1.5;
}

.cookie-banner a {
    color: var(--accent-brown);
    font-weight: 700;
}

.btn-cookie {
    background-color: var(--accent-brown);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'PlusJakartaSans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-cookie:hover {
    background-color: var(--text-dark);
}

/* En móviles, lo centramos abajo */
@media (max-width: 768px) {
    .cookie-banner {
        bottom: 20px;
        left: 20px;
        right: 20px;
        max-width: none;
    }
}