/* ============================================
   MI CRIANZA FELIZ — SHARED STYLES
   Used across all pages (homepage, legal, contact)
   ============================================ */

/* --- VARIABLES --- */
:root {
    --teal: #588973;
    --teal-light: #6a9e88;
    --teal-dark: #3d6b55;
    --coral: #EFB79E;
    --coral-light: #f5d0be;
    --coral-dark: #d4956f;
    --yellow: #FAE381;
    --yellow-light: #fceeb0;
    --yellow-dark: #e8c94d;
    --olive: #BCC778;
    --olive-light: #d1d99e;
    --olive-dark: #9aab4e;
    --blue: #94BDD3;
    --blue-light: #b5d4e4;
    --blue-dark: #6a9db8;
    --brown: #B77D51;
    --brown-light: #d4a47d;
    --brown-dark: #8f5c34;
    --dark: #1F1E1E;
    --text-primary: #2a2a2a;
    --text-secondary: #5a5a5a;
    --text-light: #888888;
    --bg-cream: #FFF9F0;
    --bg-white: #FFFFFF;
    --bg-teal-soft: #e8f2ed;
    --bg-coral-soft: #fdf0ea;
    --bg-yellow-soft: #fef9e6;
    --bg-blue-soft: #edf5f9;
    --bg-olive-soft: #f2f4e6;
    --font-main: 'Work Sans', sans-serif;
    --section-padding: clamp(60px, 10vw, 120px);
    --container-max: 1200px;
    --container-padding: clamp(20px, 5vw, 40px);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 48px;
    --shadow-soft: 0 4px 24px rgba(31, 30, 30, 0.06);
    --shadow-medium: 0 8px 40px rgba(31, 30, 30, 0.10);
    --shadow-lift: 0 12px 48px rgba(31, 30, 30, 0.14);
}

/* --- RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-main); color: var(--text-primary); background: var(--bg-cream); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding); }

/* --- ANIMATIONS --- */
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(3deg); } }
@keyframes floatSlow { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(-2deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.7; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.deco { position: absolute; pointer-events: none; z-index: 0; }

/* --- BUTTONS --- */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--teal); color: white; padding: 16px 36px; border-radius: 50px;
    font-family: var(--font-main); font-size: 1rem; font-weight: 600;
    border: none; cursor: pointer; transition: all 0.3s ease;
    box-shadow: 0 6px 24px rgba(88, 137, 115, 0.35);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-3px); box-shadow: 0 10px 36px rgba(88, 137, 115, 0.45); }
.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: white; color: var(--teal); padding: 16px 36px; border-radius: 50px;
    font-family: var(--font-main); font-size: 1rem; font-weight: 600;
    border: 2px solid var(--teal); cursor: pointer; transition: all 0.3s ease;
}
.btn-secondary:hover { background: var(--bg-teal-soft); transform: translateY(-3px); box-shadow: var(--shadow-medium); }

/* --- NAVIGATION --- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255, 249, 240, 0.92);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(31, 30, 30, 0.08); background: rgba(255, 249, 240, 0.97); }
.nav-inner {
    max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-padding);
    display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { height: 56px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
    font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
    transition: color 0.3s ease; position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--coral); border-radius: 2px; transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
    background: var(--teal) !important; color: white !important;
    padding: 10px 24px !important; border-radius: 50px;
    font-weight: 600 !important; font-size: 0.85rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(88, 137, 115, 0.3);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--teal-dark) !important; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(88, 137, 115, 0.4); }
.nav-toggle {
    display: none; background: none; border: none; cursor: pointer;
    width: 32px; height: 24px; position: relative; z-index: 1001;
}
.nav-toggle span {
    display: block; width: 100%; height: 2.5px; background: var(--dark);
    border-radius: 2px; transition: all 0.3s ease; position: absolute; left: 0;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav-toggle span:nth-child(3) { bottom: 0; }
.nav-toggle.active span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-logo-img { height: 44px; }
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; max-width: 360px;
        height: 100vh; background: var(--bg-cream); flex-direction: column;
        justify-content: center; gap: 28px; padding: 40px;
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    }
    .nav-links.open { right: 0; }
    .nav-links a { font-size: 1.1rem; }
    .nav-overlay {
        position: fixed; inset: 0; background: rgba(0,0,0,0.3);
        opacity: 0; pointer-events: none; transition: opacity 0.4s ease; z-index: 999;
    }
    .nav-overlay.active { opacity: 1; pointer-events: all; }
}

/* --- FOOTER --- */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand .footer-logo-text { font-weight: 700; font-size: 1.1rem; color: white; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; transition: all 0.3s ease;
}
.footer-social a:hover { background: var(--teal); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; fill: white; }
.footer-col h4 { color: white; font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 0.88rem; transition: color 0.3s ease; }
.footer-col ul a:hover { color: white; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px; font-size: 0.8rem;
}
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- WAVE DIVIDERS --- */
.wave-divider { position: relative; width: 100%; overflow: hidden; line-height: 0; margin-top: -1px; }
.wave-divider svg { width: 100%; height: auto; display: block; }

/* --- SECTION SHARED --- */
.section-eyebrow {
    text-align: center; font-size: 0.85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px;
}
.section-title {
    text-align: center; font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700; color: var(--dark); margin-bottom: 48px;
}
.section-sub { text-align: center; font-size: 1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto 48px; }

/* --- SCROLLBAR --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-cream); }
::-webkit-scrollbar-thumb { background: var(--teal-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }
