@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --bg-main: #e9e9e6;
    --text-main: #111827;
    --accent: #2563eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.1;
}

.title-xl {
    font-size: clamp(3.5rem, 7vw, 7rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.title-lg {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
}

.title-md {
    font-size: clamp(1.5rem, 3.5vw, 3rem);
}

.text-sm {
    font-size: 0.875rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.text-dimmed {
    color: inherit;
    opacity: 0.7;
    font-weight: 400;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5vw;
}

.block {
    display: block;
}

.relative {
    position: relative;
}

.center {
    text-align: center;
}

section {
    padding: 20vh 0;
}

/* Flex Row Architectures */
.site-flex-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
}

.site-flex-row.align-center {
    align-items: center;
}

.icon-title-text-column {
    flex: 1;
    min-width: 250px;
}

.sticky-track {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    gap: 40vh;
    margin-left: auto;
}

/* Header */
.page-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 5vw;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    pointer-events: none;
}

.page-header .logo-inner,
.page-header .navigation-col {
    pointer-events: auto;
}



.logo-inner {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    letter-spacing: normal;
}

/* Buttons */
.primary-btn, .primary-btn * {
    color: #111827 !important;
}
.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: #fff;
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: transform 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
}

.primary-btn .wa-icon {
    margin-right: 0.5rem;
    display: inline-block;
}

.text-icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.text-icon-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Hero Section */
.home-intro-section {
    display: flex;
    align-items: center;
    padding-top: 25vh;
    padding-bottom: 10vh;
}

/* Animation Classes */
.row-skew-reveal .line {
    overflow: hidden;
}

.stagger-elem {
    opacity: 0;
    transform: translateY(30px);
}

.scale-hero-reveal {
    transform: scale(0.9);
    opacity: 0;
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(6px); opacity: 1; }
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(128, 128, 128, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.card-num {
    font-family: 'Barlow', sans-serif;
    font-weight: 900;
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

#how-we-do-it-pin {
    height: 100vh;
    display: flex;
    align-items: center;
}

.pin-title {
    margin-bottom: 8rem;
}

.bg-padre-hija {
    background-position: center;
}

.bg-empresaria {
    background-position: center;
}

.bar-img-container {
    width: 100%;
    height: 600px;
    border-radius: 20px;
    background-position: center;
}

.bar-bubble {
    position: absolute;
    top: -5%;
    left: -5%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border-bottom-right-radius: 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    max-width: 250px;
    border: 1px solid rgba(255,255,255,0.8);
    z-index: 10;
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    font-size: 0.95rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .site-flex-row {
        flex-direction: column;
    }
    .sticky-col {
        position: relative !important;
        top: 0 !important;
    }
    .sticky-track {
        flex: 1 1 100%;
        gap: 5vh;
        margin-left: 0;
        margin-top: 4rem;
    }
}

.mobile-break { display: none; }
.desktop-break { display: block; }

@media (max-width: 768px) {
    .mobile-break { display: block; }
    .desktop-break { display: none; }
    
    .hero-title-wrapper .scroll-indicator {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        margin-top: 3rem !important;
        justify-content: flex-start !important;
    }

    section {
        padding: 12vh 0 !important;
    }
    section[style*="height: 70vh"] {
        height: 40vh !important;
    }
    .home-intro-section {
        padding-top: 15vh !important;
        padding-bottom: 5vh !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }
    #how-we-do-it-pin {
        height: auto;
        min-height: 100vh;
        display: block;
        padding: 12vh 0 !important;
    }
    .pin-title {
        margin-bottom: 2rem;
    }
    .bg-padre-hija {
        background-position: 60% center;
    }
    .bg-empresaria {
        background-position: 70% center;
    }
    .bar-img-container {
        height: 350px;
        margin-top: 2rem;
    }
    .bar-bubble {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        max-width: 90%;
        width: 90% !important;
        margin: -3rem auto 0 auto !important;
        padding: 1.5rem !important;
        transform: none !important;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .grid-2, .grid-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .title-xl {
        font-size: clamp(3rem, 13vw, 5.5rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 1rem;
        letter-spacing: -0.05em !important;
    }
    .title-lg {
        font-size: clamp(2.2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .page-header {
        padding: 1rem 5vw;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }
    .page-header .primary-btn {
        padding: 0;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 44px;
    }
    .page-header .primary-btn .btn-text {
        display: none !important;
    }
    .page-header .primary-btn .wa-icon {
        margin-right: 0 !important;
        width: 24px;
        height: 24px;
    }

    .pin-thought-bubble {
        position: relative !important;
        top: auto !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 90% !important;
        max-width: none !important;
        margin: 2vh auto 28vh auto !important;
        transform: none !important;
    }
    .pin-thought-bubble p {
        font-size: 0.95rem !important;
    }
    .card {
        padding: 2.5rem 1.5rem !important;
    }
}
