/* ========================================================================
   GPE Sistemas — sitio web
   Tokens del manual de marca v1.0 (mayo 2026) + base + componentes
   ======================================================================== */

/* ---------------------------------------------------------------------------
   1. Tokens — copiados textuales del manual sección 09 (`:root`)
   --------------------------------------------------------------------------- */
:root {
  /* Color — Primarios */
  --gpe-primary: #FC9A31;
  --gpe-primary-dark: #E07C10;
  --gpe-primary-light: #FFC07A;
  --gpe-primary-soft: #FFE8CC;

  /* Color — Neutros */
  --gpe-graphite: #252525;
  --gpe-graphite-soft: #3A3A3A;
  --gpe-light-bg: #F5F5F5;
  --gpe-surface: #FFFFFF;
  --gpe-text: #252525;
  --gpe-text-secondary: #555555;
  --gpe-text-muted: #888888;
  --gpe-border: #E2E2E2;

  /* Color — Semánticos */
  --gpe-success: #4CAF50;
  --gpe-error: #E53935;
  --gpe-warning: #F5A623;
  --gpe-info: #2196F3;

  /* Tipografía */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-mono: 'Roboto Mono', monospace;

  /* Radios */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Espaciado vertical entre secciones (decisión wireframe §14.1) */
  --space-section: 8rem;
  --space-block: 3rem;
  --space-sub: 1.5rem;

  /* Container */
  --container-max: 1200px;
  --container-pad: 1.5rem;
}

@media (max-width: 1023px) {
  :root {
    --space-section: 5rem;
    --space-block: 2rem;
    --space-sub: 1rem;
  }
}

/* ---------------------------------------------------------------------------
   2. Reset minimal
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gpe-text);
  background: var(--gpe-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; margin: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   3. Tipografía — escala del wireframe §14.1
   --------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--gpe-text);
  margin: 0 0 1rem;
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: 4rem; }
h2 { font-size: 2.5rem; font-weight: 600; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

@media (max-width: 767px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
}

.lead {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--gpe-text-secondary);
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gpe-primary);
  margin: 0 0 1.5rem;
}

.section-number {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gpe-primary);
  margin-bottom: 2rem;
  display: block;
}

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  text-align: center;
  max-width: 50ch;
  margin: 4rem auto 0;
  color: var(--gpe-text-secondary);
  line-height: 1.4;
}

.metric-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1;
  color: var(--gpe-graphite);
  margin: 0;
}

code, .mono {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

em { font-style: italic; color: var(--gpe-primary); }

/* ---------------------------------------------------------------------------
   4. Container y secciones
   --------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

section {
  padding: var(--space-section) 0;
}

section.alt {
  background: var(--gpe-light-bg);
}

section.dark {
  background: var(--gpe-graphite);
  color: var(--gpe-surface);
}

section.dark h1,
section.dark h2,
section.dark h3,
section.dark h4 {
  color: var(--gpe-surface);
}

section.dark .lead,
section.dark p {
  color: rgba(255, 255, 255, 0.85);
}

section.dark .section-number {
  color: var(--gpe-primary);
}

/* ---------------------------------------------------------------------------
   5. Header
   --------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: background 200ms ease, backdrop-filter 200ms ease, padding 200ms ease;
}

.site-header.scrolled {
  background: rgba(37, 37, 37, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.75rem 0;
}

.site-header.solid {
  background: var(--gpe-graphite);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-header .logo img {
  height: 36px;
  width: auto;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gpe-surface);
  position: relative;
  padding: 0.25rem 0;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--gpe-primary);
  transition: width 200ms ease;
}

.nav-desktop a:hover::after { width: 100%; }

.nav-desktop .dropdown {
  position: relative;
}

.nav-desktop .dropdown-menu {
  position: absolute;
  /* El hueco visual se hace con margin, NO con top: si se separa con `top` el
     espacio queda fuera del elemento y el menú se cierra al bajar el cursor. */
  top: 100%;
  margin-top: 0.75rem;
  /* Alineado al borde izquierdo del trigger. Con `right: 0` el menú se iba
     280px hacia la izquierda, quedando debajo de los items anteriores. */
  left: 0;
  right: auto;
  background: var(--gpe-graphite);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 280px;
  max-width: calc(100vw - 2rem);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 200ms ease, transform 200ms ease;
}

/* Puente invisible sobre el hueco del margin-top. Es parte del .dropdown-menu,
   que a su vez está dentro de .dropdown, así que al pasar el cursor por acá
   `.dropdown:hover` sigue activo y el menú no se cierra. */
.nav-desktop .dropdown-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -0.75rem;
  height: 0.75rem;
}

.nav-desktop .dropdown:hover .dropdown-menu,
.nav-desktop .dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-desktop .dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.nav-desktop .dropdown-menu a::after { display: none; }

.nav-desktop .dropdown-menu a:hover {
  background: rgba(252, 154, 49, 0.1);
  color: var(--gpe-primary);
}

.nav-desktop .dropdown-menu .material-symbols-outlined {
  font-size: 20px;
  color: var(--gpe-primary);
}

.menu-toggle {
  display: none;
  color: var(--gpe-surface);
  padding: 0.5rem;
}

.menu-toggle .material-symbols-outlined {
  font-size: 28px;
}

@media (max-width: 1023px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* Mobile menu fullscreen */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--gpe-graphite);
  z-index: 200;
  display: none;
  flex-direction: column;
  padding: 2rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.nav-mobile-header img {
  height: 32px;
}

.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gpe-surface);
  padding: 0.5rem 0;
  display: block;
}

.nav-mobile .nav-mobile-group-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gpe-primary);
  margin: 2rem 0 0.5rem;
}

/* ---------------------------------------------------------------------------
   6. Hero
   --------------------------------------------------------------------------- */
.hero {
  background: var(--gpe-graphite);
  color: var(--gpe-surface);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

/* Gradient luminoso del manual de marca — capa animada */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 30% 40%, rgba(252, 154, 49, 0.28) 0%, transparent 35%),
    radial-gradient(circle at 70% 60%, rgba(252, 154, 49, 0.18) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(252, 154, 49, 0.10) 0%, transparent 55%);
  animation: heroGlow 18s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}

/* Capa estática de refuerzo */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(252, 154, 49, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(252, 154, 49, 0.08) 0%, transparent 50%);
  z-index: 0;
  pointer-events: none;
}

@keyframes heroGlow {
  0%   { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5%, 3%) rotate(5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before { animation: none; }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-logo {
  width: 420px;
  max-width: 75%;
  height: auto;
  display: block;
  margin: 0 auto 2.5rem;
  filter: drop-shadow(0 0 40px rgba(252, 154, 49, 0.25));
}

@media (max-width: 767px) {
  .hero-logo { width: 280px; margin-bottom: 1.5rem; }
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 2rem;
  color: var(--gpe-surface);
}

.hero h1 em {
  font-style: italic;
  color: var(--gpe-primary);
}

.hero .hero-desc {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 56ch;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.85);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  color: rgba(255, 255, 255, 0.5);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 767px) {
  .hero { min-height: 80vh; padding: 6rem 0 3rem; }
  .hero h1 { font-size: 2.75rem; margin-bottom: 1.5rem; }
  .hero .hero-desc { font-size: 1.0625rem; }
  .scroll-indicator { display: none; }
}

/* Hero subpáginas — diferente al home */
.hero-page {
  background: var(--gpe-graphite);
  color: var(--gpe-surface);
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: left;
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(252, 154, 49, 0.15), transparent 60%);
  z-index: 0;
}

.hero-page .container { position: relative; z-index: 1; max-width: 960px; }

.hero-page .eyebrow { color: var(--gpe-primary); margin-bottom: 1rem; }
.hero-page h1 { color: var(--gpe-surface); margin-bottom: 1.5rem; max-width: 18ch; }
.hero-page .hero-desc {
  font-size: 1.25rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 62ch;
}

@media (max-width: 767px) {
  .hero-page { min-height: auto; padding: 7rem 0 3rem; }
  .hero-page h1 { max-width: 100%; }
  .hero-page .hero-desc { font-size: 1.0625rem; }
}

/* ---------------------------------------------------------------------------
   7. Grids genéricos
   --------------------------------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-block);
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sub);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sub);
}

.grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-sub);
}

@media (max-width: 1023px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 639px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------------------
   8. Cards — pilares, verticales, métricas, técnicas
   --------------------------------------------------------------------------- */
.card {
  background: var(--gpe-surface);
  border: 1px solid var(--gpe-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: transform 200ms ease, border-color 200ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--gpe-primary);
}

.card .icon {
  font-family: 'Material Symbols Outlined';
  font-size: 32px;
  color: var(--gpe-primary);
  display: block;
  margin-bottom: 1rem;
}

.card h4 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--gpe-text-secondary);
  font-size: 0.9375rem;
}

/* Vertical card sobre fondo oscuro */
.vertical-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  color: var(--gpe-surface);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
}

.vertical-card:hover {
  transform: translateY(-4px);
  border-color: var(--gpe-primary);
  background: rgba(252, 154, 49, 0.06);
}

.vertical-card .icon {
  font-family: 'Material Symbols Outlined';
  font-size: 36px;
  color: var(--gpe-primary);
}

.vertical-card h4 {
  color: var(--gpe-surface);
  font-size: 1.0625rem;
  margin: 0;
}

.vertical-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  margin: 0;
}

.vertical-card .arrow {
  margin-top: auto;
  font-family: 'Material Symbols Outlined';
  font-size: 22px;
  color: var(--gpe-primary);
}

/* ---------------------------------------------------------------------------
   8-bis. Prosa legal — políticas de privacidad (pp-*.html)
   Estas páginas se enlazan desde las tiendas de apps: las URLs no cambian.
   --------------------------------------------------------------------------- */
.hero-legal h1 { max-width: 32ch; }

.legal {
  max-width: 72ch;
}

.legal h2 {
  font-size: 1.375rem;
  margin: var(--space-block) 0 var(--space-sub);
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--gpe-border);
}

.legal h2:first-child { margin-top: 0; }

.legal h3 {
  font-size: 1.0625rem;
  margin: var(--space-sub) 0 0.5rem;
}

.legal p {
  color: var(--gpe-text-secondary);
  margin-bottom: 1rem;
}

.legal ul,
.legal ol {
  color: var(--gpe-text-secondary);
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.legal li { margin-bottom: 0.5rem; }

.legal strong { color: var(--gpe-text); font-weight: 600; }

.legal a {
  color: var(--gpe-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal hr {
  border: 0;
  border-top: 1px solid var(--gpe-border);
  margin: var(--space-block) 0;
}

@media (max-width: 767px) {
  .legal h2 { font-size: 1.1875rem; }
}

/* Platform card — plataformas con marca y sitio propio (narrativa §7-bis).
   Cada marca conserva su color: se pasa por --brand en el elemento. */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sub);
}

@media (max-width: 767px) {
  .platform-grid { grid-template-columns: 1fr; }
}

.platform-card {
  --brand: var(--gpe-primary);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2.25rem 2rem;
  background: var(--gpe-surface);
  border: 1px solid var(--gpe-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  overflow: hidden;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.platform-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--brand);
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 12px 28px rgba(37, 37, 37, 0.1);
}

.platform-logo {
  display: flex;
  align-items: center;
  min-height: 56px;
}

.platform-logo img {
  width: auto;
  max-width: 100%;
  height: auto;
}

/* Alturas por marca — normaliza el peso óptico entre un lockup 1.65:1 y otro 4:1 */
.platform-logo img.logo-irix     { max-height: 54px; }
.platform-logo img.logo-coliving { max-height: 38px; }
.platform-logo img.logo-insideht { max-height: 34px; }

.platform-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--brand);
  margin: 0;
}

.platform-card p.platform-desc {
  color: var(--gpe-text-secondary);
  font-size: 0.9375rem;
  margin: 0;
}

.platform-link {
  margin-top: auto;
  padding-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--gpe-text);
}

.platform-link .material-symbols-outlined {
  font-size: 18px;
  color: var(--brand);
  transition: transform 200ms ease;
}

.platform-card:hover .platform-link .material-symbols-outlined {
  transform: translate(2px, -2px);
}

/* Card sin marca ni sitio propio: no es un enlace, no lleva flecha ni dominio.
   Caso seguridad ciudadana — ver narrativa §7-bis. */
.platform-card--static {
  cursor: default;
}

.platform-card--static:hover {
  transform: none;
  border-color: var(--gpe-border);
  box-shadow: none;
}

.platform-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gpe-text);
  margin: 0;
}

/* Grilla de íconos de las apps municipales.
   Mismo min-height que .platform-logo: así el título de esta card arranca a la
   misma altura que el tagline de las cards con marca. Los 9 íconos tienen que
   entrar en UNA fila — si envuelven, se rompe la alineación. */
.platform-apps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  min-height: 56px;
}

/* Ancho fluido para que los 9 quepan en una fila en cualquier ancho de card:
   descuenta los 8 gaps y reparte, con techo de 44px. */
.platform-apps img {
  width: clamp(28px, calc((100% - 4rem) / 9), 44px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid var(--gpe-border);
  background: var(--gpe-surface);
}

.platform-note {
  margin-top: auto;
  padding-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--gpe-text-muted);
}


/* Link contextual al pie de una subpágina vertical */
.platform-inline {
  --brand: var(--gpe-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 1.5rem;
  background: var(--gpe-surface);
  border: 1px solid var(--gpe-border);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--gpe-text);
  font-size: 0.9375rem;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.platform-inline:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 18px rgba(37, 37, 37, 0.08);
}

.platform-inline img {
  height: 26px;
  width: auto;
}

.platform-inline img.logo-coliving { height: 20px; }
.platform-inline img.logo-insideht { height: 18px; }

.platform-inline .material-symbols-outlined {
  font-size: 18px;
  color: var(--brand);
}

/* Métrica grande */
.metric {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-label {
  color: var(--gpe-text-secondary);
  font-size: 0.9375rem;
}

.metric + .metric { margin-top: 2rem; }

/* Bloque técnico destacado (TechBlock) */
.tech-block {
  background: var(--gpe-surface);
  border: 1px solid var(--gpe-border);
  border-left: 3px solid var(--gpe-primary);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}

.tech-block strong {
  color: var(--gpe-graphite);
  font-weight: 600;
}

section.alt .tech-block { background: var(--gpe-surface); }
section.dark .tech-block {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  border-left-color: var(--gpe-primary);
  color: var(--gpe-surface);
}

/* Acronym pill — sin caja, solo cambio de familia */
.tech-block .mono,
p .mono { color: var(--gpe-graphite); font-weight: 500; }
section.dark .mono { color: var(--gpe-primary-light); }

/* ---------------------------------------------------------------------------
   9. Contacto — card mailto
   --------------------------------------------------------------------------- */
.contact-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.contact-block h2 { margin: 0; }

.mail-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  border: 1px solid var(--gpe-border);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--gpe-graphite);
  transition: border-color 200ms ease, transform 200ms ease;
}

.mail-card:hover {
  border-color: var(--gpe-primary);
  transform: translateY(-2px);
}

.mail-card .material-symbols-outlined {
  font-size: 24px;
  color: var(--gpe-primary);
}

.address {
  text-align: center;
  color: var(--gpe-text-secondary);
  font-size: 0.9375rem;
}

.address-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gpe-graphite);
  font-size: 1rem;
  margin-top: 1rem;
}

/* ---------------------------------------------------------------------------
   10. CTA cierre subpáginas
   --------------------------------------------------------------------------- */
.cta-cierre {
  text-align: center;
  padding: var(--space-section) 0;
}

.cta-cierre h2 {
  max-width: 26ch;
  margin: 0 auto 2.5rem;
  font-size: 2rem;
  font-weight: 600;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gpe-primary);
  color: var(--gpe-graphite);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  transition: background 200ms ease, transform 200ms ease;
}

.btn-primary:hover {
  background: var(--gpe-primary-dark);
  transform: translateY(-2px);
}

.btn-primary .material-symbols-outlined { font-size: 20px; }

/* ---------------------------------------------------------------------------
   11. Footer
   --------------------------------------------------------------------------- */
.site-footer {
  background: var(--gpe-graphite);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.site-footer a:hover { color: var(--gpe-primary); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 639px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-logo img { height: 40px; margin-bottom: 1rem; }

.footer-grid h5 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gpe-surface);
  margin: 0 0 1rem;
}

.footer-grid ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid li { font-size: 0.9375rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 639px) {
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------------------------------------------------------------------------
   12. Back to top
   --------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--gpe-primary);
  color: var(--gpe-graphite);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover { transform: translateY(-3px); background: var(--gpe-primary-dark); }
.back-to-top .material-symbols-outlined { font-size: 22px; }

/* ---------------------------------------------------------------------------
   13. Animaciones de aparición
   --------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------------------
   14. Utilidades
   --------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.max-w-prose { max-width: 65ch; }
.max-w-prose-narrow { max-width: 55ch; }

/* Focus accesible */
:focus-visible {
  outline: 2px solid var(--gpe-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
