/* =====================================================
   ESTORIA — La historia de tu familia, preservada para siempre.
   Estilos Principales v2.0 (Limpio & Optimizado)
===================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&display=swap');

/* =====================================================
   VARIABLES
===================================================== */
:root {
    /* Colores Principales */
    --background: #FAF8F5;       /* Blanco roto cálido */
    --surface: #FFFFFF;          /* Blanco puro */
    --surface-alt: #F4EFEA;      /* Crema suave para fondos secundarios */

    --primary: #1A2B49;          /* Azul oscuro elegante */
    --primary-light: #2A3F66;    /* Azul medio suave */

    --accent: #C87A53;           /* Terracota / Marrón cálido */
    --accent-hover: #B46A44;     /* Terracota más intenso para hovers */

    --text: #2D3142;             /* Gris oscuro para lectura */
    --text-light: #646D7E;       /* Gris medio para textos secundarios */

    --border: #ECE6DE;           /* Borde sutil cálido */

    /* Sombras Elegantes & Discretas */
    --shadow-sm: 0 4px 12px rgba(26, 43, 73, 0.03);
    --shadow: 0 12px 32px rgba(26, 43, 73, 0.06);
    --shadow-lg: 0 20px 50px rgba(26, 43, 73, 0.10);

    /* Bordes y Estructura */
    --radius: 12px;
    --radius-lg: 20px;
    --container: 1200px;
    --section-padding: 100px;

    /* Transición */
    --transition: 0.3s ease;
}

/* =====================================================
   RESET Y BASE
===================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: min(90%, var(--container));
    margin: 0 auto;
}

/* =====================================================
   TIPOGRAFÍA
===================================================== */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: var(--primary);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

p {
    margin-bottom: 16px;
    color: var(--text-light);
}

.section-title {
    max-width: 720px;
    margin: 0 auto 60px auto;
    text-align: center;
}

.section-title p {
    font-size: 1.1rem;
    margin-top: 12px;
    margin-bottom: 0;
}

/* =====================================================
   BOTONES
===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: var(--surface);
    color: var(--primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* =====================================================
   SECCIONES
===================================================== */
section {
    padding: var(--section-padding) 0;
}

/* =====================================================
   1. HEADER
===================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(250, 248, 245, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(236, 230, 222, 0.8);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(26, 43, 73, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 38px;
    width: auto;
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--primary);
    position: relative;
}

.nav a:hover {
    color: var(--accent);
}

.nav-button {
    padding: 12px 24px;
    font-size: 14px;
}

/* =====================================================
   2. HERO
===================================================== */
.hero {
    padding-top: 150px;
    padding-bottom: 90px;
    background: linear-gradient(180deg, var(--background) 0%, var(--surface-alt) 100%);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.hero-location img {
    width: 18px;
    height: 18px;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 580px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.hero-features div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.hero-features img {
    width: 16px;
    height: 16px;
}

.hero-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 43, 73, 0) 60%, rgba(26, 43, 73, 0.15) 100%);
    pointer-events: none;
}

/* =====================================================
   3. URGENCIA
===================================================== */
.science {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.science-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.hero-kicker {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.science p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 18px;
}

.science-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.science-image img {
    width: 100%;
    display: block;
}

/* =====================================================
   4. ¿POR QUÉ ESTORIA?
===================================================== */
.why-estoria {
    background: var(--background);
}

.why-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

.why-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.why-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.why-icon img {
    width: 28px;
    height: 28px;
}

.why-item h3 {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.why-item p {
    font-size: 0.98rem;
    margin-bottom: 0;
}

.quote-box {
    background: var(--primary);
    color: #FFFFFF;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: sticky;
    top: 110px;
}

.quote-box h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    line-height: 1.5;
    margin-bottom: 24px;
    font-style: italic;
    font-weight: 500;
}

.quote-box p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =====================================================
   5. SERVICIOS
===================================================== */
.services {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--background);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(200, 122, 83, 0.4);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.35rem;
}

.service-card p {
    margin-bottom: 0;
    font-size: 0.98rem;
}

/* =====================================================
   6. CÓMO FUNCIONA
===================================================== */
.process {
    background: var(--background);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    display: flex;
    gap: 32px;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--accent);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.timeline-content {
    background: var(--surface);
    padding: 28px 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.timeline-content p {
    margin-bottom: 0;
    font-size: 0.98rem;
}

/* =====================================================
   7. TARIFAS
===================================================== */
.pricing {
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.price-card {
    background: var(--surface);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.price-card.featured {
    border: 2px solid var(--accent);
}

.badge {
    position: absolute;
    top: -14px;
    left: 28px;
    background: var(--accent);
    color: #FFFFFF;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.price-card h3 {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.price-subtitle {
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.price-card ul {
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.price-card li {
    font-size: 0.95rem;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.price-card li:last-child {
    border-bottom: none;
}

.price-card .btn {
    margin-top: auto;
    width: 100%;
}

/* =====================================================
   8. FAQ
===================================================== */
.faq {
    background: var(--background);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    padding: 20px 28px;
    transition: var(--transition);
}

.faq-item[open] {
    box-shadow: var(--shadow-sm);
    border-color: rgba(200, 122, 83, 0.4);
}

.faq-item summary {
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    color: var(--accent);
    font-weight: 400;
    margin-left: 16px;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin-top: 14px;
    margin-bottom: 0;
    font-size: 0.98rem;
    line-height: 1.8;
}

/* =====================================================
   9. CONTACTO / CTA FINAL
===================================================== */
.final-cta {
    background: var(--primary);
    color: #FFFFFF;
    text-align: center;
    padding: 110px 0;
}

.cta-content {
    max-width: 760px;
    margin: 0 auto;
}

.cta-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.final-cta h2 {
    color: #FFFFFF;
    margin-bottom: 20px;
}

.final-cta p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.1rem;
    margin-bottom: 36px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.final-cta .btn-secondary {
    background: transparent;
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.3);
}

.final-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFFFF;
}

/* =====================================================
   10. FOOTER
===================================================== */
footer {
    background: #111827;
    color: #D1D5DB;
    padding: 80px 0 30px 0;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 12px;
}

footer p {
    color: #9CA3AF;
    font-size: 14px;
    margin-bottom: 0;
}

footer h4 {
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
}

footer ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

footer li {
    color: #9CA3AF;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #6B7280;
    font-size: 13px;
}

/* =====================================================
   RESPONSIVE DESIGN
===================================================== */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

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

    .quote-box {
        position: static;
    }
}

@media (max-width: 900px) {
    :root {
        --section-padding: 70px;
    }

    .nav {
        display: none;
    }

    .hero {
        padding-top: 120px;
    }

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

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 600px) {
    .hero-buttons, .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-number {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .quote-box {
        padding: 32px;
    }
}

/* =====================================================
   BANNER DE LANZAMIENTO (OFERTA)
===================================================== */
.launch-banner {
    background-color: var(--accent);
    color: #FFFFFF;
    text-align: center;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    position: relative;
    z-index: 1001;
    box-shadow: var(--shadow-sm);
}

.launch-banner strong {
    color: #FFFFFF;
}

.launch-banner span {
    text-decoration: underline;
    opacity: 0.95;
}

/* Ajuste de margen para que el Header fijo no tape el contenido */
body {
    padding-top: 80px; /* Compensa la altura del header fijo */
}

.header {
    top: 0;
}