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

:root {
    /* New Palette */
    --primary-gradient: linear-gradient(135deg, #001f24 0%, #004d40 100%);
    /* Deep Blue to Emerald */
    --accent: #2e8b57;
    /* Emerald Greenish Accent */
    --accent-glow: #4ade80;
    /* Brighter for glow */
    --gold: #d4af37;
    /* Keeping subtle gold for logo/highlights if needed */

    --text-light: #f1f5f9;
    --text-muted: #cbd5e1;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary-gradient);
    background-color: #001f24;
    /* Fallback */
    background-attachment: fixed;
    /* Parallax-like fix */
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

canvas#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    pointer-events: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

/* Header & Nav */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 31, 36, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    transition: var(--transition);
}

.glass-header .container {
    max-width: 95%;
    padding: 0 1.5rem;
}

.glass-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.logo span {
    color: var(--accent-glow);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.mobile-toggle {
    display: none;
    cursor: pointer;
    color: var(--text-light);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    /* Taller hero */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #a7f3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Glow Button */
.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
}

.btn-glow {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--accent-glow);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-glow);
    z-index: -1;
    transition: transform 0.4s ease;
    transform: scaleX(0);
    transform-origin: right;
}

.btn-glow:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-glow:hover {
    color: #001f24;
    box-shadow: 0 0 25px rgba(74, 222, 128, 0.6);
}

/* 5 Pillars (Grid) */
#pilares {
    padding-top: 2rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-panel:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

.icon-emerald {
    color: var(--accent-glow);
    margin-bottom: 1rem;
    width: 32px;
    height: 32px;
}

.pillar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.pillar-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Protocols Grid */
.protocols-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Default 3 columns */
    gap: 2rem;
    margin-top: 3rem;
}

.glass-panel-hover {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    /* Stronger blur */
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-panel-hover:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-glow);
}

.protocol-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.protocol-card .highlight {
    color: var(--accent-glow);
    font-weight: 400;
}

.protocol-desc {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.protocol-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

.protocol-features li i {
    width: 18px;
    height: 18px;
    margin-top: 3rem;
}

.white-card {
    background: #ffffff;
    border-radius: 16px;
    /* Smooth corners */
    overflow: hidden;
    /* For image crop */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.white-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.card-image {
    width: 100%;
    height: 200px;
    /* Fixed height for consistency */
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crop to fit */
    transition: transform 0.5s ease;
}

.white-card:hover .card-image img {
    transform: scale(1.1);
    /* Zoom effect */
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.white-card h3 {
    color: #001f24;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.white-card .protocol-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    border: none;
    padding: 0;
}

/* Action Button Gradient Blue/Green */
.btn-card {
    display: block;
    width: 100%;
    padding: 12px 0;
    text-align: center;
    background: linear-gradient(135deg, #004d40 0%, #001f24 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: var(--transition);
    text-decoration: none;
    margin-top: auto;
}

.btn-card:hover {
    background: linear-gradient(90deg, #00695c 0%, #003333 100%);
    box-shadow: 0 5px 15px rgba(0, 77, 64, 0.3);
}

/* Mobile Responsive Adjustments */
@media (max-width: 992px) {
    .protocols-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .protocols-grid {
        grid-template-columns: 1fr;
        /* 1 column mobile */
    }
}

/* Footer structure */
footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-info h3 span {
    color: var(--accent-glow);
}

.footer-details p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0px 6px 25px rgba(37, 211, 102, 0.6);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(0, 31, 36, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-toggle {
        display: block;
        z-index: 1001;
        /* Above nav menu */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-details p {
        justify-content: center;
    }
}

/* Section Description Text */
.section-desc {
    max-width: 800px;
    margin: 1.5rem auto 1rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.section-desc p {
    margin-bottom: 1rem;
}

.section-desc p:last-child {
    margin-bottom: 0;
}

/* How it Works Section */
#como-funciona {
    position: relative;
    /* ensure z-index context if needed */
}

.steps-container {
    max-width: 900px;
    margin: 3rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition);
}

.step-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
    border-color: var(--accent-glow);
}

.step-number {
    background: var(--accent);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(46, 139, 87, 0.5);
}

.step-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.quote-container {
    margin: 4rem 0 3rem;
}

.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: 600;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    border-left: 4px solid var(--accent-glow);
    padding-left: 1.5rem;
}

.specialists-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.specialist-card {
    text-align: center;
}

.specialist-avatar {
    width: 100px;
    height: 100px;
    background: var(--glass-bg);
    border: 2px solid var(--accent-glow);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.specialist-avatar i {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
}

.specialist-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    /* Enlarge to hide borders */
}

#camila-img {
    object-position: top;
}

.specialist-card h4 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
}

.specialist-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-item:hover {
        transform: translateY(-5px);
    }
}