/* Explicación: Base visual compartida: paleta, tipografía, botones, portada, tarjetas y pie de página. */
/* Explicación: Variables de color reutilizadas para mantener una misma paleta. */
:root { color-scheme: light; --navy: #0d1c32; --cream: #f8f9ff; --mint: #89f5e7; --green: #006a61; --ink: #0b1c30; --muted: #526071; --surface: #eff4ff; --line: #dce3ed; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Inter, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .brand { font-family: 'Plus Jakarta Sans', Inter, Arial, sans-serif; }
input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #006a61; outline-offset: 5px; }
/* Explicación: Enlace para saltar directamente al contenido con teclado. */
.skip-link { position: absolute; top: -80px; left: 16px; z-index: 10; background: white; padding: 12px; }
.skip-link:focus { top: 12px; }
.site-header { background: var(--cream); }
.header-inner { min-height: 74px; max-width: 1120px; margin: auto; padding: 16px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: 23px; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; background: var(--mint); border-radius: 12px; }
.brand-mark svg { width: 20px; height: 20px; fill: #4b826e; }
.account-button { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 12px; color: white; background: var(--navy); }
.account-button svg { width: 17px; height: 17px; fill: currentColor; }
/* Explicación: Portada de inicio con fondo degradado y altura adaptada a la pantalla. */
.hero { min-height: calc(100svh - 74px); padding: 146px 30px 80px; background: radial-gradient(ellipse at 48% 16%, #1b3848 0%, #112e50 43%, #021e3d 100%); color: white; }
.hero-content { max-width: 540px; margin: auto; text-align: center; }
.preview-badge { min-height: 42px; margin: 0 0 23px; padding: 7px 15px; display: flex; align-items: center; justify-content: center; gap: 13px; border-radius: 12px; background: #ffffff2b; color: #bde2be; font-size: 12px; line-height: 1.2; text-transform: uppercase; font-weight: 700; }
.status-dot { flex: 0 0 7px; height: 7px; border-radius: 50%; background: #46795d; }
h1 { margin: 0; font-size: clamp(30px, 8.7vw, 48px); line-height: 1.23; letter-spacing: -.7px; }
.hero-description { margin: 18px 0 39px; font-size: 17px; line-height: 1.55; }
.hero-actions { display: grid; gap: 14px; }
.button { min-height: 42px; padding: 12px 16px; display: flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 5px; color: white; font-size: 13px; font-weight: 700; text-decoration: none; line-height: 1.3; transition: background .4s, transform .4s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); }
.button-primary:hover { background: #427e64; }
.button-primary svg { width: 14px; height: 14px; fill: currentColor; }
.button-secondary { background: #ffffff1c; }
.button-secondary:hover { background: #ffffff2b; }
.button-secondary span { margin-left: 4px; font-size: 21px; line-height: 13px; }
.about { padding: 24px 30px 36px; background: #f8f9ff; scroll-margin-top: 24px; }
.section-inner { max-width: 1060px; margin: auto; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: 1.5px; }
h2 { margin: 12px 0 16px; font-size: 30px; line-height: 1.2; }
.about p, .account-dialog p { line-height: 1.6; }
.about .eyebrow { margin: 0 0 8px; color: var(--navy); font-size: 11px; letter-spacing: 1px; }
.about h2 { margin: 0 0 12px; }
.about-description { max-width: 650px; margin: 0; color: #526071; font-size: 15px; }
/* Explicación: Distribución de las tarjetas que presentan los módulos. */
.feature-grid { display: grid; gap: 20px; margin-top: 32px; }
.module-card { display: flex; flex-direction: column; align-items: flex-start; padding: 20px; border-radius: 10px; background: #fff; }
.module-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 7px; background: #e1f5ec; color: var(--green); }
.module-icon svg { width: 20px; height: 20px; fill: currentColor; }
.module-card .module-label { margin: 0 0 5px; color: var(--green); font-size: 10px; font-weight: bold; text-transform: uppercase; letter-spacing: .7px; }
.module-card h3 { margin: 0 0 10px; font-size: 18px; }
.module-card > p:not(.module-label) { margin: 0 0 16px; color: #526071; font-size: 14px; line-height: 1.6; }
.module-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 44px; margin-top: auto; padding: 8px 0 0; border: 0; background: transparent; color: var(--navy); text-align: left; font-size: 12px; font-weight: bold; }
.module-link span { color: #578e79; font-size: 24px; font-weight: normal; }
.module-link { text-decoration: none; }
.module-link:hover { color: var(--green); }
h3 { margin: 14px 0 8px; font-size: 21px; }
.feature-grid p { margin: 0; }
.community { padding: 32px 30px 48px; background: #f8f9ff; }
.community-heading { max-width: 580px; margin: 0 auto 36px; text-align: center; }
.community-badge { display: inline-block; max-width: 100%; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: #d4efdc; color: var(--green); font-size: 9px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; line-height: 1.5; }
.community-heading h2 { margin: 0 0 18px; font-size: 32px; line-height: 1.2; }
.community-heading > p:last-child { margin: 0; font-size: 15px; font-weight: bold; line-height: 1.5; }
/* Explicación: Galería de países; el script del carrusel amplía estos estilos. */
.country-grid { display: grid; gap: 20px; padding: 20px; border-radius: 14px; background: #fff; }
.country-card { min-width: 0; padding: 16px; border-radius: 5px; background: #f8f9ff; }
.country-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.country-code { flex-shrink: 0; font-size: 18px; font-weight: bold; }
.country-heading h3 { margin: 0 0 6px; font-size: 19px; }
.country-heading p { margin: 0; font-size: 11px; font-weight: bold; line-height: 1.5; }
.country-photo { position: relative; overflow: hidden; margin: 0; aspect-ratio: 1.4; background: #dce6df; }
.country-photo img { display: block; width: 100%; height: 100%; object-fit: cover; font-size: 12px; }
.country-photo figcaption { position: absolute; inset: auto 0 0; padding: 20px 8px 10px; background: linear-gradient(transparent, #0d1c32e6); color: white; font-size: 12px; font-weight: bold; line-height: 1.4; }
.country-description { margin: 14px 0 0; color: #526071; font-size: 13px; line-height: 1.6; }
.photo-credits { margin-top: 16px; color: #526071; font-size: 11px; line-height: 1.5; }
.photo-credits summary { cursor: pointer; }
.photo-credits p { margin: 8px 0; }
.closing { padding: 36px 30px; background: #f8f9ff; }
.closing-card { max-width: 1060px; margin: auto; padding: 26px 22px 22px; border-radius: 12px; background: #0d1c32; color: white; text-align: center; box-shadow: 0 10px 16px #0d1c3218; }
.closing-card h2 { margin: 0 0 16px; font-size: 30px; line-height: 1.2; }
.closing-card p { max-width: 370px; margin: 0 auto 32px; font-size: 15px; font-weight: bold; line-height: 1.6; }
.closing-card .button { width: 100%; max-width: 370px; margin: auto; }
.closing-card .button span { font-size: 18px; }
/* Explicación: Estilos del pie y sus enlaces de navegación. */
.site-footer { padding: 32px 30px 24px; background: #0d1c32; color: white; font-size: 12px; line-height: 1.6; }
.footer-inner { max-width: 1060px; margin: auto; }
.footer-brand-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-brand { gap: 6px; font-size: 22px; }
.footer-brand .brand-mark { width: 28px; height: 28px; border-radius: 50%; background: var(--green); }
.footer-brand .brand-mark svg { width: 16px; height: 16px; fill: white; }
.footer-countries { color: #c8eadb; font-size: 10px; font-weight: bold; }
.footer-nav { display: flex; align-items: center; flex-wrap: wrap; column-gap: 18px; row-gap: 0; margin: 12px 0 18px; }
.footer-nav a, .footer-nav button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: transparent; color: white; font: inherit; text-decoration: none; }
.footer-nav a:hover, .footer-nav button:hover { color: var(--mint); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { padding-top: 14px; border-top: 1px solid #ffffff1a; font-size: 11px; }
.footer-bottom p { margin: 0 0 6px; }
#informacion, #ayuda, #contacto { scroll-margin-top: 24px; }
.account-dialog { width: calc(100% - 40px); max-width: 440px; padding: 32px; border: 0; border-radius: 16px; background: #f5f3e8; color: var(--navy); }
.account-dialog::backdrop { background: #00152dbf; }
.dialog-close { position: absolute; top: 8px; right: 12px; width: 36px; height: 36px; background: transparent; color: var(--navy); border: 0; font-size: 28px; }
.dialog-confirm { width: 100%; margin-top: 24px; }
body:has(dialog[open]) { overflow: hidden; }
/* Explicación: Ajusta distribución y tamaños para esta condición de pantalla. */
@media (min-width: 768px) {
  .header-inner { min-height: 88px; padding: 20px 40px; }
  /* Explicación: Portada de inicio con fondo degradado y altura adaptada a la pantalla. */
.hero { min-height: calc(100svh - 88px); padding: 100px 40px; display: grid; align-items: center; }
  .hero-content { width: 100%; }
  .preview-badge { max-width: 390px; margin-left: auto; margin-right: auto; }
  .hero-description { font-size: 20px; }
  .hero-actions { max-width: 390px; margin: auto; }
  .button { min-height: 48px; font-size: 15px; }
  .about { padding: 88px 40px; }
  /* Explicación: Distribución de las tarjetas que presentan los módulos. */
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community { padding: 64px 40px 80px; }
  .community-heading h2 { font-size: 40px; }
  /* Explicación: Galería de países; el script del carrusel amplía estos estilos. */
.country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding: 24px; }
  .country-card { padding: 24px; }
  .country-photo { aspect-ratio: 1.6; }
  .closing { padding: 48px 40px; }
  .closing-card { padding: 48px 32px; }
  .closing-card h2 { font-size: 40px; }
  /* Explicación: Estilos del pie y sus enlaces de navegación. */
.site-footer { padding: 40px; }
  .footer-bottom { display: flex; justify-content: space-between; gap: 20px; }
}
/* Explicación: Ajusta distribución y tamaños para esta condición de pantalla. */
@media (max-width: 359px) {
  .header-inner { padding-inline: 22px; }
  /* Explicación: Portada de inicio con fondo degradado y altura adaptada a la pantalla. */
.hero { padding: 105px 22px 64px; }
  .preview-badge { font-size: 11px; }
  h1 { font-size: 28px; }
  .hero-description { font-size: 16px; }
}
/* Explicación: Desactiva movimiento adicional cuando el usuario prefiere menos animaciones. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
