/* --- 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;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-gray-light);
    color: var(--color-gray-dark);
    margin: 0;
     overflow-x: hidden;

}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.section--light-bg {
    background-color: var(--color-gray-light);
}

.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.8);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.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 --- */
.cta-section {
    background-color: var(--color-green-dark);
    color: var(--color-white);
    padding: 6rem 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
}
.cta-section p {
    margin-top: 1rem;
    color: #a7f3d0;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem;
}

.cta-actions {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-section__button, .cta-section__button--disabled {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
}
.cta-section__button {
    background-color: var(--color-white);
    color: var(--color-green-dark);
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
}
.cta-section__button--disabled {
    background-color: rgba(6, 95, 70, 0.5);
    color: var(--color-white);
}
.cta-section__button i, .cta-section__button--disabled i {
    margin-right: 0.5rem;
    font-size: 1.25rem;
}

/* --- 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(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.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);
    }
}