/* ========================================
   OLMOS AMBIENTAL - Mobile First Stylesheet
   Theme: Flora & Water Preservation
   ======================================== */

:root {
    --green-900: #0d3b1e;
    --green-800: #14532d;
    --green-700: #166534;
    --green-600: #16a34a;
    --green-500: #22c55e;
    --green-400: #4ade80;
    --green-300: #86efac;
    --green-200: #bbf7d0;
    --green-100: #dcfce7;
    --green-50: #f0fdf4;

    --water-900: #0c4a6e;
    --water-700: #0369a1;
    --water-600: #0284c7;
    --water-500: #0ea5e9;
    --water-400: #38bdf8;
    --water-300: #7dd3fc;
    --water-200: #bae6fd;
    --water-100: #e0f2fe;

    --neutral-900: #1a1a2e;
    --neutral-800: #2d2d44;
    --neutral-700: #404058;
    --neutral-600: #6b7280;
    --neutral-500: #9ca3af;
    --neutral-400: #d1d5db;
    --neutral-300: #e5e7eb;
    --neutral-200: #f3f4f6;
    --neutral-100: #f9fafb;

    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
    --shadow-xl: 0 20px 40px -5px rgba(0,0,0,0.1);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--neutral-800);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
    color: var(--neutral-900);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo img {
    height: 45px;
    width: auto;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--green-800);
    transition: var(--transition);
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    display: flex;
    flex-direction: column;
    padding: 100px 30px 30px;
    gap: 8px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}

.nav.open {
    right: 0;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--neutral-800);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--green-50);
    color: var(--green-700);
}

.nav-link.active-cta {
    background: var(--green-700);
    color: var(--white);
    text-align: center;
    margin-top: 8px;
}

.nav-link.active-cta:hover {
    background: var(--green-800);
    color: var(--white);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.nav-overlay.visible {
    opacity: 1;
    pointer-events: all;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 30%, var(--water-900) 70%, var(--green-900) 100%);
    overflow: hidden;
    padding-top: 70px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(34,197,94,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(14,165,233,0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(34,197,94,0.1) 0%, transparent 50%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: float linear infinite;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-20vh) rotate(720deg); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 0 100px;
}

.hero h1 {
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 20px;
    font-weight: 700;
}

.hero h1 span {
    display: block;
    color: var(--green-300);
    font-weight: 400;
    font-style: italic;
    font-size: 0.75em;
    margin-top: 8px;
}

.hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    max-width: 550px;
    margin: 0 auto 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-xl);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--green-600), var(--green-700));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(22,163,74,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(22,163,74,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.7);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border: 2px solid #25D366;
    display: inline-flex;
    align-items: center;
}

.btn-whatsapp:hover {
    background: #1ebe5a;
    border-color: #1ebe5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37,211,102,0.4);
}

.btn-white {
    background: var(--white);
    color: var(--green-800);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.btn-full {
    width: 100%;
}

/* ===== Section Styles ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--green-600);
    margin-bottom: 12px;
    font-family: 'Montserrat', sans-serif;
}

.section-header h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--neutral-900);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--neutral-600);
    max-width: 500px;
    margin: 0 auto;
}

/* ===== Features ===== */
.features {
    padding: 60px 0;
    background: var(--white);
    margin-top: -30px;
    position: relative;
    z-index: 4;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-300);
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--green-300);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--green-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-600);
}

.feature-icon svg {
    width: 26px;
    height: 26px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--neutral-600);
}

/* ===== About ===== */
.about {
    padding: 80px 0;
    background: var(--green-50);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.about-lead {
    font-size: 1.1rem;
    color: var(--neutral-800);
    margin-bottom: 16px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--neutral-700);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--green-200);
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-700);
    display: inline;
}

.stat-suffix {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-700);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--neutral-600);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-image {
    position: relative;
    display: none;
}

.about-image-decoration {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--green-300);
    border-radius: var(--radius-lg);
    z-index: 0;
}

.about-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ===== Services ===== */
.services {
    padding: 80px 0;
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-card {
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-300);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--green-500), var(--water-500));
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    border-color: var(--green-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--green-50), var(--water-100));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-700);
    margin-bottom: 16px;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--neutral-900);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--neutral-600);
    line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--green-800), var(--water-900));
    text-align: center;
    position: relative;
}

.cta-wave-top, .cta-wave-bottom {
    position: absolute;
    left: 0;
    right: 0;
}

.cta-wave-top {
    top: -1px;
}

.cta-wave-bottom {
    bottom: -1px;
}

.cta-wave-top svg, .cta-wave-bottom svg {
    display: block;
    width: 100%;
    height: 30px;
}

.cta-section h2 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.cta-section p {
    color: rgba(255,255,255,0.85);
    max-width: 550px;
    margin: 0 auto 32px;
    font-size: 0.95rem;
}

/* ===== Team ===== */
.team {
    padding: 80px 0;
    background: var(--white);
}

.team-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.team-lead {
    text-align: center;
    padding: 40px 24px;
    background: linear-gradient(135deg, var(--green-50), var(--water-100));
    border-radius: var(--radius-lg);
}

.team-lead-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-600), var(--water-600));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.team-lead h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.team-lead-role {
    display: block;
    font-size: 0.9rem;
    color: var(--green-700);
    font-weight: 600;
    margin-bottom: 16px;
}

.team-lead p {
    font-size: 0.9rem;
    color: var(--neutral-700);
    max-width: 450px;
    margin: 0 auto;
}

.team-areas h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
}

.team-areas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.team-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--neutral-100);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.team-area:hover {
    background: var(--green-50);
    transform: translateY(-2px);
}

.team-area-icon {
    width: 44px;
    height: 44px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-600);
    box-shadow: var(--shadow-sm);
}

.team-area-icon svg {
    width: 22px;
    height: 22px;
}

.team-area span {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
    color: var(--neutral-800);
}

/* ===== Contact ===== */
.contact {
    padding: 80px 0;
    background: var(--green-50);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-form {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    border: 1.5px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--neutral-800);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(34,197,94,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--neutral-500);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-feedback {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    display: none;
}

.form-feedback.success {
    display: block;
    background: var(--green-100);
    color: var(--green-800);
    border: 1px solid var(--green-300);
}

.form-feedback.error {
    display: block;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-300);
    transition: var(--transition);
}

.contact-info-card:hover {
    border-color: var(--green-300);
    box-shadow: var(--shadow-md);
}

.contact-info-card.highlight {
    background: linear-gradient(135deg, var(--green-700), var(--water-900));
    border: none;
    color: var(--white);
}

.contact-info-card.highlight h4,
.contact-info-card.highlight p {
    color: var(--white);
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--green-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-600);
}

.contact-info-card.highlight .contact-info-icon {
    background: rgba(255,255,255,0.15);
    color: var(--white);
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
}

.contact-info-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info-card p,
.contact-info-card a {
    font-size: 0.85rem;
    color: var(--neutral-600);
    line-height: 1.6;
}

.contact-info-card a:hover {
    color: var(--green-600);
}

/* ===== Footer ===== */
.footer {
    background: var(--neutral-900);
    padding: 60px 0 0;
    position: relative;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--neutral-500);
    line-height: 1.7;
}

.footer-links h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links a {
    display: block;
    font-size: 0.85rem;
    color: var(--neutral-500);
    padding: 4px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--green-400);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--neutral-600);
}

/* ===== Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE — Tablet ===== */
@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }
}

/* ===== RESPONSIVE — Desktop ===== */
@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .menu-toggle {
        display: none;
    }

    .nav {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        flex-direction: row;
        padding: 0;
        gap: 4px;
        box-shadow: none;
        background: transparent;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .nav-link.active-cta {
        margin-top: 0;
        margin-left: 8px;
    }

    .hero h1 {
        font-size: 3.4rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-wave svg {
        height: 100px;
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 60px;
    }

    .about-image {
        display: block;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-wave-top svg, .cta-wave-bottom svg {
        height: 50px;
    }

    .team-content {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .contact-content {
        grid-template-columns: 1.2fr 0.8fr;
    }

    .contact-form {
        padding: 40px;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

/* ===== RESPONSIVE — Large Desktop ===== */
@media (min-width: 1280px) {
    .hero h1 {
        font-size: 3.8rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }
}
