:root {
    --primary: #5A3A31;
    --primary-light: #8C5E50;
    --secondary: #E89A78;
    --accent: #F4B8B4;
    --soft-sage: #FAD3C3;
    --bg: #FDF6F4;
    --bg-card: #FAF0EC;
    --white: #FFFFFF;
    --text: #422922;

    --grad-brown: linear-gradient(135deg, #7A4E40, #4A2B23);
    --grad-warm: linear-gradient(135deg, #F4B8B4, #E89A78, #A66E5B);
    --grad-btn: linear-gradient(135deg, #E89A78, #8C5E50);

    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-sm: 12px;

    --transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --shadow-sm: 0 8px 24px rgba(90, 58, 49, 0.06);
    --shadow-md: 0 16px 36px rgba(90, 58, 49, 0.1);
    --shadow-lg: 0 24px 60px rgba(90, 58, 49, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    background-image: radial-gradient(var(--accent) 0.6px, transparent 0.6px);
    background-size: 36px 36px;
    color: var(--text);
    line-height: 1.85;
    overflow-x: hidden;
    min-width: 513px;
    position: relative;
}

#leaves-container {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
pointer-events: none;
z-index: 999;
overflow: hidden;
}

.leaf {
    position: absolute;
    top: -110px;
    width: 28px;
    height: 90px;
    opacity: 0.5;
    animation: fall linear infinite, sway ease-in-out infinite alternate;
    filter: drop-shadow(0 2px 5px rgba(90, 58, 49, 0.12));
}

.leaf svg path.foliage { fill: var(--accent); }
.leaf.color-1 svg path.foliage { fill: var(--accent); }
.leaf.color-2 svg path.foliage { fill: var(--secondary); }
.leaf.color-3 svg path.foliage { fill: var(--primary-light); }

@keyframes fall {
    0% { top: -110px; }
    100% { top: 108vh; }
}

@keyframes sway {
    0% { transform: translateX(0) rotate(-20deg); }
    100% { transform: translateX(45px) rotate(150deg); }
}

nav {
    background: rgba(253, 246, 244, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1.2rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 15px;
    z-index: 1000;
    margin: 0 auto;
    width: 92%;
    max-width: 1300px;
    border-radius: 50px;
    border: 1px solid rgba(244, 184, 180, 0.45);
    box-shadow: var(--shadow-sm);
}
.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--primary); text-decoration: none; font-weight: 700; transition: 0.3s; }
.nav-links { display: flex; gap: 1rem; }
.nav-links a { text-decoration: none; color: var(--primary); padding: 0.6rem 1.4rem; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.5px; transition: 0.3s; border-radius: 30px; }
.nav-links a:hover { color: var(--white); background: var(--secondary); }

section { padding: 5rem 10%; position: relative; z-index: 2; }
.container { max-width: 1200px; margin: 0 auto; }

.wave-container {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 4rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(244, 184, 180, 0.4);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
    transform: scale(1.12) rotate(6deg);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.6);
    color: #FFF;
}
.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: white;
}

footer {
    background: var(--grad-brown);
    color: #FDF0EC;
    padding: 4rem 10% 2rem;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}
.footer-grid h4 {
    color: var(--accent);
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}
.footer-grid p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
    color: #FDF0EC;
}
.social-bar { display: flex; gap: 1.2rem; margin-top: 1.2rem; }
.social-icon { width: 24px; height: 24px; filter: invert(85%) sepia(20%) saturate(300%) hue-rotate(330deg); transition: 0.3s; opacity: 0.85; }
.social-icon:hover { transform: translateY(-4px) scale(1.1); filter: invert(100%); opacity: 1; }

@media (max-width: 850px) {
    nav { width: 95%; top: 10px; padding: 0.8rem 1.5rem; }
    section { padding: 3rem 5%; }
    .wave-container { padding: 2rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .social-bar { justify-content: center; }
    #leaves-container { display: none; }
}
        @media (max-width: 1300px) {
            .nav-links a[href="index.html#faq"], .nav-links a[href="index.html#resenas"] { display: none; }
            .nav-links a[href="index.html#contacto"] { display: inline-block; }
        }
        @media (max-width: 965px) {
            .nav-links a[href="index.html#faq"], .nav-links a[href="index.html#resenas"], .nav-links a[href="index.html#especialidades"], .nav-links a[href="index.html#enfoque"] { display: none; }
            .nav-links a[href="index.html#contacto"] { display: inline-block; }
        }
