/* =======================================================
   1. VARIABLES GLOBALES Y RESET
   ======================================================= */
:root {
    /* Paleta Agraria Premium */
    --primary-green: #2ecc71;
    --primary-green-dark: #1a472a;
    --primary-green-hover: #27ae60;
    --green-olive: #556B4D;
    --terracota: #D97634;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #F5F3E8;
    --bg-white: #ffffff;
    --bg-gray: #f3f4f6;
    --footer-bg: #0f1419;
    --text-footer: #e5e7eb;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== ANIMACIONES GLOBALES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(46, 204, 113, 0.6);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Clases Utilitarias */
.container {
    margin: 0 auto;
}

.green {
    color: var(--primary-green);
    font-weight: bold;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
}

p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}


/* =======================================================
   2. HEADER Y NAVEGACIÓN
   ======================================================= */
header {
    position: sticky;
    top: 0;
    background: rgba(15, 20, 25, 0.92);
    backdrop-filter: blur(20px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(46, 204, 113, 0.1);
    animation: fadeInDown 0.6s ease;
}

header img {
    max-height: 45px;
    transition: var(--transition);
    animation: fadeInScale 0.8s ease;
}

header img:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(46, 204, 113, 0.4));
}

.navbar {
    display: flex;
    gap: 2.5rem;
}

.navbar a {
    color: var(--text-footer);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--primary-green), var(--terracota));
    transition: var(--transition-smooth);
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.navbar a:hover,
.navbar a.active {
    color: var(--primary-green);
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

.menu-toggle {
    display: none;
    color: var(--text-footer);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.menu-toggle:hover {
    color: var(--primary-green);
}


/* =======================================================
   3. SECCIÓN: HOME PAGE
   ======================================================= */
.home-one {
    position: relative;
    width: 100%;
    height: 700px;
    background-image: url('./img/fondo1.jpg');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.home-one::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 71, 42, 0.4) 0%, rgba(217, 118, 52, 0.2) 100%);
    z-index: 1;
}

.home-one p {
    position: relative;
    z-index: 2;
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(15px);
    border-left: 5px solid var(--primary-green);
    border-radius: 0 15px 15px 0;
    color: white;
    padding: 30px;
    font-size: 22px;
    max-width: 40%;
    margin-left: 5%;
    line-height: 1.8;
    box-shadow: 0 20px 60px rgba(46, 204, 113, 0.2);
    animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-top: 2px solid rgba(46, 204, 113, 0.3);
}

/* Problemas (Home) */
.problema-moderno {
    background: #000000;
    text-align: center;
    margin: 80px auto;
    padding: 80px 5%;
    border-radius: 25px;
    box-shadow: 0 25px 60px rgba(220, 38, 38, 0.3);
    max-width: 1100px;
    border: 2px solid #dc2626;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.problema-moderno h2 {
    font-size: 2.8rem;
    color: #dc2626;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -1px;
}

.problema-moderno .subtitle {
    margin-bottom: 50px;
    font-size: 1.1rem;
    color: #f3f4f6;
}

.grid-problemas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.prob-item {
    background: rgba(31, 31, 31, 0.9);
    backdrop-filter: blur(10px);
    padding: 40px 25px;
    border-radius: 15px;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    border-bottom: 4px solid #dc2626;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease calc(0.1s * var(--item-index, 0)) both;
}

.prob-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.prob-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(220, 38, 38, 0.4);
    border-color: #dc2626;
}

.prob-item:hover::before {
    opacity: 1;
}

.prob-item i {
    font-size: 3rem;
    color: #dc2626;
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.prob-item:hover i {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(220, 38, 38, 0.6));
}

.prob-item p {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: bold;
    margin: 0;
    position: relative;
    z-index: 1;
}

.home-two {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    padding: 100px 5%;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.home-two img:first-child {
    width: 50%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(46, 204, 113, 0.2);
    transition: var(--transition-smooth);
    border: 2px solid rgba(46, 204, 113, 0.2);
}

.home-two img:first-child:hover {
    transform: scale(1.05);
    box-shadow: 0 50px 120px rgba(46, 204, 113, 0.35);
}

.home-two div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 40%;
}

.home-two div img {
    width: 120px;
    margin-bottom: 5px;
    transition: var(--transition);
}

.home-two div img:hover {
    transform: scale(1.1);
}

.home-two div p {
    font-size: 22px;
    color: var(--text-dark);
    width: 100%;
    line-height: 1.8;
}

.home-three {
    position: relative;
    width: 100%;
    min-height: 750px;
    background-image: url('./img/img1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 60px 5%;
    flex-wrap: wrap;
    gap: 2rem;
    overflow: hidden;
}

.home-three::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 71, 42, 0.5) 0%, rgba(217, 118, 52, 0.3) 100%);
    z-index: 1;
}

.home-three p {
    position: relative;
    z-index: 2;
    background: rgba(15, 20, 25, 0.92);
    backdrop-filter: blur(15px);
    color: white;
    padding: 30px;
    font-size: 22px;
    max-width: 35%;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(46, 204, 113, 0.25);
    border: 1px solid rgba(46, 204, 113, 0.2);
    line-height: 1.8;
    animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-three img {
    position: relative;
    z-index: 2;
    max-width: 40%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(46, 204, 113, 0.2);
    transition: var(--transition-smooth);
    border: 2px solid rgba(46, 204, 113, 0.2);
    animation: slideInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.home-three img:hover {
    transform: scale(1.05);
    box-shadow: 0 50px 120px rgba(46, 204, 113, 0.35);
}

.home-four {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 5%;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, transparent 100%);
    animation: fadeInUp 0.8s ease 0.5s both;
}

.home-four h3 {
    font-size: 2.5rem;
    color: var(--text-dark);
    font-weight: 800;
}


/* =======================================================
   4. SECCIÓN: SOSTENIBILIDAD
   ======================================================= */
.sost-one {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 80px 5%;
    animation: fadeInUp 0.8s ease both;
}

.sost-one img:first-child {
    width: 50%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(46, 204, 113, 0.2);
    transition: var(--transition-smooth);
    border: 2px solid rgba(46, 204, 113, 0.2);
}

.sost-one img:first-child:hover {
    transform: scale(1.05);
    box-shadow: 0 50px 120px rgba(46, 204, 113, 0.35);
}

.sost-one div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 50%;
}

.sost-one div img {
    width: 140px;
    margin-bottom: 20px;
    transition: var(--transition);
    filter: drop-shadow(0 5px 15px rgba(46, 204, 113, 0.2));
}

.sost-one div img:hover {
    transform: scale(1.1);
}

.sost-one div p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

.sost-two {
    text-align: center;
    padding: 60px 5%;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.05) 0%, transparent 100%);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.sost-two h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    font-weight: 800;
}

.sost-three {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 60px 5%;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.card {
    position: relative;
    width: 260px;
    height: 260px;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(46, 204, 113, 0.1);
}

.info-sost {
    border: 3px solid var(--primary-green);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, transparent 100%);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(46, 204, 113, 0.25);
}

.card:hover img {
    transform: scale(1.15) rotate(3deg);
    opacity: 0.25;
}

.card p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
    line-height: 1.4;
}

.card:hover p {
    opacity: 1;
}


/* =======================================================
   5. SECCIÓN: SOBRE NOSOTROS
   ======================================================= */
.aboutus-one,
.aboutus-two {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 5%;
    animation: fadeInUp 0.8s ease both;
}

.aboutus-two {
    flex-direction: row-reverse;
    background: linear-gradient(135deg, #f3f4f6 0%, rgba(46, 204, 113, 0.05) 100%);
    border-radius: 25px;
    margin-top: 2rem;
    border: 1px solid rgba(46, 204, 113, 0.1);
}

.aboutus-one img,
.aboutus-two img {
    max-width: 45%;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(46, 204, 113, 0.2);
    object-fit: cover;
    transition: var(--transition-smooth);
    border: 2px solid rgba(46, 204, 113, 0.2);
}

.aboutus-one img:hover,
.aboutus-two img:hover {
    transform: scale(1.05);
    box-shadow: 0 50px 120px rgba(46, 204, 113, 0.35);
}

.aboutus-one h1,
.aboutus-two h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.aboutus-one p,
.aboutus-two p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.aboutus-three {
    background: var(--bg-white);
    padding: 6rem 5%;
}

.about-top {
    margin-bottom: 4rem;
    text-align: center;
    animation: fadeInUp 0.8s ease both;
}

.about-top h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.about-top p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.miembros-team {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.miembro {
    background: var(--bg-white);
    border: 2px solid #e5e7eb;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeInUp 0.8s ease calc(0.1s * var(--item-index, 0)) both;
}

.miembro:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 80px rgba(46, 204, 113, 0.2);
    border-color: var(--primary-green);
}

.miembro img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid var(--bg-gray);
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.15);
}

.miembro:hover img {
    transform: scale(1.1);
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.4);
}

.miembro h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-top: 0.5rem;
    text-align: center;
    font-weight: 700;
}

.miembro i {
    font-size: 1.8rem;
    transition: var(--transition-smooth);
    margin-top: 0.5rem;
    color: var(--primary-green);
}

.miembro i:hover {
    color: var(--primary-green-hover);
    transform: scale(1.2) rotate(15deg);
}

/* Partners */
.aboutus-four {
    background: linear-gradient(135deg, #f3f4f6 0%, rgba(46, 204, 113, 0.05) 100%);
    padding: 6rem 5%;
    text-align: center;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.partners {
    margin-bottom: 3rem;
}

.partners h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.partners p {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

.partners-fotos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.partner-img {
    max-height: 80px;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition-smooth);
}

.partner-img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}


/* =======================================================
   6. SECCIÓN: CONTACTO Y MARKETPLACE
   ======================================================= */
.container-contacto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    overflow: hidden;
}

.contacto-imagen {
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
}

.contacto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
    transition: var(--transition-smooth);
}

.contacto-imagen:hover img {
    transform: scale(1.05);
    filter: brightness(0.75);
}

.contacto-imagen-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(26, 71, 42, 0.95) 0%, transparent 100%);
    animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contacto-tagline {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.contacto-form {
    background: var(--bg-white);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    overflow-y: auto;
    animation: slideInRight 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contacto-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-green);
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.contacto-form-header {
    animation: fadeInUp 0.8s ease 0.3s both;
}

.contacto-form-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0.5rem 0 1rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease calc(0.4s + 0.1s * var(--item-index, 0)) both;
}

.contacto-form label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.contacto-form input,
.contacto-form textarea {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    background: var(--bg-gray);
    transition: var(--transition-smooth);
    outline: none;
    font-family: 'Inter', sans-serif;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
    border-color: var(--primary-green);
    background: var(--bg-white);
    box-shadow: 0 0 0 6px rgba(46, 204, 113, 0.1);
}

.contacto-form button {
    background: linear-gradient(135deg, var(--primary-green) 0%, #27ae60 100%);
    color: white;
    border: none;
    padding: 16px 28px;
    width: 100%;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 1.5rem;
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.2);
    animation: fadeInUp 0.8s ease 0.6s both;
    min-height: 50px;
    letter-spacing: 0.5px;
}

.contacto-form button:hover {
    background: linear-gradient(135deg, #27ae60 0%, var(--primary-green-dark) 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.35);
}

.contacto-form button:active {
    transform: translateY(-1px);
}

/* Marketplace */
.marketplace {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 71, 42, 0.6) 0%, rgba(217, 118, 52, 0.3) 100%);
}

.marketplace h1 {
    font-size: 4.5rem;
    color: var(--bg-white);
    padding: 40px 60px;
    background: rgba(15, 20, 25, 0.92);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    z-index: 1;
    font-weight: 800;
    letter-spacing: -1px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(46, 204, 113, 0.2);
    animation: fadeInScale 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}


/* =======================================================
   7. FOOTER Y UI COMPONENTS (Back to Top)
   ======================================================= */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #27ae60 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
    transition: var(--transition-smooth);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    animation: fadeInScale 0.4s ease;
}

#backToTop:hover {
    background: linear-gradient(135deg, #27ae60 0%, var(--primary-green-dark) 100%);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.5);
}

footer {
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 100%);
    color: var(--text-footer);
    padding: 5rem 5% 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    font-size: 0.95rem;
    border-top: 2px solid rgba(46, 204, 113, 0.1);
}

footer div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

footer img {
    max-height: 40px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    filter: drop-shadow(0 3px 10px rgba(46, 204, 113, 0.2));
}

footer img:hover {
    transform: scale(1.1);
}

footer a {
    color: var(--text-footer);
    text-decoration: none;
    transition: var(--transition-smooth);
    margin-bottom: 0.7rem;
}

footer a:hover {
    color: var(--primary-green);
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(46, 204, 113, 0.3);
}

footer p:first-child {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Iconos de Redes Sociales */
.footer-socials {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: nowrap;
}

.footer-socials a {
    background: rgba(46, 204, 113, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.9rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 2px solid rgba(46, 204, 113, 0.2);
    transition: var(--transition-smooth);
    color: var(--primary-green);
}

.footer-socials a:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-5px) rotate(10deg);
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.4);
}



/* =======================================================
   8. RESPONSIVE Y ADAPTABILIDAD (MEDIA QUERIES)
   ======================================================= */

/* Pantallas Medianas / Tablets en Horizontal (1024px - 1100px) */
@media (max-width: 1100px) {
    .miembros-team {
        grid-template-columns: repeat(3, 1fr);
    }

    .aboutus-one img,
    .aboutus-two img {
        max-width: 50%;
    }

    .grid-problemas {
        grid-template-columns: repeat(2, 1fr);
    }

    .container-contacto {
        grid-template-columns: 1fr;
        height: auto;
    }

    .contacto-imagen {
        height: 350px;
        display: block;
    }

    .contacto-form {
        height: auto;
        padding: 3rem 2.5rem;
    }
    
    .sost-one {
        gap: 40px;
    }
}

/* 📱 Tablets en Vertical y Móviles Grandes (992px) */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }

    /* Reordenamiento general de secciones divididas */
    .aboutus-one,
    .aboutus-two,
    .home-two,
    .home-three,
    .sost-one {
        flex-direction: column;
        text-align: center;
        padding: 4rem 5%;
        gap: 2rem;
    }

    .aboutus-one img,
    .aboutus-two img,
    .home-two img:first-child,
    .home-three img,
    .sost-one img:first-child {
        max-width: 90%;
        margin: 0 auto;
    }

    .home-two div,
    .sost-one div {
        width: 90%;
    }

    .home-one p,
    .home-three p {
        max-width: 90%;
        margin: 0 auto;
        border-radius: 15px;
        border-left: none;
        text-align: center;
        padding: 25px;
    }

    .home-one p {
        border-top: 5px solid var(--primary-green);
        border-left: none;
    }

    .miembros-team {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-problemas {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Teléfonos Móviles (768px) */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    /* Contacto en Móvil */
    .container-contacto {
        grid-template-columns: 1fr;
        height: auto;
    }

    .contacto-imagen {
        height: 280px;
        display: block;
    }

    .contacto-form {
        padding: 2rem 1.5rem;
        justify-content: flex-start;
        height: auto;
    }

    .contacto-form input,
    .contacto-form textarea {
        padding: 14px 16px;
        font-size: 16px;
    }

    .contacto-form button {
        padding: 14px 24px;
        font-size: 14px;
        margin-top: 1rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }
    
    .marketplace h1 {
        font-size: 2.5rem;
        padding: 30px 20px;
    }

    /* Home en Móvil */
    .grid-problemas {
        grid-template-columns: 1fr;
    }

    .home-one {
        height: auto;
        min-height: 80vh;
        justify-content: center;
    }

    /* Sobre Nosotros en Móvil */
    .miembros-team {
        grid-template-columns: repeat(1, 1fr);
        max-width: 350px;
        margin: 0 auto;
    }

    .partners-fotos {
        gap: 2rem;
    }

    .partner-img {
        max-height: 60px;
    }

    /* Footer en Móvil */
    footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    footer div {
        align-items: center;
    }

    footer a {
        margin-bottom: 0.5rem;
    }

    /* Navegación y Menú Hamburguesa */
    .menu-toggle {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 20, 25, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .navbar.active {
        max-height: 500px;
    }

    .navbar a {
        padding: 1.5rem;
        text-align: center;
        border-bottom: 1px solid rgba(46, 204, 113, 0.1);
        animation: fadeInUp 0.4s ease;
    }
    
    .sost-three {
        gap: 15px;
    }
    
    .card {
        width: 200px;
        height: 200px;
    }
    
    .prob-item {
        padding: 25px 15px;
    }
    
    .prob-item i {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {

    .home-two div p,
    .home-one p {
        font-size: 16px;
    }

    .marketplace h1 {
        font-size: 2rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    .grid-problemas {
        grid-template-columns: 1fr;
    }
    
    .problema-moderno {
        margin: 40px auto;
        padding: 40px 4%;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    header {
        padding: 0.8rem 3%;
    }
    
    .navbar a {
        padding: 1.2rem;
    }

    /* Contacto en pantallas muy pequeñas */
    .container-contacto {
        height: auto;
        min-height: auto;
    }

    .contacto-imagen {
        height: 250px;
        min-height: 250px;
    }

    .contacto-form {
        padding: 2rem 1rem;
    }

    .contacto-form-header h2 {
        font-size: 1.5rem;
    }

    .contacto-form-header p {
        font-size: 0.95rem;
    }

    .contacto-form input,
    .contacto-form textarea {
        padding: 12px 14px;
        font-size: 16px;
    }

    .contacto-form button {
        padding: 12px 20px;
        font-size: 13px;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .contacto-tagline {
        font-size: 1.5rem;
    }
}

/* =======================================================
   ESTILOS GUAYS - SOSTENIBILIDAD (MODERNO)
   ======================================================= */

/* Ajustes generales */
.sostenibilidad-main .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 5%;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.green-text { color: var(--primary-green); font-weight: 800; }
.bg-light-gray { background-color: var(--bg-gray); }

.section-title {
    font-size: 2.8rem;
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 750px;
    margin: 0 auto 3rem auto;
    line-height: 1.8;
}

/* --- HERO CON GRADIENTE Y ANIMACIÓN --- */
.hero-sostenibilidad {
    padding: 8rem 0 4rem 0;
    background: linear-gradient(135deg, rgba(4,159,71,0.05) 0%, rgba(255,255,255,1) 100%);
    position: relative;
}

.hero-sostenibilidad h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-dark);
}

/* --- MÉTRICAS (Efecto Cristal y Flotante) --- */
.grid-metricas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.metrica-card {
    background: rgba(4, 159, 71, 0.06);
    backdrop-filter: blur(10px);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
    border: 1px solid rgba(4, 159, 71, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Línea de color superior en la tarjeta */
.metrica-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
    background: linear-gradient(90deg, var(--primary-green), #00d2ff);
}

.metrica-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(4, 159, 71, 0.25);
}

/* Números en color verde sólido */
.metrica-card .numero {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
}

.metrica-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

/* --- ECONOMÍA CIRCULAR (Split con bordes orgánicos) --- */
.container-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.foto-circular {
    width: 100%;
    /* Forma asimétrica muy moderna */
    border-radius: 30px 80px 30px 80px; 
    object-fit: cover;
    transition: var(--transition);
}

.foto-circular:hover {
    /* Invierte la forma al pasar el ratón */
    border-radius: 80px 30px 80px 30px;
    transform: scale(1.02);
}

.shadow-large {
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}

.lista-check {
    list-style: none;
    margin-top: 2.5rem;
}

.lista-check li {
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.lista-check li:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 30px rgba(4, 159, 71, 0.08);
}

.lista-check li i {
    margin-top: 0.2rem;
    font-size: 1.4rem;
    background: rgba(4, 159, 71, 0.1);
    padding: 10px;
    border-radius: 50%;
}

/* --- IMPACTO SOCIAL (Sombras 3D) --- */
.grid-social {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.social-card {
    padding: 3rem 2rem;
    border-radius: 24px;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 40px rgba(4, 159, 71, 0.1);
}

.icon-social {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.4s ease;
}

.social-card:hover .icon-social {
    transform: scale(1.2) rotate(10deg);
}

/* --- ODS (Animación Blanco y Negro a Color) --- */
.grid-ods {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.ods-item img {
    width: 130px;
    height: auto;
    border-radius: 12px;
    transition: all 0.3s ease;
    /* Empiezan en blanco y negro suave */
    filter: grayscale(60%);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.ods-item img:hover {
    transform: translateY(-8px) scale(1.1);
    /* Al pasar el ratón cobran todo el color */
    filter: grayscale(0%);
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
}

/* --- RESPONSIVE SOSTENIBILIDAD --- */
@media (max-width: 992px) {
    .container-split {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .circular .section-title, .lista-check li {
        text-align: left;
    }
    .hero-sostenibilidad h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hero-sostenibilidad h1 { font-size: 2.3rem; }
    .section-title { font-size: 2.2rem; }
    .metrica-card .numero { font-size: 3.5rem; }
    .foto-circular { border-radius: 20px; }
    .foto-circular:hover { border-radius: 20px; }
}

/* =======================================================
   LEGAL - Estilos para la página de Legal
   ======================================================= */
.legal-container {
    max-width: 900px;
    margin: 120px auto 60px;
    padding: 0 20px;
    color: var(--text-dark);
}

.legal-header {
    border-bottom: 2px solid var(--primary-green);
    padding-bottom: 20px;
    margin-bottom: 40px;
}

.legal-section {
    margin-bottom: 40px;
}

.legal-section h2 {
    color: var(--primary-green);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.legal-section h3 {
    margin-top: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.legal-section p, .legal-section ul {
    margin-bottom: 15px;
    color: var(--text-light);
    text-align: justify;
}

.legal-section ul {
    padding-left: 20px;
}

.update-date {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-light);
}