/* --- ESTILOS GLOBALES Y VARIABLES --- */
:root {
    --color-green-dark: #166534;
    --color-green: #16a34a;
    --color-green-light: #dcfce7;
    --color-blue: #2563eb;
    --color-gray-dark: #1f2937;
    --color-gray: #4b5563;
    --color-gray-light: #f8fafc;
    --color-white: #ffffff;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-gray-light);
    color: var(--color-gray-dark);
}

.container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    padding-left: 4rem;
    padding-right: 4rem;
}

@media (max-width: 768px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: relative;
}

.section--light-bg {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

/* --- SEC FLOW: Seamless transitions between sections --- */

.sec-flow-1 {
    /* De Hero (Oscuro) a Blanco */
    background: linear-gradient(180deg, #0c2b36 0%, #ffffff 100px, #ffffff 100%);
}

.sec-flow-2 {
    /* De Blanco a Verde Suave */
    background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
}

.sec-flow-3 {
    /* De Verde Suave a Océano Elegante (Oscuro) */
    background: linear-gradient(180deg, #ecfdf5 0%, #0f3d4c 100px, #064e3b 100%);
    color: var(--color-white);
}
.sec-flow-3 .section-header h2 { color: var(--color-white); }
.sec-flow-3 .section-header p { color: #d1fae5; }
.sec-flow-3 .impact-card, .sec-flow-3 .feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}
.sec-flow-3 .feature-card h3 { color: var(--color-white) !important; }
.sec-flow-3 .feature-card p { color: #e2e8f0; }

.sec-flow-4 {
    /* De Océano Elegante (Oscuro) a Blanco/Azul */
    background: linear-gradient(180deg, #064e3b 0%, #ffffff 100px, #ffffff 100%);
}

.sec-flow-5 {
    /* De Blanco a Verde Esmeralda */
    background: linear-gradient(180deg, #ffffff 0%, #ecfdf5 100%);
}

.sec-flow-6 {
    /* De Verde Esmeralda a Azul Suave */
    background: linear-gradient(180deg, #ecfdf5 0%, #e0f2fe 100%);
}

.sec-flow-7 {
    /* De Azul Suave a Blanco */
    background: linear-gradient(180deg, #e0f2fe 0%, #ffffff 100%);
}

.sec-flow-8 {
    /* De Blanco a Océano (para conectar con CTA final) */
    background: linear-gradient(180deg, #ffffff 0%, #ffffff calc(100% - 100px), #0f3d4c 100%);
}

.section--elegant-ocean {
    background: linear-gradient(180deg, #0f3d4c 0%, #064e3b 100%);
    color: var(--color-white);
}

.section--elegant-ocean .section-header h2 {
    color: var(--color-white);
}

.section--elegant-ocean .section-header p {
    color: #d1fae5;
}

.section--elegant-ocean .impact-card, .section--elegant-ocean .feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.section--elegant-ocean .impact-card__number, .section--elegant-ocean .feature-card h3 {
    color: var(--color-white) !important;
}

.section--elegant-ocean .impact-card__text, .section--elegant-ocean .feature-card p {
    color: #e2e8f0;
}

.section--elegant-ocean .icon-gray, .section--elegant-ocean .text-gray {
    color: #e2e8f0 !important;
}

.section--soft-emerald {
    background: linear-gradient(180deg, #ffffff 0%, #dcfce7 100%);
}

.section--soft-blue {
    background: linear-gradient(180deg, #ffffff 0%, #e0f2fe 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin: 0;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-gray);
    max-width: 42rem;
    margin: 1rem auto 0;
}


/* --- HEADER Y NAVEGACIÓN --- */
.main-header {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: transform 0.4s cubic-bezier(0.3, 0, 0.2, 1), background-color 0.4s ease, padding 0.4s ease;
}

.main-header.header-hidden {
    transform: translateY(-100%);
}

.main-header.header-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    transition: padding 0.4s ease;
}

.main-header.header-scrolled .main-nav {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-brand__logo {
    height: 2.5rem;
    width: auto;
}

.nav-brand__text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-green-dark);
}

.nav-links {
    display: none; /* Oculto en móvil */
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--color-gray);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-green);
}

.nav-link--button {
    background-color: var(--color-green);
    color: var(--color-white);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
}

.nav-mobile-menu button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.875rem;
    color: var(--color-gray-dark);
}

.mobile-menu-dropdown {
    display: none;
}

.mobile-menu-dropdown.active { /* JS añadirá la clase 'active' */
    display: block;
}

.mobile-menu-link {
    display: block;
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    color: var(--color-gray);
    text-decoration: none;
}

.mobile-menu-link:hover {
    background-color: #f0fdf4;
}

/* --- HERO SECTION --- */
.hero-section {
    position: relative;
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
    transform: translateZ(0);
}
.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(6, 78, 59, 0.6);
    backdrop-filter: blur(4px);
}

.hero-content {
    max-width: 56rem;
    position: relative;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.hero-content p {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: #d1fae5;
}

.hero-actions-mobile, .hero-actions-desktop {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-button, .hero-button--disabled {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
}

.hero-button {
    background-color: var(--color-white);
    color: var(--color-green-dark);
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
}

.hero-button--disabled {
    background-color: rgba(209, 213, 219, 0.3);
    color: var(--color-white);
}

.hero-button i, .hero-button--disabled i {
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

.hero-actions-desktop {
    display: none; /* Oculto en móvil */
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    border-radius: 1rem;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
    gap: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

.qr-code {
    width: 6rem;
    height: 6rem;
    border-radius: 0.5rem;
    background-color: var(--color-white);
    padding: 0.25rem;
}

.hero-actions-desktop h3 {
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0;
}

.hero-actions-desktop p {
    margin-top: 0.25rem;
    color: #d1fae5;
    font-size: 1rem;
}


/* --- FEATURES SECTION --- */
.features-grid {
    max-width: 56rem;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
}

.feature-card {
    background-color: #f9fafb;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    text-align: center;
}

.feature-card__icon-wrapper {
    width: 5rem;
    height: 5rem;
    margin: 0 auto;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(to bottom right, #d1fae5, #a7f3d0);
    color: var(--color-green);
    font-size: 2.25rem;
}

.feature-card h3 {
    margin-top: 1.5rem;
    font-weight: 700;
    font-size: 1.5rem;
}
.feature-card p {
    margin-top: 0.5rem;
    color: var(--color-gray);
}


/* --- IMPACT SECTION --- */
.impact-grid {
    max-width: 64rem;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    text-align: center;
}
.impact-card {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.impact-card i {
    font-size: 3.75rem;
}
.impact-card__number {
    margin-top: 1rem;
    font-size: 3.75rem;
    font-weight: 800;
}
.impact-card__text {
    margin-top: 0.5rem;
    color: var(--color-gray);
    font-size: 1.125rem;
}
.icon-blue { color: #3b82f6; }
.text-blue { color: #2563eb; }
.icon-gray { color: #374151; }
.text-gray { color: #1f2937; }


/* --- LOCAL IMPACT (MAP) SECTION --- */
.local-impact-grid {
    display: grid;
    /* Comportamiento por defecto (móvil): una sola columna */
    grid-template-columns: 1fr; 
    gap: 3rem;
    align-items: center;
}

.stats-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
.stat-item {
    position: relative;
}
.stat-item__label {
    font-size: 1.25rem;
    font-weight: 600;
}
.stat-item__value {
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}
.stat-item__value span:first-child {
    font-size: 3.25rem;
    font-weight: 800;
}
.stat-item__value span:last-child {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-dark);
}
.text-green { color: var(--color-green); }

/* --- CTA SECTION MODERN --- */
.cta-section {
    background: linear-gradient(135deg, #0f3d4c 0%, #1a6b8c 100%);
    color: var(--color-white);
    padding: 6rem 0;
    overflow: hidden;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.cta-text-content {
    text-align: center;
}

.cta-text-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-text-content p {
    font-size: 1.125rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.cta-actions-modern {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn-store {
    display: inline-flex;
    align-items: center;
    background-color: #000;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-store:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.btn-store i {
    font-size: 2.5rem;
    margin-right: 1rem;
}

.btn-store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-store-text span {
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.btn-store-text strong {
    font-size: 1.25rem;
}

.social-share-modern p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.social-buttons-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-btn.facebook { background-color: #1877F2; }
.social-btn.whatsapp { background-color: #25D366; }

.social-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.cta-visual-content {
    display: flex;
    justify-content: center;
}

.qr-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    text-align: center;
    color: #0f3d4c;
    transform: rotate(2deg);
    transition: transform 0.4s ease;
}

.qr-card:hover {
    transform: rotate(0deg) scale(1.05);
}

.qr-img {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.qr-card p {
    font-weight: 700;
    margin: 0;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .cta-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
    }
    .cta-text-content {
        text-align: left;
    }
    .cta-actions-modern, .social-buttons-row {
        justify-content: flex-start;
    }
}


/* --- FOOTER --- */
.main-footer {
    background-color: #334155;
    color: var(--color-white);
    padding: 2rem 0;
    text-align: center;
}

.footer-subtitle {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* --- ESTILOS COMPARTIDOS Y DE UTILIDAD (Restos del CSS original) --- */
.cta-button {
    transition: all 0.3s ease;
}
.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(22, 163, 74, 0.4);
}
.card-hover-effect {
    transition: all 0.3s ease;
}
.card-hover-effect:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    border-color: #4ade80;
}
.disabled-button {
    background-color: #d1d5db;
    cursor: not-allowed;
    opacity: 0.7;
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.glow-effect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.3;
}
.glow-green::before { background-color: #22c55e; }
.glow-blue::before { background-color: #3b82f6; }
.map-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    aspect-ratio: 4 / 3;
}
.map-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
}
.map-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background-color: var(--color-green);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transform: translate(-50%, -50%);
}
.map-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    background-color: var(--color-green);
    border-radius: 50%;
    transform-origin: center;
    opacity: 0.8;
    animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

/* --- REGLAS RESPONSIVAS (Media Queries) --- */

/* Pantallas de tabletas y más grandes (sm) */
@media (min-width: 640px) {
    .hero-actions-mobile {
        flex-direction: row;
        justify-content: center;
    }
    .hero-button, .hero-button--disabled, .cta-section__button, .cta-section__button--disabled {
        width: auto;
    }
    .stat-item__value span:first-child {
        font-size: 4.5rem;
    }
    .stat-item__value span:last-child {
        font-size: 1.875rem;
    }
}

/* Pantallas de laptop y más grandes (md) */
@media (min-width: 768px) {
    .section-header h2 {
        font-size: 3rem;
    }
    .main-nav {
        justify-content: center;
        gap: 3rem;
    }
    .nav-links {
        display: flex;
    }
    .nav-mobile-menu {
        display: none;
    }
    .mobile-menu-dropdown {
        display: none !important;
    }
    .hero-content h1 {
        font-size: 4.5rem;
    }
    .hero-content p {
        font-size: 1.25rem;
    }
    .hero-actions-mobile {
        display: none;
    }
    .hero-actions-desktop {
        display: flex;
    }
    .features-grid, .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cta-actions {
        flex-direction: row;
        justify-content: center;
    }
    .cta-section h2 {
        font-size: 3rem;
    }
}

/* Pantallas de escritorio grandes (lg) */
@media (min-width: 1024px) {
    .local-impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-container {
        text-align: left;
    }
    .stat-item__value {
        justify-content: flex-start;
    }
    .stat-item__value span:first-child {
        font-size: 6rem;
    }
}



/* --- Estilos para la sección "Cómo Funciona" --- */
.feature-card ol {
    text-align: left;
    padding-left: 25px;
    margin-top: 15px;
}

.feature-card ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.faq-item summary {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 0;
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease-in-out;
}

.faq-item[open] > summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}

.faq-item p {
    padding: 0 1rem 1rem;
    line-height: 1.7;
    color: #334155;
}

.social-share {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.social-share p {
    margin-bottom: 1rem;
}

.social-share .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-share .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.15);
}

.cta-button--twitter {
    background-color: #1DA1F2;
    margin: 5px;
}

.cta-button--whatsapp {
    background-color: #25D366;
    margin: 5px;
}

.footer-socials {
    margin-bottom: 1rem;
}

.footer-socials a {
    color: #ffffff;
    margin: 0 12px;
    font-size: 1.75rem;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    opacity: 0.75;
}

.map-dot--villahermosa {
    top: 49%;
    left: 38%;
}

.features-gride {
    max-width: 56rem;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    align-items: center;
}



.lista {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-items: center;
    margin-bottom: 10px;
    line-height: 1.6;
}

.feature-carde ol {
    text-align: left;
    padding-left: 25px;
    margin-top: 15px;
}

.feature-carde ol li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* --- ESTILO PARA CENTRAR LA TARJETA DE MUNICIPIOS --- */
.single-card-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.single-card-container .feature-card {
  max-width: 48rem; /* Puedes ajustar el ancho máximo de la tarjeta */
  width: 100%;
}
/* =============================================
   ESTILOS PARA NUEVOS ELEMENTOS (APP Y FOOTER)
   ============================================= */

/* --- Estilos para la nueva sección de Capturas de Pantalla --- */
.app-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.app-screenshot {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.app-screenshot:hover {
    transform: translateY(-5px);
}

/* 4 columnas en pantallas más grandes */
@media (min-width: 768px) {
    .app-screenshots-grid {
        grid-template-columns: repeat(4, 1fr); 
        gap: 1.5rem;
    }
}


/* --- Estilos para el correo de contacto en el Footer --- */
.footer-contact {
    margin: 1.5rem 0 1rem;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.footer-contact a {
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #94a3b8;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #a7f3d0;
    border-bottom-color: #a7f3d0;
}

/* --- Estilos para la lista de municipios --- */
.single-card-container {
    max-width: 48rem; /* 768px */
    margin: 0 auto;
    padding-top: 3rem; 
}

.single-card-container .feature-card {
    text-align: center;
}

.lista {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    text-align: left;
    max-width: 30rem;
    margin: 1.5rem auto;
    gap: 0.5rem 1rem;
}

@media (min-width: 640px) {
    .lista {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- NUEVO HERO TEMA AGUA --- */
.hero-water-theme {
    position: relative;
    background: radial-gradient(circle at center, #1b4d5e 0%, #0c2b36 100%);
    /* Remove overflow: hidden to allow the stats bar to overlap */
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 0;
}

.hero-earth-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-30%, -50%);
    width: 900px;
    height: 900px;
    z-index: 1;
    opacity: 0.9;
}

.earth-globe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(34, 211, 238, 0.2)) brightness(0.9) contrast(1.1) saturate(1.2) hue-rotate(1.5);
    animation: rock-earth 15s ease-in-out infinite;
}

@keyframes rock-earth {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(3deg) scale(1.02); }
    100% { transform: rotate(0deg) scale(1); }
}

.tabasco-pointer {
    position: absolute;
    top: 54%;
    left: 42%;
    z-index: 2;
    animation: rock-pointer 15s ease-in-out infinite;
}

@keyframes rock-pointer {
    0% { transform: rotate(0deg) translate(0, 0); }
    50% { transform: rotate(3deg) translate(-10px, 15px); }
    100% { transform: rotate(0deg) translate(0, 0); }
}

.pointer-dot {
    width: 12px;
    height: 12px;
    background-color: #ef4444;
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.pointer-pulse {
    position: absolute;
    top: -14px;
    left: -14px;
    width: 40px;
    height: 40px;
    background-color: rgba(239, 68, 68, 0.4);
    border-radius: 50%;
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.hero-content-water {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 80vh;
    padding-top: 8rem; /* Increased padding to clear the fixed header */
    /* Extra bottom padding so it doesn't collide with the overlapping stats bar */
    padding-bottom: 6rem;
}

.floating-card {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    color: #0f3d4c;
}

.floating-card h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #0f3d4c;
}

.floating-card p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.floating-stats-bar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 1.5rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    align-self: center;
    width: 90%;
    max-width: 1000px;
    /* Use relative positioning and transform to overlap */
    position: relative;
    z-index: 20;
    transform: translateY(50%);
    animation: float-bar 6s ease-in-out infinite;
}

@keyframes float-bar {
    0% { transform: translateY(50%); }
    50% { transform: translateY(calc(50% - 10px)); }
    100% { transform: translateY(50%); }
}

.stat-group {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #64748b;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f3d4c;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.stat-unit {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
}

.stat-divider {
    width: 2px;
    height: 40px;
    background-color: #cbd5e1;
}

.circle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0f3d4c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.circle-btn:hover {
    transform: scale(1.1);
    background-color: #1a6b8c;
}

@media (max-width: 1024px) {
    .hero-earth-container {
        width: 600px;
        height: 600px;
        transform: translate(-40%, -40%);
    }
    .floating-stats-bar {
        flex-direction: column;
        border-radius: 24px;
        padding: 2rem;
        gap: 1.5rem;
        align-items: flex-start;
    }
    .stat-divider {
        width: 100%;
        height: 2px;
    }
}

@media (max-width: 768px) {
    .hero-water-theme {
        min-height: auto;
        flex-direction: column;
        padding-bottom: 0;
    }
    .hero-earth-container {
        position: relative;
        top: 0; left: 0;
        transform: none;
        width: 100%;
        height: 350px;
        margin-top: 2rem;
        order: 1; /* Keep globe above text */
    }
    .tabasco-pointer {
        top: 45%; left: 30%;
    }
    .hero-content-water {
        padding-top: 2rem;
        padding-bottom: 0; 
        order: 2;
    }
    .floating-card {
        max-width: 100%;
        margin-bottom: 2rem;
    }
    .floating-stats-bar {
        width: 100%;
        transform: translateY(20%); /* Less overlap on mobile so it doesn't hide everything */
    }
    @keyframes float-bar {
        0% { transform: translateY(20%); }
        50% { transform: translateY(calc(20% - 10px)); }
        100% { transform: translateY(20%); }
    }
}