/* =======================================
   NIX — Landing Page Styles
   Font: Open Sans | Green: #38D430
   ======================================= */

/* =======================================
   LOADER
   ======================================= */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: #020835;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.loader--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
}

.loader__logo {
    width: 280px;
    height: auto;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.85; }
}

.loader__word-container {
    height: 32px;
    position: relative;
    overflow: hidden;
    min-width: 200px;
    text-align: center;
}

.loader__word {
    position: absolute;
    width: 100%;
    left: 0;
    top: 0;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    color: #38D430;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.loader__word--active {
    opacity: 1;
    transform: translateY(0);
}

.loader__bar-track {
    width: 260px;
    height: 4px;
    background: rgba(56, 212, 48, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.loader__bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #38D430, #BDEFB0);
    border-radius: 4px;
    transition: width 0.1s linear;
}

/* =======================================
   SCROLL REVEAL ANIMATIONS
   ======================================= */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

[data-reveal="fade-up"] {
    transform: translateY(50px);
}

[data-reveal="fade-down"] {
    transform: translateY(-50px);
}

[data-reveal="fade-left"] {
    transform: translateX(-60px);
}

[data-reveal="fade-right"] {
    transform: translateX(60px);
}

[data-reveal="scale"] {
    transform: scale(0.85);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Stagger delays */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.25s; }
[data-delay="3"] { transition-delay: 0.4s; }
[data-delay="4"] { transition-delay: 0.55s; }
[data-delay="5"] { transition-delay: 0.7s; }

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #ffffff;
    background-color: #000D7C;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ---------- UTILITIES ---------- */
.btn {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn--outline {
    border: 2px solid #38D430;
    color: #38D430;
    background: transparent;
}

.btn--outline:hover {
    background: #38D430;
    color: #050a44;
}

.btn--solid {
    border: 2px solid #38D430;
    background: #38D430;
    color: #050a44;
}

.btn--solid:hover {
    background: #2cb825;
    border-color: #2cb825;
}

/* =======================================
   HEADER
   ======================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: transparent;
    transition: background 0.35s ease;
}

.header--scrolled {
    background: rgba(0, 25, 119, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo img {
    height: 55px;
    width: auto;
}

.header__nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* =======================================
   HERO
   ======================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* Background image */
.hero__bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 20%, rgba(0, 0, 0, 0.4) 45%, black 75%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.35) 20%, rgba(0, 0, 0, 0.4) 45%, black 75%);
}

.hero__bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
    filter: brightness(1.2) contrast(1.15) saturate(1.3);
}

/* Blue overlay on top of the image */
.hero__bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 13, 124, 0.15);
}

/* Commented out — kept for reference */
/*
.hero__bg-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero__bg-element img {
    width: 80%;
    max-width: 1000px;
    height: auto;
    object-fit: contain;
    object-position: top left;
}
*/

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 160px 40px 0px;
    display: flex;
    justify-content: space-between;
    gap: 60px;
    position: relative;
    z-index: 10;
    width: 100%;
    align-items: flex-end;
}

.hero__left {
    flex: 1;
    align-self: flex-start;
    margin-top: 20px;
}

.hero__title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -1px;
}

.hero__title--green {
    color: #38D430;
}

.hero__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
   /*  margin-bottom: -40px; */
}

.hero__nix-title {
    font-size: 3rem;
    font-weight: 700;
    color: #38D430;
    margin-bottom: 12px;
}

.hero__description {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    max-width: 420px;
}

.hero__description strong {
    font-weight: 700;
    color: #ffffff;
}

/* =======================================
   FEATURES
   ======================================= */
.features {
    padding: 280px 0 80px;
    position: relative;
}

.features::after {
    content: '';
    display: block;
    width: 60%;
    max-width: 700px;
    height: 1px;
    background: #459F41;
    margin: 100px auto 0;
    
}

.features__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    align-items: start;
}

.feature-card {
    text-align: left;
    padding: 30px;
    background-color: #0A009D;
    background-image: linear-gradient(rgba(69, 159, 65, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(69, 159, 65, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
    border: 1px solid #459F41;
    border-radius: 30px 30px 60px 0px;
    box-shadow: 2px 2px 15px rgba(69, 159, 65, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background-position 0.5s ease;
}

.feature-card:hover {
    border: 1px solid #6BE866;
    box-shadow: 0px 5px 25px rgba(107, 232, 102, 0.4), inset 0px 0px 20px rgba(107, 232, 102, 0.15);
    transform: translateY(-5px);
    background-position: bottom right;
}

.feature-card__title {
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 24px;
    color: #ffffff;
}

.feature-card__title--green {
    color: #38D430;
    font-weight: 700;
}

.feature-card__btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    border: none;
    background: #2400E7;
    color: #ffffff;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: auto;
}

.feature-card__btn:hover {
    background: #1e00c2;
    transform: scale(1.03);
}

.feature-card__btn.active {
    background: #1e00c2;
}

.feature-card__text-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, margin-top 0.45s ease;
    margin-top: 0;
}

.feature-card__text-wrapper.open {
    max-height: 300px;
    margin-top: 18px;
}

.feature-card__text-box {
    padding-top: 16px;
}

.feature-card__text {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* =======================================
   CAPAS
   ======================================= */
.capas {
    padding: 240px 0 20px;
    position: relative;
    background: #000D7C;
}

.capas__container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.capas__left {
    flex: 1.2;
    display: flex;
    justify-content: flex-start;
}

.capas__stack {
    position: relative;
    width: 140%;
    max-width: 800px;
    height: 600px; /* Increased height to accommodate wider spacing */
    margin-left: -100px;
    margin-top: -60px; /* Pull it slightly up */
    cursor: pointer;
}

@keyframes layer-entrance {
    from {
        opacity: 0;
        margin-bottom: 50px;
    }
    to {
        opacity: 1;
        margin-bottom: 0;
    }
}

.capas__layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1.0, 0.5, 1.0);
    transform-origin: bottom center;
    animation: layer-entrance 0.8s cubic-bezier(0.25, 1.0, 0.5, 1.0) both;
    pointer-events: none; /* Let clicks pass through transparent overlaps */
}

.capas__layer-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Labels */
.capas__label {
    position: absolute;
    display: flex;
    align-items: center;
    top: 45%; 
    opacity: 0;
    animation: label-fade-in 0.5s ease forwards;
    animation-delay: 1.5s; /* Appear softly after layers map finishes entry */
}

@keyframes label-fade-in {
    to { opacity: 1; }
}

.capas__label--left {
    right: 85%;
    flex-direction: row;
}

.capas__label--right {
    left: 85%;
    flex-direction: row-reverse;
}

.capas__label-text {
    color: #38D430;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.capas__label-line {
    width: 80px;
    height: 1px;
    background-color: #38D430;
    position: relative;
    margin: 0 15px;
}

.capas__label--left .capas__label-line::after,
.capas__label--right .capas__label-line::after {
    content: '';
    position: absolute;
    top: -2px;
    width: 5px;
    height: 5px;
    background-color: #38D430;
    border-radius: 50%;
}

.capas__label--left .capas__label-line::after {
    right: -3px;
}

.capas__label--right .capas__label-line::after {
    left: -3px;
}

/* -------------------------------------
   Interactive Tooltip Layer 2
   ------------------------------------- */
.capas__tooltip {
    position: absolute;
    top: 50%;
    left: 80%; /* Place it right on top of the orange map region */
    display: flex;
    align-items: center;
    opacity: 0;
    animation: label-fade-in 0.5s ease forwards;
    animation-delay: 1.5s;
    z-index: 10;
    pointer-events: auto; /* Restore interactivity specifically for the tooltip */
}

.capas__tooltip-icon {
    width: 28px;
    height: 28px;
    background-color: rgba(0, 13, 124, 0.85); /* Dark blue from background */
    border: 1.5px solid #38D430;
    border-radius: 50%;
    color: #38D430;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(56, 212, 48, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

/* Pulsing aura around the icon */
.capas__tooltip-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #38D430;
    opacity: 0.3;
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}

.capas__tooltip:hover .capas__tooltip-icon {
    background-color: #38D430;
    color: #000D7C;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(56, 212, 48, 0.8);
}

.capas__tooltip-content {
    position: absolute;
    left: 40px; /* Start right after icon */
    background: rgba(10, 0, 157, 0.95);
    border: 1px solid #38D430;
    padding: 8px 16px;
    border-radius: 6px;
    transform: translateX(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

.capas__tooltip:hover .capas__tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(0px); /* Slide text entirely clear of the icon */
}

/* Connective line from the + to the box */
.capas__tooltip-content::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 1px;
    background-color: #38D430;
}

/* Modificadores para tooltips del lado izquierdo (`Temperatura`, `Zonificación`, `Uso de suelo`) */
.capas__tooltip--left .capas__tooltip-content {
    left: auto;
    right: 40px; /* Expand to the left of the icon */
    transform: translateX(-10px);
}

.capas__tooltip--left:hover .capas__tooltip-content {
    transform: translateX(0px);
}

.capas__tooltip--left .capas__tooltip-content::before {
    left: auto;
    right: -30px; /* Flip the connecting line to the right side of the box */
}

/* Modificadores para tooltips hacia abajo (Ej. Zonificación) */
.capas__tooltip--bottom .capas__tooltip-content {
    left: 50%; /* Center horizontally with the icon */
    top: 45px; /* Position below the icon */
    transform: translate(-50%, -10px); /* Start slightly higher */
}

.capas__tooltip--bottom:hover .capas__tooltip-content {
    transform: translate(-50%, 0px); /* Slide down to resting position */
}

/* Vertical connective line from the + down to the box */
.capas__tooltip--bottom .capas__tooltip-content::before {
    left: 50%;
    top: -20px; /* Shoot upwards from the box */
    transform: translateX(-50%);
    width: 1px; /* Make it a vertical line */
    height: 20px;
}

/* Base positions (expanded state with zigzag horizontal offset) */
.capas__layer--1 { z-index: 4; transform: translate(-80px, -240px); animation-delay: 0.1s; }
.capas__layer--2 { z-index: 3; transform: translate(120px, -160px); animation-delay: 0.3s; }
.capas__layer--3 { z-index: 2; transform: translate(-40px, -80px); animation-delay: 0.5s; }
.capas__layer--4 { z-index: 1; transform: translate(60px, 0px); animation-delay: 0.7s; }

/* -------------------------------------
   "WOW" Interactive 3D Hover & Float
   ------------------------------------- */

/* Amplified separation when hovering the whole stack */
.capas__stack:hover .capas__layer--1 { transform: translate(-100px, -280px); }
.capas__stack:hover .capas__layer--2 { transform: translate(140px, -180px); }
.capas__stack:hover .capas__layer--3 { transform: translate(-60px, -90px); }
.capas__stack:hover .capas__layer--4 { transform: translate(80px, 10px); }

/* Add continuous levitation to the top layer for an organic feel */
.capas__layer--1 {
    animation: 
        layer-entrance 0.8s cubic-bezier(0.25, 1.0, 0.5, 1.0) 0.1s both,
        layer-float 6s ease-in-out 1s infinite alternate;
}

@keyframes layer-float {
    0% { transform: translate(-80px, -240px); }
    100% { transform: translate(-80px, -255px); }
}

/* Pause levitation when interacting */
.capas__stack:hover .capas__layer--1 {
    animation-play-state: paused;
}

.capas__right {
    flex: 0.8;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: -300px; /* Pulls the text block higher up to align with the upper maps */
}

.capas__title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 24px;
}

.capas__title--green {
    color: #38D430;
    font-weight: 400;
}

.capas__description {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #ffffff;
}

.capas__description strong {
    font-weight: 700;
}

/* =======================================
   MAPAS + FOOTER BG WRAPPER
   ======================================= */
.mapas-footer-bg {
    position: relative;
}

.mapas-footer-bg__element {
    position: absolute;
    bottom: 60px;
    right: 0;
    z-index: 0;
    pointer-events: none;
}

.mapas-footer-bg__element img {
    width: 1200px;
    max-width: 90vw;
    height: auto;
    display: block;
}

/* =======================================
   MAPAS
   ======================================= */
.mapas {
    padding: 10px 0 200px;
    position: relative;
    z-index: 1;
}

.mapas__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.mapas__title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 60px;
    text-align: left;
    color: #ffffff;
}

.mapas__title--green {
    color: #38D430;
    font-weight: 400 !important;
}

.mapas__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 70px;
    align-items: start;
}

.mapa-card {
    text-align: center;
    padding: 0 24px 30px;
    background-color: #0A009D;
    background-image: linear-gradient(rgba(69, 159, 65, 0.1) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(69, 159, 65, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
    border: 1px solid #459F41;
    border-radius: 30px 30px 60px 0px;
    box-shadow: 2px 2px 15px rgba(69, 159, 65, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-top: 40px; /* Space for the overlapping icon */
    transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background-position 0.5s ease;
}

.mapa-card:hover {
    border: 1px solid #6BE866;
    box-shadow: 0px 5px 25px rgba(107, 232, 102, 0.4), inset 0px 0px 20px rgba(107, 232, 102, 0.15);
    transform: translateY(-5px);
    background-position: bottom right;
}

.mapa-card__icon-wrapper {
    width: 100px;
    height: 100px;
    margin-top: -50px; /* Pulls the icon up to overlap the top border */
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mapa-card__icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mapa-card__title {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 20px;
}

.mapa-card__subtitle {
    display: none;
}

.mapa-card__btn {
    display: inline-block;
    padding: 8px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    cursor: pointer;
    border: none;
    background: #2400E7;
    color: #ffffff;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: auto;
}

.mapa-card__btn:hover {
    background: #1e00c2;
    transform: scale(1.03);
}

.mapa-card__btn.active {
    background: #1e00c2;
}

.mapa-card__text-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, margin-top 0.5s ease;
    margin-top: 0;
}

.mapa-card__text-wrapper.open {
    max-height: 450px;
    margin-top: 14px;
}

.mapa-card__text-box {
    /* background: rgba(30, 0, 220, 0.75); */
    border-radius: 12px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mapa-card__text {
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
}

.mapa-card__link {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #38D430;
    border: 1px solid #38D430;
    border-radius: 20px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.mapa-card__link:hover {
    background: #38D430;
    color: #050a44;
}

/* =======================================
   FOOTER
   ======================================= */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid rgba(56, 212, 48, 0.15);
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.footer__sponsors {
    display: flex;
    justify-content: flex-start;
}

.footer__sponsors-img {
    max-width: 500px;
    width: 100%;
    height: auto;
}

.footer__social {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer__social-link {
    color: #38D430; /* Institucional (Bright Green) */
    font-size: 1.6rem;
    transition: color 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__social-link:hover {
    color: #BDEFB0; /* Claro (Pale Green) */
    transform: scale(1.15);
}

/* =======================================
   SCROLL TO TOP BUTTON
   ======================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 50px;
    height: 50px;
    background-color: #38D430;
    color: #000D7C;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: #ffffff;
    color: #38D430;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(56, 212, 48, 0.5);
}

/* =======================================
   RESPONSIVE — Tablet
   ======================================= */
@media (max-width: 1024px) {
    .hero__title {
        font-size: 2.8rem;
    }

    .features__container {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .feature-card__image-wrapper {
        width: 260px;
        height: 260px;
    }

    .mapas__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .mapa-card__icon-wrapper {
        width: 140px;
        height: 140px;
    }

    /* Capas Tablet */
    .capas__container {
        flex-direction: column-reverse; /* Put image on top of text */
        gap: 60px;
    }

    .capas__left {
        width: 100%;
        justify-content: center;
    }

    .capas__right {
        align-items: flex-start;
        text-align: left;
        margin-top: 0;
        width: 100%;
    }

    .capas__stack {
        margin-left: 0;
        margin-top: 140px; /* Compensates for the -180px upward translation of the layers */
        width: 100%;
        max-width: 600px;
        height: 500px;
    }

    /* Scale down the 3D expanded state for tablet */
    .capas__layer--1 { transform: translate(-40px, -180px); }
    .capas__layer--2 { transform: translate(60px, -100px); }
    .capas__layer--3 { transform: translate(-20px, -50px); }
    .capas__layer--4 { transform: translate(20px, 0px); }

    .capas__stack:hover .capas__layer--1 { transform: translate(-50px, -200px); }
    .capas__stack:hover .capas__layer--2 { transform: translate(80px, -120px); }
    .capas__stack:hover .capas__layer--3 { transform: translate(-30px, -60px); }
    .capas__stack:hover .capas__layer--4 { transform: translate(30px, 10px); }

    @keyframes layer-float {
        0% { transform: translate(-40px, -180px); }
        100% { transform: translate(-40px, -190px); }
    }
}

/* =======================================
   RESPONSIVE — Mobile
   ======================================= */
@media (max-width: 768px) {
    /* Header */
    .header__container {
        padding: 0 20px;
    }

    .header__logo img {
        height: 32px;
    }

    .btn {
        padding: 6px 16px;
        font-size: 0.8rem;
    }

    .btn__mobile-hide {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: 70vh;
    }

    .hero__container {
        flex-direction: column;
        padding: 100px 20px 40px;
        gap: 0px; /* Removes excessive gap since image sits in background */
        justify-content: flex-start;
    }

    .hero__left {
        align-self: flex-start;
        margin-top: 0;
    }

    .hero__title {
        font-size: 2.4rem;
    }

    .hero__right {
        align-items: flex-start;
        text-align: left;
        margin-top: auto; /* Push down past the image if any, or rely on flex */
        padding-top: 280px; /* Adjust according to the globe image height to sit below it */
        margin-bottom: 0px;
        width: 100%;
    }

    .hero__nix-title {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .hero__description {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Features */
    .features {
        padding: 60px 0 60px;
    }

    .features__container {
        grid-template-columns: 1fr;
        padding: 0 20px;
        gap: 50px;
    }

    .feature-card {
        text-align: center;
        align-items: center;
    }

    .feature-card__image-wrapper {
        width: 200px;
        height: 200px;
    }

    .feature-card__title {
        margin-left: 0;
    }

    .feature-card__btn {
        margin-left: 0;
    }

    .feature-card__text-box {
        margin-left: auto;
        margin-right: auto;
    }

    /* Mapas */
    .mapas {
        padding: 60px 0 100px;
    }

    .mapas__container {
        padding: 0 20px;
    }

    .mapas__title {
        font-size: 2.2rem;
        text-align: center;
    }

    .mapas__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .mapa-card {
        text-align: center;
    }

    .mapa-card__icon-wrapper {
        width: 120px;
        height: 120px;
        margin-left: auto;
        margin-right: auto;
    }

    .mapas-footer-bg__element {
        display: none;
    }

    /* Capas Mobile */
    .capas {
        padding: 60px 0 60px;
    }

    .capas__title {
        font-size: 2.5rem;
    }

    .capas__stack {
        height: 300px;
        margin-top: 80px; /* Compensates for the -100px upward translation in mobile */
    }

    /* Highly compact 3D expanded state for mobile */
    .capas__layer--1 { transform: translate(-20px, -100px); }
    .capas__layer--2 { transform: translate(30px, -60px); }
    .capas__layer--3 { transform: translate(-10px, -30px); }
    .capas__layer--4 { transform: translate(10px, 0px); }

    .capas__stack:hover .capas__layer--1 { transform: translate(-25px, -110px); }
    .capas__stack:hover .capas__layer--2 { transform: translate(40px, -70px); }
    .capas__stack:hover .capas__layer--3 { transform: translate(-15px, -35px); }
    .capas__stack:hover .capas__layer--4 { transform: translate(15px, 5px); }

    @keyframes layer-float {
        0% { transform: translate(-20px, -100px); }
        100% { transform: translate(-20px, -105px); }
    }

    .capas__tooltip-icon {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }

    .capas__tooltip-content {
        padding: 6px 12px;
    }

    .capas__label-text {
        font-size: 0.85rem;
    }

    .capas__tooltip--bottom .capas__tooltip-content {
        top: 35px;
    }

    /* Footer */
    .footer {
        padding: 40px 0 30px;
    }

    .footer__container {
        flex-direction: column;
        padding: 0 20px;
        gap: 30px;
        align-items: center;
    }

    .footer__sponsors-img {
        max-width: 300px;
    }

    .footer__social {
        gap: 20px;
    }

    .footer__social-link {
        font-size: 1.4rem;
    }
}

/* =======================================
   RESPONSIVE — Small Mobile
   ======================================= */
@media (max-width: 480px) {
    .hero__title {
        font-size: 2rem;
    }

    .mapas__title {
        font-size: 1.8rem;
    }

    .mapas__grid {
        grid-template-columns: 1fr;
    }

    .footer__sponsors-img {
        max-width: 240px;
    }
}
