/*
 * LegalClaro — main.css
 * Estilos de componentes y layout para index.html
 * Usa SOLO variables de design-system.css — sin hex hardcodeados
 */

/* design-system.css se carga en el HTML antes que este archivo */


/* ─────────────────────────────────────────────
   NAV
   ───────────────────────────────────────────── */

body > header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background-color: var(--navy-800);
  border-bottom: 1px solid var(--navy-900);
}

header nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  height: 4rem;
}

/* Logo */
header nav > a:first-child {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--duration-fast) var(--ease-out);
}

header nav > a:first-child img {
  height: 1.875rem;
  width: auto;
}

header nav > a:first-child:hover {
  opacity: 0.85;
}

/* hamburger — solo mobile */
header nav > button {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-ink-inverted);
}

/* Nav links */
header nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin-left: auto;
}

header nav ul a {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

header nav ul a:hover {
  color: var(--color-ink-inverted);
}

/* último link = CTA */
header nav ul li:last-child a {
  background-color: var(--color-cta);
  color: var(--color-cta-text);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
}

header nav ul li:last-child a:hover {
  background-color: var(--color-cta-hover);
  color: var(--color-cta-text);
  box-shadow: var(--shadow-sm);
}

/* Toggle de idioma ES/DE */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: var(--space-1) var(--space-3);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.lang-toggle:hover {
  color: var(--color-ink-inverted);
  border-color: rgba(255, 255, 255, 0.6);
}

.lang-toggle span:first-child {
  font-weight: var(--weight-semibold);
}

.lang-toggle[aria-pressed="true"] span:first-child {
  font-weight: var(--weight-medium);
}

.lang-toggle[aria-pressed="true"] span:last-child {
  font-weight: var(--weight-semibold);
  color: var(--color-ink-inverted);
}

@media (max-width: 768px) {
  header nav > button {
    display: flex;
  }

  header nav ul {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background-color: white;
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) var(--container-pad) var(--space-6);
    gap: var(--space-4);
    box-shadow: var(--shadow-md);
  }

  header nav ul[data-open="true"] {
    display: flex;
  }

  header nav ul a {
    color: var(--color-ink-muted);
  }

  header nav ul a:hover {
    color: var(--color-ink);
  }

  header nav ul li:last-child a {
    display: inline-flex;
    color: var(--color-cta-text);
  }

  .lang-toggle {
    margin-left: var(--space-2);
  }
}


/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */

main > section:first-child {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-block: var(--space-16) var(--space-20);
}

@media (min-width: 768px) {
  main > section:first-child {
    grid-template-columns: 1fr 1fr;
    padding-inline: var(--container-pad-lg);
    gap: var(--space-16);
  }
}

/* eyebrow label */
main > section:first-child > div > p:first-child {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--claro-600);
  margin-bottom: var(--space-4);
}

main > section:first-child h1 {
  font-size: var(--text-4xl);
  line-height: 1.1;
  letter-spacing: var(--tracking-tight);
  color: var(--navy-900);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  main > section:first-child h1 {
    font-size: var(--text-6xl);
  }
}

main > section:first-child > div > p:nth-child(3) {
  font-size: var(--text-lg);
  color: var(--color-ink-muted);
  line-height: var(--leading-normal);
  max-width: 48ch;
  margin-bottom: var(--space-8);
}

/* CTA group */
main > section:first-child [role="group"] {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

main > section:first-child [role="group"] a:first-child {
  display: inline-flex;
  align-items: center;
  padding: var(--space-4) var(--space-8);
  background-color: var(--color-cta);
  color: var(--color-cta-text);
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition:
    background-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

main > section:first-child [role="group"] a:first-child:hover {
  background-color: var(--color-cta-hover);
  box-shadow: var(--shadow-lg);
}

main > section:first-child [role="group"] a:first-child:active {
  transform: scale(0.97);
}

main > section:first-child [role="group"] a:last-child {
  display: inline-flex;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  color: var(--navy-700);
  font-weight: var(--weight-medium);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: color var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-out);
}

main > section:first-child [role="group"] a:last-child:hover {
  background-color: var(--navy-50);
  color: var(--navy-900);
}

/* trust pills */
main > section:first-child ul[role="list"] {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

main > section:first-child ul[role="list"] li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  font-weight: var(--weight-medium);
}

main > section:first-child ul[role="list"] li span {
  color: var(--color-success);
  font-weight: var(--weight-bold);
}

/* hero image */
main > section:first-child figure {
  display: flex;
  justify-content: center;
}

main > section:first-child figure img {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}


/* ─────────────────────────────────────────────
   TRUST BAR
   ───────────────────────────────────────────── */

main > section:nth-child(2) {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding-block: var(--space-6);
}

main > section:nth-child(2) > p {
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  margin-bottom: var(--space-4);
}

main > section:nth-child(2) ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-6) var(--space-8);
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

main > section:nth-child(2) ul li {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--navy-600);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-full);
  background-color: white;
}


/* ─────────────────────────────────────────────
   CÓMO FUNCIONA
   ───────────────────────────────────────────── */

#como-funciona {
  padding-block: var(--section-py);
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

#como-funciona > header {
  text-align: center;
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

#como-funciona > header h2 {
  margin-bottom: var(--space-4);
}

#como-funciona > header p {
  font-size: var(--text-lg);
  color: var(--color-ink-muted);
  max-width: 100%;
}

#como-funciona ol {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  #como-funciona ol {
    grid-template-columns: repeat(3, 1fr);
  }
}

#como-funciona ol article {
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background-color: var(--color-surface);
  position: relative;
  transition: box-shadow var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out);
}

#como-funciona ol article:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--claro-300);
}

#como-funciona ol article > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--claro-100);
  color: var(--claro-700);
  font-size: var(--text-sm);
  font-weight: var(--weight-extrabold);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

#como-funciona ol article h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

#como-funciona ol article p {
  font-size: var(--text-base);
  color: var(--color-ink-muted);
  max-width: 100%;
}


/* ─────────────────────────────────────────────
   DOCUMENTOS
   ───────────────────────────────────────────── */

#documentos {
  padding-block: var(--section-py);
  background-color: var(--color-bg-subtle);
}

#documentos > header {
  text-align: center;
  max-width: 56ch;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  margin-bottom: var(--space-12);
}

#documentos > header h2 {
  margin-bottom: var(--space-4);
}

#documentos > header p {
  font-size: var(--text-lg);
  color: var(--color-ink-muted);
  max-width: 100%;
}

#documentos ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

@media (min-width: 640px) {
  #documentos ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  #documentos ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

#documentos ul article {
  background-color: white;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: box-shadow var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

#documentos ul article:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

#documentos ul article img {
  width: 3rem;
  height: 3rem;
}

#documentos ul article h3 {
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

#documentos ul article h3 span {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  background-color: var(--navy-100);
  color: var(--navy-600);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
}

#documentos ul article p {
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
  max-width: 100%;
  flex: 1;
}

#documentos ul article a {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--claro-600);
  text-decoration: none;
  gap: var(--space-1);
  transition: color var(--duration-fast) var(--ease-out);
}

#documentos ul article a:hover {
  color: var(--claro-700);
}

/* cards de AGB/AVV (deshabilitadas) */
#documentos ul li:nth-child(3) article,
#documentos ul li:nth-child(4) article {
  opacity: 0.65;
}


/* ─────────────────────────────────────────────
   POR QUÉ LEGALCLARO
   ───────────────────────────────────────────── */

main > section[aria-labelledby="por-que-heading"] {
  padding-block: var(--section-py);
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

main > section[aria-labelledby="por-que-heading"] > header {
  text-align: center;
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

main > section[aria-labelledby="por-que-heading"] > header h2 {
  margin-bottom: var(--space-4);
}

main > section[aria-labelledby="por-que-heading"] > header p {
  font-size: var(--text-lg);
  color: var(--color-ink-muted);
  max-width: 100%;
}

main > section[aria-labelledby="por-que-heading"] ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 1024px) {
  main > section[aria-labelledby="por-que-heading"] ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

main > section[aria-labelledby="por-que-heading"] ul article {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background-color: var(--color-surface);
  transition: box-shadow var(--duration-normal) var(--ease-out);
}

@media (max-width: 767px) {
  main > section[aria-labelledby="por-que-heading"] ul article {
    flex-direction: column;
    gap: var(--space-2);
  }
}

main > section[aria-labelledby="por-que-heading"] ul article:hover {
  box-shadow: var(--shadow-md);
}

main > section[aria-labelledby="por-que-heading"] ul article h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

main > section[aria-labelledby="por-que-heading"] ul article p {
  font-size: var(--text-base);
  color: var(--color-ink-muted);
  max-width: 100%;
}


/* ─────────────────────────────────────────────
   PRECIOS
   ───────────────────────────────────────────── */

#precios {
  padding-block: var(--section-py);
  background-color: var(--color-bg-subtle);
}

#precios > header {
  text-align: center;
  max-width: 48ch;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  margin-bottom: var(--space-12);
}

#precios > header h2 {
  margin-bottom: var(--space-4);
}

#precios > header p {
  font-size: var(--text-lg);
  color: var(--color-ink-muted);
  max-width: 100%;
}

#precios ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 56rem;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  margin-bottom: var(--space-8);
}

@media (min-width: 640px) {
  #precios ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

#precios ul article {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* plan destacado */
#precios ul li:nth-child(2) article {
  border-color: var(--claro-500);
  border-width: 2px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

/* badge "más popular" */
#precios ul li:nth-child(2) article > p:first-child {
  display: inline-flex;
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  background-color: var(--claro-100);
  color: var(--claro-700);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  max-width: max-content;
}

#precios ul article h3 {
  font-size: var(--text-2xl);
}

#precios ul article > p[aria-label="Precio"] {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--navy-800);
  letter-spacing: var(--tracking-tight);
}

#precios ul article ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 0;
  margin: 0;
}

#precios ul article ul li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}

#precios ul article ul li::before {
  content: '✓';
  color: var(--color-success);
  font-weight: var(--weight-bold);
  flex-shrink: 0;
}

#precios ul article a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-3) var(--space-6);
  background-color: var(--color-cta);
  color: var(--color-cta-text);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  margin-top: auto;
}

#precios ul article a:hover {
  background-color: var(--color-cta-hover);
  box-shadow: var(--shadow-md);
}

#precios ul article a:active {
  transform: scale(0.97);
}

/* botón plan free — secundario */
#precios ul li:first-child article a {
  background-color: transparent;
  color: var(--navy-700);
  border: 2px solid var(--navy-200);
}

#precios ul li:first-child article a:hover {
  background-color: var(--navy-50);
  border-color: var(--navy-300);
  box-shadow: none;
}

#precios > p:last-child {
  text-align: center;
  color: var(--color-ink-subtle);
  padding-inline: var(--container-pad);
}


/* ─────────────────────────────────────────────
   FAQ
   ───────────────────────────────────────────── */

#faq {
  padding-block: var(--section-py);
  max-width: var(--container-md);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

#faq > header {
  text-align: center;
  margin-bottom: var(--space-12);
}

#faq dl {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

#faq dt {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--navy-800);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  background-color: white;
  transition: border-color var(--duration-fast) var(--ease-out),
              border-radius var(--duration-fast) var(--ease-out);
}

#faq dt:hover {
  border-color: var(--claro-300);
}

#faq dd {
  font-size: var(--text-base);
  color: var(--color-ink-muted);
  line-height: var(--leading-normal);
  padding: 0 var(--space-6) var(--space-5);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background-color: white;
  max-width: 100%;
  margin-bottom: var(--space-2);
}


/* ─────────────────────────────────────────────
   CTA FINAL
   ───────────────────────────────────────────── */

/* ───────────────────────────────────────── */
/* Avísame gratis (captador de leads)         */
/* ───────────────────────────────────────── */
#avisame {
  background-color: var(--color-bg-subtle);
  padding-block: var(--section-py-lg);
  padding-inline: var(--container-pad);
}

#avisame > header {
  text-align: center;
  max-width: 56ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

#avisame h2 {
  color: var(--navy-800);
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

#avisame > header p {
  color: var(--color-ink-muted);
  font-size: var(--text-base);
}

#avisame form {
  max-width: 48ch;
  margin-inline: auto;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

#avisame .campo label {
  display: block;
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-2);
  color: var(--navy-900);
}

#avisame input[type="email"] {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-family: inherit;
}

#avisame fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

#avisame legend {
  font-weight: var(--weight-semibold);
  color: var(--navy-900);
  margin-bottom: var(--space-3);
  padding: 0;
}

#avisame fieldset ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

#avisame fieldset li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
}

#avisame .campo--checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-ink-muted);
}

#avisame .campo--checkbox a {
  color: var(--claro-700);
}

#avisame input[type="checkbox"] {
  margin-top: 0.2em;
  flex-shrink: 0;
}

#avisame button[type="submit"] {
  align-self: center;
  padding: var(--space-4) var(--space-10);
  background-color: var(--color-cta);
  color: var(--color-cta-text);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out);
}

#avisame button[type="submit"]:hover {
  background-color: var(--color-cta-hover);
}

#avisame-status {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--navy-700);
  min-height: 1.2em;
}


main > section[aria-labelledby="cta-final-heading"] {
  background-color: var(--color-bg-subtle);
  padding-block: var(--section-py-lg);
  text-align: center;
  padding-inline: var(--container-pad);
}

main > section[aria-labelledby="cta-final-heading"] h2 {
  color: var(--navy-800);
  font-size: var(--text-5xl);
  margin-bottom: var(--space-4);
}

main > section[aria-labelledby="cta-final-heading"] > p:nth-child(2) {
  font-size: var(--text-lg);
  color: var(--color-ink-muted);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

main > section[aria-labelledby="cta-final-heading"] a {
  display: inline-flex;
  align-items: center;
  padding: var(--space-4) var(--space-10);
  background-color: var(--color-cta);
  color: var(--color-cta-text);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition:
    background-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

main > section[aria-labelledby="cta-final-heading"] a:hover {
  background-color: var(--color-cta-hover);
  box-shadow: var(--shadow-xl);
}

main > section[aria-labelledby="cta-final-heading"] a:active {
  transform: scale(0.97);
}

main > section[aria-labelledby="cta-final-heading"] > p:last-child {
  margin-top: var(--space-4);
  color: var(--color-ink-subtle);
  max-width: 100%;
}


/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */

footer {
  background-color: var(--navy-800);
  color: rgba(255, 255, 255, 0.7);
  padding-block: var(--space-16) var(--space-8);
}

footer nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
  footer nav {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-8);
  }
}

@media (min-width: 1024px) {
  footer nav {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

footer nav > div > a {
  display: inline-block;
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: white;
  text-decoration: none;
  margin-bottom: var(--space-3);
  letter-spacing: var(--tracking-tight);
}

footer nav > div > p {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  max-width: 30ch;
}

footer nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

footer nav ul a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

footer nav ul a:hover {
  color: white;
}

footer address {
  font-style: normal;
}

footer address a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--duration-fast) var(--ease-out);
}

footer address a:hover {
  color: white;
}

footer > p:last-child {
  max-width: var(--container-lg);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer > p:last-child small {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
}


/* Bandera de región (DE/LU) — separa visualmente el servicio por país, sin confundir al cliente */
.region-flag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}
.region-flag .flag {
  font-size: 1.2em;
  line-height: 1;
}
