/* 
   One More Drop - Central Stylesheet
   Design: Minimalist, Premium, Responsive
   Colors: Dark Green (#124734), Gold (#D5A021), Grey (#7A7A7A)
*/

:root {
    --primary-color: #124734;
    --secondary-color: #D5A021;
    --text-grey: #7A7A7A;
    --text-dark: #1a1a1a;
    --bg-white: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #121212;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 130px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.mobile-only {
    display: none;
}

.section {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-white {
    color: #fff;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-dark {
    background-color: var(--primary-color);
}

/* Dark green for dark sections */

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

#header-logo {
    height: 80px;
}

#main-nav ul {
    display: flex;
    gap: 2rem;
}

#main-nav ul a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color);
}

#main-nav ul a:hover {
    color: var(--secondary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#lang-toggle {
    background: none;
    border: 1px solid var(--primary-color);
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    cursor: pointer;
    border-radius: 4px;
    color: var(--primary-color);
}

#lang-toggle:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Hero Section */
.hero {
    height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    background: linear-gradient(rgba(18, 71, 52, 0.6), rgba(18, 71, 52, 0.4)), url('../Imagenes/hero-bg.png') center/cover no-repeat;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero h1 {
    font-size: 2.8rem;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero .tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero .subtext {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.hero .narrative-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.glass-card {
    background: rgba(18, 71, 52, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 900px;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(18, 71, 52, 0.2);
}

.btn-gold {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn-gold:hover {
    background-color: #b88a1c;
    transform: translateY(-3px);
}

.btn-white {
    background-color: #ffffff;
    color: var(--primary-color);
}

.btn-white:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(18, 71, 52, 0.2);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-visual img {
    max-width: 400px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
}



/* Impact Section */
.impact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    margin-top: 3rem;
}

.testimonials-slider {
    flex: 1;
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.testimonials-slider blockquote {
    margin-bottom: 3rem;
}

.counter-section {
    flex: 0 0 auto;
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.collaboration-text .section-title {
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.collaboration-text .section-title::after {
    bottom: -5px;
    /* Raise the line closer to text */
    left: 0;
    transform: none;
    /* Align left since text is left-aligned in this section */
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.story-featured {
    font-size: 1.4rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 2rem;
    display: block;
}

.story-content p {
    margin-bottom: 1.5rem;
}

.expandable-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.expandable-content.open {
    max-height: 1000px;
}

/* Features/How it works */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
}

.feature-card {
    background-color: transparent;
    perspective: 1000px;
    height: 400px;
    /* Fixed height is necessary for 3D positioning */
}

.feature-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.feature-card:hover .feature-card-inner {
    transform: rotateY(180deg);
}

.feature-card-front,
.feature-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.feature-card-front {
    background-color: #fff;
    color: #fff;
    /* White text for contrast against images */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Semi-transparent overlay to ensure text readability */
.feature-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
    border-radius: 20px;
    z-index: 1;
}

/* Ensure content sits above overlay on front */
.feature-card-front>* {
    z-index: 2;
}

.card-1 .feature-card-front {
    background-image: url('../Imagenes/ImgCard1.png');
}

.card-2 .feature-card-front {
    background-image: url('../Imagenes/ImgCard2.png');
}

.card-3 .feature-card-front {
    background-image: url('../Imagenes/ImgCard3.png');
}

.feature-card-back {
    background-color: #fff;
    /* White background for back */
    color: var(--text-dark);
    transform: rotateY(180deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Shadow for depth */
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--secondary-color);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    /* Text shadow for better visibility */
    margin: 0;
}

.feature-card-back p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.counter-box {
    background: var(--primary-color);
    color: #fff;
    padding: 3rem;
    border-radius: 30px;
    display: inline-block;
    min-width: 300px;
}

.counter-number {
    font-size: 4rem;
    font-weight: 700;
    display: block;
    color: var(--secondary-color);
}

/* Form */
.collaboration-flex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border-radius: 8px;
    font-family: inherit;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

textarea {
    height: 150px;
    resize: none;
}

/* Footer */
footer {
    padding: 50px 0;
    border-top: 1px solid #eee;
}

.footer-logo {
    height: 40px;
    margin: 0 auto 1.5rem;
    opacity: 0.8;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-container {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        order: -1;
        margin-bottom: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .impact-content {
        flex-direction: column;
        text-align: center;
    }

    .collaboration-flex {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    #main-nav {
        display: none;
    }

    /* Mobile menu logic to be added in JS */
    .section {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .mobile-only {
        display: block;
    }

    /* Mobile Header & Menu */
    .header-container {
        padding: 1rem 1.5rem;
    }

    #menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    #menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: var(--primary-color);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* Menu Toggle Animation */
    #menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    #menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Main Nav Mobile */
    #main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%);
        transition: transform 0.4s ease-in-out;
        z-index: 999;
        display: flex;
        /* Override previous display:none if set or just ensure flex */
    }

    #main-nav.active {
        transform: translateY(0);
        display: flex;
    }

    #main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    #main-nav ul a {
        font-size: 1.5rem;
        font-weight: 600;
    }

    /* Hero Fixes */
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 140px;
        /* More padding for fixed header */
        padding-bottom: 50px;
    }
}

/* Custom Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(18, 71, 52, 0.9);
    padding: 2.5rem 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.modal-content button {
    min-width: 150px;
}