/*
Theme Name: Lof Marketing - Scrollytelling & Arte Ritual
Theme URI: https://lofmarketing.com
Author: Lof Marketing
Description: Tema interactivo con navegación Sticky Scrollytelling, Card Stacking e ilustraciones de trazos orgánicos hechos a mano para Lof Marketing.
Version: 5.0
Text Domain: lof-marketing
*/

:root {
    --bg-paper: #FBF9F6;
    --bg-warm: #F4ECF6;
    --bg-card: #FFFFFF;
    --lof-magenta: #9A0082;
    --lof-magenta-dark: #680058;
    --lof-magenta-soft: #F3DDF0;
    --lof-ochre: #D97706;
    --lof-clay: #B45309;
    --text-ink: #231B28;
    --text-charcoal: #4D4D4D;
    --text-muted: #6E6475;
    --border-hand: rgba(154, 0, 130, 0.18);
    --grad-lof: linear-gradient(135deg, #9A0082 0%, #C83E9B 100%);
    --shadow-card: 0 22px 50px -12px rgba(74, 20, 64, 0.11);
    --shadow-stack: 0 -15px 45px rgba(35, 27, 40, 0.10);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-paper);
    color: var(--text-ink);
    line-height: 1.7;
    overflow-x: clip; /* clip permite que position:sticky funcione perfecto */
}

/* Textura sutil de papel cálido */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 12% 18%, rgba(154, 0, 130, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 88% 82%, rgba(217, 119, 6, 0.06) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--text-ink);
    line-height: 1.16;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 26px;
}

/* Barra de progreso de lectura superior */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--grad-lof);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* Header Cápsula */
.site-header {
    position: sticky;
    top: 14px;
    z-index: 1000;
    padding: 0 18px;
}

.nav-capsule {
    max-width: 1220px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border: 1.5px solid var(--border-hand);
    border-radius: 100px;
    padding: 10px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 12px 32px rgba(154, 0, 130, 0.08);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

.main-nav a {
    font-family: 'Outfit', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-charcoal);
}

.main-nav a:hover {
    color: var(--lof-magenta);
}

/* Botones con trazo orgánico */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 40px 18px 40px 18px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
    background: var(--grad-lof);
    color: #fff;
    box-shadow: 0 12px 28px -6px rgba(154, 0, 130, 0.45);
}

.btn-primary:hover {
    border-radius: 18px 40px 18px 40px;
    transform: translateY(-3px);
    box-shadow: 0 18px 34px -6px rgba(154, 0, 130, 0.6);
    color: #fff;
}

.btn-outline {
    background: #fff;
    color: var(--lof-magenta);
    border: 2px solid var(--lof-magenta);
}

.btn-outline:hover {
    background: var(--lof-magenta-soft);
    border-radius: 18px 40px 18px 40px;
}

.ritual-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 30px 12px 30px 12px;
    background: var(--lof-magenta-soft);
    border: 1.5px dashed var(--lof-magenta);
    color: var(--lof-magenta);
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.highlight-brush {
    color: var(--lof-magenta);
    position: relative;
    display: inline-block;
}

.highlight-brush::after {
    content: '';
    position: absolute;
    left: -2%;
    bottom: 2px;
    width: 104%;
    height: 12px;
    background: rgba(154, 0, 130, 0.14);
    border-radius: 60% 40% 70% 30%;
    z-index: -1;
    transform: rotate(-1deg);
}

/* Hero Section */
.hero {
    padding: 65px 0 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.4rem, 4.3vw, 3.75rem);
    margin-bottom: 22px;
}

.hero p {
    font-size: 1.14rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Cinta en movimiento artesanal */
.marquee-band {
    background: var(--lof-magenta);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    transform: rotate(-1.2deg) scale(1.02);
    box-shadow: 0 12px 30px rgba(154, 0, 130, 0.22);
    margin: 10px 0 30px;
}

.marquee-track {
    display: inline-block;
    animation: marqueeMove 28s linear infinite;
}

@keyframes marqueeMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 26px;
    color: #fff;
}

/* =========================================================
   EFECTO 1: STICKY SCROLLYTELLING (Columna Izquierda Fija + Derecha Móvil)
   ========================================================= */
.scrolly-section {
    padding: 90px 0;
    position: relative;
}

.scrolly-wrapper {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: start;
}

.scrolly-sticky-left {
    position: sticky;
    top: 115px;
    background: #FFFFFF;
    border: 2px solid var(--border-hand);
    border-radius: 44px 20px 44px 20px;
    padding: 42px 36px;
    box-shadow: var(--shadow-card);
    transition: all 0.4s ease;
}

.sticky-stage-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.stage-pill {
    background: var(--lof-magenta);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    transition: all 0.3s ease;
}

.scrolly-scroll-right {
    display: flex;
    flex-direction: column;
    gap: 75px;
    padding-bottom: 40px;
}

.scrolly-step-card {
    background: #FFFFFF;
    border: 2px solid var(--border-hand);
    border-radius: 24px 48px 24px 48px;
    padding: 44px 38px;
    box-shadow: var(--shadow-card);
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.55;
    transform: scale(0.97);
}

.scrolly-step-card.is-active {
    opacity: 1;
    transform: scale(1);
    border-color: var(--lof-magenta);
    box-shadow: 0 28px 60px -12px rgba(154, 0, 130, 0.22);
}

.hand-illustration-box {
    width: 115px;
    height: 115px;
    margin-bottom: 20px;
    background: var(--bg-warm);
    border-radius: 58% 42% 48% 52% / 44% 56% 44% 56%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px dashed var(--lof-magenta);
}

/* =========================================================
   EFECTO 2: STACKING CARDS (Tarjetas que se quedan pegadas y se apilan al hacer scroll)
   ========================================================= */
.stacking-section {
    padding: 90px 0 110px;
    background: var(--bg-warm);
    position: relative;
}

.stack-container {
    max-width: 1080px;
    margin: 0 auto;
    position: relative;
}

.stack-card {
    position: sticky;
    background: #FFFFFF;
    border: 2px solid var(--border-hand);
    border-radius: 40px 20px 40px 20px;
    padding: 52px 48px;
    margin-bottom: 45px;
    box-shadow: var(--shadow-stack), var(--shadow-card);
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 44px;
    align-items: center;
    transition: transform 0.3s ease;
}

.stack-card:nth-child(1) { top: 110px; z-index: 1; }
.stack-card:nth-child(2) { top: 138px; z-index: 2; background: #FFFCFE; border-color: rgba(154, 0, 130, 0.32); }
.stack-card:nth-child(3) { top: 166px; z-index: 3; background: #FDF7FC; border-color: var(--lof-magenta); }
.stack-card:nth-child(4) { top: 194px; z-index: 4; background: #FFFFFF; border-color: var(--lof-ochre); }

/* =========================================================
   EFECTO 3: HORIZONTAL / PINNED SHOWCASE EN NOSOTROS Y SERVICIOS
   ========================================================= */
.pinned-split {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 55px;
    align-items: start;
}

.pinned-title-col {
    position: sticky;
    top: 130px;
}

/* Listas y etiquetas */
.check-list {
    list-style: none;
    margin: 18px 0 22px;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
    font-size: 0.96rem;
    color: var(--text-charcoal);
    font-weight: 500;
}

.check-list li::before {
    content: '✺';
    position: absolute;
    left: 0;
    color: var(--lof-magenta);
    font-weight: bold;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-item {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px 8px 20px 8px;
    background: var(--lof-magenta-soft);
    color: var(--lof-magenta-dark);
}

/* Fotos con borde líquido artesanal */
.blob-photo {
    width: 100%;
    height: 360px;
    object-fit: cover;
    animation: morphBlob 11s ease-in-out infinite;
    border: 3.5px solid var(--lof-magenta);
    box-shadow: var(--shadow-card);
}

@keyframes morphBlob {
    0% { border-radius: 62% 38% 34% 66% / 58% 34% 66% 42%; }
    50% { border-radius: 35% 65% 63% 37% / 46% 62% 38% 54%; }
    100% { border-radius: 62% 38% 34% 66% / 58% 34% 66% 42%; }
}

/* Preguntas Frecuentes */
.faq-item {
    background: #fff;
    border: 1.5px solid var(--border-hand);
    border-radius: 24px 12px 24px 12px;
    padding: 24px 28px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}

.faq-item summary {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
}

.faq-item summary::after {
    content: '+';
    color: var(--lof-magenta);
    font-size: 1.5rem;
}

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

/* Formulario */
.ritual-form-card {
    background: #fff;
    border: 2px solid var(--lof-magenta);
    border-radius: 40px 16px 40px 16px;
    padding: 42px;
    box-shadow: var(--shadow-card);
}

.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 0.92rem; }
.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 16px 8px 16px 8px;
    background: var(--bg-paper);
    border: 1.5px solid var(--border-hand);
    font-family: inherit;
    font-size: 0.96rem;
}
.form-control:focus { outline: none; border-color: var(--lof-magenta); background: #fff; }

/* Footer */
.site-footer {
    background: #23152B;
    color: #F6F0F8;
    padding: 80px 0 35px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h4 { color: #fff; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: #D5C6DF; }
.footer-col a:hover { color: #fff; padding-left: 5px; }

.wa-ritual {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--grad-lof);
    color: #fff;
    padding: 14px 26px;
    border-radius: 30px 12px 30px 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 12px 30px rgba(154, 0, 130, 0.45);
    z-index: 9999;
}

@media (max-width: 960px) {
    .hero-grid, .scrolly-wrapper, .stack-card, .pinned-split, .footer-grid {
        grid-template-columns: 1fr;
    }
    .scrolly-sticky-left, .stack-card, .pinned-title-col {
        position: relative;
        top: 0 !important;
    }
    .scrolly-step-card {
        opacity: 1;
        transform: none;
    }
    .main-nav { display: none; }
}
/* Estilos Menú Móvil Responsivo */
.mobile-menu-btn {
    display: none;
    background: var(--lof-magenta-soft);
    border: 1.5px solid var(--lof-magenta);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2.5px;
    background: var(--lof-magenta);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.is-open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.mobile-menu-btn.is-open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.is-open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

.mobile-only-cta {
    display: none;
}

@media (max-width: 960px) {
    .nav-capsule {
        position: relative;
        padding: 10px 20px;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .desktop-only-cta {
        display: none;
    }
    .mobile-only-cta {
        display: block;
        width: 100%;
        margin-top: 8px;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        background: #FFFFFF;
        border: 2px solid var(--lof-magenta);
        border-radius: 28px;
        padding: 24px;
        box-shadow: 0 20px 45px rgba(35, 27, 40, 0.18);
        z-index: 9999;
    }
    .main-nav.is-open {
        display: block;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    .main-nav a {
        font-size: 1.1rem;
        display: block;
        width: 100%;
    }
}