/* ==========================================================================
   Nutre con Umami — hoja de estilos compartida
   Identidad: umami.md (prevalece). Estructura y espaciado: DESIGN.md.
   ========================================================================== */

/* ---------- Fuentes locales ---------- */
@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand-v37-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand-v37-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand-v37-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Quicksand";
  src: url("../fonts/quicksand-v37-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-v32-latin-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-v32-latin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-v32-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-v32-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Variables ---------- */
:root {
  /* Colores de marca (umami.md) */
  --color-bg: #fef9f2;          /* Fondo */
  --color-primary: #e4bb50;     /* Botones y CTA, siempre con texto --color-text */
  --color-primary-hover: #ebc866;
  --color-secondary: #698a81;   /* Titulares grandes y elementos grandes */
  --color-text: #3a5750;        /* Párrafos y texto de botones */
  --color-support: #5aa8a0;     /* Fondos suaves, formas decorativas */
  --color-accent: #e74327;      /* Solo detalles pequeños */
  --color-border: #ddd6ca;      /* Bordes y separadores */
  --color-secondary-text: #5c7971; /* #698a81 oscurecido para texto pequeño: 4,53:1 sobre el fondo (AA) */

  /* Tonos suaves derivados de la paleta */
  --color-teal-soft: #e5f1ec;
  --color-yellow-soft: #faefd2;
  --color-surface: #fbf3e7;

  --gradient-brand: linear-gradient(135deg, var(--color-support) 0%, var(--color-primary) 100%);
  --gradient-soft: linear-gradient(135deg, var(--color-teal-soft) 0%, var(--color-yellow-soft) 100%);

  /* Tipografía */
  --font-heading: "Quicksand", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-body: 1.0625rem;         /* 17px */
  --fs-small: 0.9375rem;        /* 15px */
  --fs-eyebrow: 0.8125rem;      /* 13px */
  --fs-lead: clamp(1.125rem, 1.5vw + 0.8rem, 1.3125rem);
  --fs-h1: clamp(2.25rem, 4vw + 1rem, 3.75rem);
  --fs-h2: clamp(1.75rem, 2.5vw + 0.9rem, 2.5rem);
  --fs-h3: 1.25rem;
  /* 19px en negrita = "texto grande" WCAG: #3a5750 sobre #e4bb50 (4,33:1) cumple AA */
  --fs-button: 1.1875rem;

  /* Radios */
  --radius-button: 12px;
  --radius-card: 16px;
  --radius-feature: 24px;
  --radius-pill: 999px;

  /* Espaciado (unidad base 4px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-section: 96px;

  /* Maquetación */
  --container: 1200px;
  --gutter: 20px;
  --reading: 720px;
  --header-h: 72px;
  --tap: 44px;
}

@media (min-width: 48em) {
  :root {
    --gutter: 32px;
    --header-h: 80px;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Compensa la cabecera fija al saltar a un ancla (#testimonios, #contacto…) */
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

/* #698a81 solo en tamaños grandes (≥24px): contraste 3,61:1, válido como texto grande */
h1 {
  font-size: var(--fs-h1);
  color: var(--color-secondary);
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--fs-h2);
  color: var(--color-secondary);
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.3;
  color: var(--color-text);
}

p {
  margin: 0 0 var(--space-4);
}

ul,
ol {
  margin: 0 0 var(--space-4);
  padding-left: 1.25em;
}

a {
  color: var(--color-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--color-accent);
}

:focus-visible {
  outline: 3px solid var(--color-text);
  outline-offset: 3px;
  border-radius: 4px;
}

strong {
  font-weight: 700;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: var(--radius-button);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  max-width: calc(var(--reading) + var(--gutter) * 2);
}

.section {
  padding-block: var(--space-16);
}

@media (min-width: 48em) {
  .section {
    padding-block: var(--space-section);
  }
}

.section + .section {
  padding-top: 0;
}

.section-head {
  max-width: 680px;
  margin-bottom: var(--space-12);
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
}

/* Sobretítulo al estilo "· NUTRE CON ·" */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  margin: 0 0 var(--space-4);
  font-family: var(--font-heading);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-text);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
  flex: none;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  min-width: var(--tap);
  padding: 10px 22px;
  border: 2px solid transparent;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-size: var(--fs-button);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-secondary);
  color: var(--color-text);
}

.btn-secondary:hover {
  background-color: var(--color-teal-soft);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-border);
}

.link-arrow svg {
  width: 20px;
  height: 20px;
  transition: transform 0.2s ease;
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ---------- Iconos de línea ---------- */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon-badge {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: var(--color-teal-soft);
  color: var(--color-text);
}

.icon-badge .icon {
  width: 28px;
  height: 28px;
}

/* ==========================================================================
   Cabecera
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3); /* 12px entre isotipo y logotipo */
  min-height: var(--tap);
  border-radius: 6px;
}

.brand img {
  width: auto;
  height: 36px;
  flex: none;
}

@media (min-width: 48em) {
  .brand img {
    height: 48px;
  }
}

/* Pantallas muy estrechas: el logotipo se reduce para no desplazar el botón de menú */
@media (max-width: 22.5em) {
  .brand-logotipo {
    height: 28px;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-width: var(--tap);
  min-height: var(--tap);
  padding: 0 var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-button);
  background: transparent;
  color: var(--color-text);
  font: 700 var(--fs-small) / 1 var(--font-body);
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
  width: 100%;
  padding-bottom: var(--space-4);
}

.nav-links {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: var(--space-2) var(--space-1);
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  font-weight: 700;
}

/* Subrayado corto con el color de acento: detalle pequeño */
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: var(--space-1);
  bottom: 6px;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--color-accent);
}

.nav-links a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-underline-offset: 6px;
}

.nav-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

/* Móvil y tablet: menú desplegable (solo si JS está activo) */
@media (max-width: 63.99em) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: var(--space-4) var(--gutter) var(--space-6);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
  }

  .js .site-header.is-open .site-nav {
    display: block;
  }

  .nav-links li + li {
    border-top: 1px solid var(--color-border);
  }
}

/* Escritorio: menú en línea */
@media (min-width: 64em) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-8);
    width: auto;
    padding: 0;
  }

  .nav-links {
    flex-direction: row;
    gap: var(--space-6);
  }

  .nav-links a {
    font-size: 1rem;
  }

  .nav-actions {
    flex-direction: row;
    margin: 0;
  }
}

/* ==========================================================================
   Pie
   ========================================================================== */
.site-footer {
  padding-block: var(--space-12) var(--space-8);
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-small);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 48em) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    align-items: start;
  }
}

.footer-brand img {
  width: 180px;
  margin-bottom: var(--space-3);
}

.footer-brand p {
  max-width: 32ch;
  margin: 0;
}

.footer-title {
  margin: 0 0 var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--tap);
  text-decoration: none;
}

.footer-list a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
}

.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.footer-bottom p {
  margin: 0;
}

/* Crédito a SIKIO: móvil debajo del copyright y centrado; desde 600px, a la derecha */
.footer-credit {
  margin-top: var(--space-2);
  color: var(--color-secondary-text);
  font-size: 0.8125rem; /* 13px */
  text-align: center;
}

.footer-credit a {
  color: inherit;
  text-decoration: none;
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
  text-decoration: underline;
}

.nowrap {
  white-space: nowrap;
}

@media (min-width: 37.5em) {
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-6);
  }

  .footer-credit {
    margin-top: 0;
    font-size: 0.875rem; /* 14px, algo menor que el copyright */
    text-align: right;
  }
}

/* ==========================================================================
   Portada
   ========================================================================== */
.hero {
  padding-block: var(--space-12) var(--space-16);
}

@media (min-width: 48em) {
  .hero {
    padding-block: var(--space-16) var(--space-section);
  }
}

.hero-grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 56em) {
  .hero-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.hero h1 {
  margin-bottom: var(--space-6);
}

.hero .lead {
  max-width: 36em;
  margin-bottom: var(--space-8);
}

.hero-art {
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border-radius: 58% 42% 55% 45% / 45% 55% 45% 55%;
}

/* Forma orgánica con degradado de marca */
.hero-art::before {
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0.22;
}

.hero-art::after {
  inset: 6%;
  border-radius: 45% 55% 48% 52% / 55% 45% 55% 45%;
  background: var(--color-bg);
  opacity: 0.75;
}

.hero-art img {
  position: relative;
  z-index: 1;
  width: 64%;
  margin: 18% auto 0;
}

/* Tarjetas */
.card-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 40em) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64em) {
  .card-grid-5 {
    grid-template-columns: repeat(5, 1fr);
  }

  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: var(--space-8) var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}

.card p:last-child {
  margin-bottom: 0;
}

.card-teal {
  background: var(--color-teal-soft);
  border-color: transparent;
}

.card-yellow {
  background: var(--color-yellow-soft);
  border-color: transparent;
}

/* Portada: tarjetas de grupos de servicios (toda la tarjeta es enlace) */
.group-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  transition: border-color 0.2s ease;
}

.group-card:hover {
  border-color: var(--color-support);
}

.group-card:has(a:focus-visible) {
  outline: 3px solid var(--color-text);
  outline-offset: 3px;
}

.group-card .illustration {
  height: 160px;
}

.group-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-6);
}

.group-card h3 a {
  text-decoration: none;
}

.group-card h3 a:focus-visible {
  outline: none;
}

.group-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.group-card-more {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
  font-weight: 700;
}

.group-card-more svg {
  width: 20px;
  height: 20px;
}

.section-foot {
  margin-top: var(--space-8);
}

/* Cabecera de "Sobre mí": foto y texto en dos columnas */
.about-hero-grid {
  display: grid;
  gap: var(--space-12);
}

.photo-frame {
  position: relative;
  width: min(72%, 300px);
  margin-inline: auto;
}

@media (min-width: 48em) {
  .photo-frame {
    width: min(60%, 380px);
  }
}

.about-hero-text {
  max-width: 40em;
}

.about-hero-text h1 {
  margin-bottom: var(--space-2);
}

.about-subhead {
  margin: var(--space-8) 0 var(--space-3);
  font-size: 1.125rem;
  color: var(--color-text);
}

.about-hero-text .btn {
  margin-top: var(--space-4);
}

/* Escritorio: la foto se estira hasta la altura del texto */
@media (min-width: 64em) {
  .about-hero-grid {
    grid-template-columns: 5fr 7fr;
    gap: var(--space-16);
    align-items: stretch;
  }

  .photo-frame {
    width: 100%;
    margin: 0;
  }

  .photo-frame .photo-arch {
    height: 100%;
    min-height: 480px;
  }

  .about-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
  }
}

/* Forma orgánica de fondo tras la foto */
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 8% -6% -5% 8%;
  border-radius: 999px 999px var(--radius-feature) var(--radius-feature);
  background: var(--gradient-brand);
  opacity: 0.35;
}

.photo-arch {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  border-radius: 999px 999px var(--radius-feature) var(--radius-feature);
}

/* Cómo funciona */
.steps-panel {
  padding: var(--space-12) var(--space-6);
  background: var(--color-teal-soft);
  border-radius: var(--radius-feature);
}

@media (min-width: 48em) {
  .steps-panel {
    padding: var(--space-16) var(--space-12);
  }
}

.steps {
  display: grid;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

@media (min-width: 48em) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.steps li {
  counter-increment: paso;
}

.steps li::before {
  content: counter(paso);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-4);
  border: 2px solid var(--color-support);
  border-radius: 50%;
  background: var(--color-bg);
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
}

.steps p {
  margin: 0;
}

/* Testimonios */
.testimonial-grid {
  display: grid;
  gap: var(--space-6);
  grid-auto-rows: 1fr; /* todas las tarjetas con la misma altura */
}

@media (min-width: 56em) {
  .testimonial-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Con un testimonio desplegado, solo crece su fila */
.testimonial-grid:has([aria-expanded="true"]) {
  grid-auto-rows: auto;
}

.testimonial {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: var(--space-8) var(--space-6);
  background: var(--color-yellow-soft);
  border-color: transparent;
  border-radius: var(--radius-feature);
}

@media (min-width: 48em) {
  .testimonial {
    padding: var(--space-8);
  }
}

/* Comilla decorativa */
.testimonial-mark {
  display: block;
  height: 0.5em;
  margin-bottom: var(--space-4);
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-support);
  opacity: 0.6;
}

.testimonial-text {
  margin: 0;
}

.testimonial-text p {
  margin: 0;
}

/* Con JS, los textos largos se recortan a 7 líneas; sin JS se ven completos */
.js .testimonial-text.is-clamped p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 7;
  line-clamp: 7;
  overflow: hidden;
}

.testimonial-toggle {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin-top: var(--space-2);
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font: 700 var(--fs-body) / 1.2 var(--font-body);
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 3px;
  cursor: pointer;
}

.testimonial-toggle[hidden] {
  display: none;
}

.testimonial-toggle:hover {
  text-decoration-color: var(--color-accent);
}

.testimonial figcaption {
  margin-top: auto;
  padding-top: var(--space-6);
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}

/* Bloque de llamada a la acción */
.cta-band {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: var(--space-8);
  padding: var(--space-12) var(--space-6);
  background: var(--color-teal-soft);
  border-radius: var(--radius-feature);
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-brand);
}

@media (min-width: 48em) {
  .cta-band {
    padding: var(--space-16) var(--space-12);
  }
}

@media (min-width: 56em) {
  .cta-band-split {
    grid-template-columns: 7fr 5fr;
    align-items: center;
    gap: var(--space-12);
  }
}

.cta-band-center {
  text-align: center;
  justify-items: center;
}

.cta-band h2 {
  margin-bottom: var(--space-3);
}

.cta-band p {
  max-width: 40em;
}

.contact-list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: var(--space-6);
  list-style: none;
  background: var(--color-bg);
  border-radius: var(--radius-card);
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--tap);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
}

.contact-list .icon-badge {
  width: 44px;
  height: 44px;
  margin: 0;
}

.contact-list .icon-badge .icon {
  width: 22px;
  height: 22px;
}

.contact-label {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 400;
}

/* ==========================================================================
   Páginas interiores
   ========================================================================== */
.page-hero {
  padding-block: var(--space-12);
}

@media (min-width: 48em) {
  .page-hero {
    padding-block: var(--space-16);
  }
}

.page-hero-name {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 1vw + 1.1rem, 1.75rem);
  font-weight: 700;
  color: var(--color-text);
}

/* Cabecera seguida de contenido (Servicios): un solo espaciado, no dos */
.page-hero-tight {
  padding-bottom: calc(var(--space-8) + var(--space-2)); /* 40px */
}

@media (min-width: 48em) {
  .page-hero-tight {
    padding-bottom: var(--space-16); /* 64px */
  }
}

.page-hero-tight + .section {
  padding-top: 0;
}

.page-hero .lead {
  max-width: 38em;
  margin-bottom: 0;
}

/* Servicios: navegación interna */
.subnav {
  margin-top: var(--space-8);
}

.subnav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: var(--space-2) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pill-link:hover {
  background: var(--color-teal-soft);
  border-color: var(--color-support);
}

/* Servicios: grupos y tarjetas */
.service-group h2 {
  margin-bottom: var(--space-8);
}

.service-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 56em) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-feature);
}

/* Ilustraciones de línea negra sobre blanco: el blanco se funde con el fondo suave */
.illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: var(--color-yellow-soft);
}

.service-card:nth-child(even) .illustration,
.group-card:nth-child(even) .illustration {
  background: var(--color-teal-soft);
}

.illustration img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.service-card .illustration {
  height: 220px;
}

.service-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--space-8) var(--space-6);
}

@media (min-width: 48em) {
  .service-card-body {
    padding: var(--space-8);
  }
}

.service-card-body h3 {
  margin-bottom: var(--space-2);
  font-size: 1.5rem;
}

.service-card-price {
  margin: 0 0 var(--space-1);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.service-card-meta {
  font-size: var(--fs-small);
}

.service-card-foot {
  margin-top: auto;
  padding-top: var(--space-6);
}

/* Desplegable "Ver más" */
.more {
  border-top: 1px solid var(--color-border);
}

.more summary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--tap);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-border);
  text-underline-offset: 3px;
  cursor: pointer;
  list-style: none;
}

.more summary::-webkit-details-marker {
  display: none;
}

.more summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.more[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}

.more summary:hover {
  text-decoration-color: var(--color-accent);
}

.more-content {
  padding-top: var(--space-2);
}

.more-content h4 {
  margin: var(--space-6) 0 var(--space-2);
  font-size: 1.0625rem;
  line-height: 1.3;
}

.more-content p:last-child,
.more-content ul:last-child {
  margin-bottom: 0;
}

.check-list,
.more-content ul {
  padding-left: 0;
  list-style: none;
}

.check-list li,
.more-content li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: var(--space-2);
}

.check-list li::before,
.more-content li::before {
  content: "";
  position: absolute;
  left: 0.2em;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-support);
}

/* Sobre mí */
.card-teal .icon-badge,
.card-yellow .icon-badge {
  background: var(--color-bg);
}

.values .card h3 {
  margin-top: 0;
}

/* ==========================================================================
   Páginas legales
   ========================================================================== */
.legal-hero {
  padding-block: var(--space-12) var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.legal-hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.75rem);
}

.legal-updated {
  margin: 0;
  font-size: var(--fs-small);
}

.legal {
  padding-block: var(--space-12) var(--space-section);
}

.legal h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-3);
  font-size: 1.5rem;
}

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

.legal h3 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  font-size: 1.125rem;
}

.legal li {
  margin-bottom: var(--space-2);
}

/* Caja de aviso destacado */
.notice {
  margin: var(--space-6) 0;
  padding: var(--space-6);
  background: var(--color-teal-soft);
  border-left: 4px solid var(--color-support);
  border-radius: var(--radius-card);
}

.notice-title {
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
  font-weight: 700;
}

.notice p:last-child {
  margin-bottom: 0;
}

.legal-contact {
  margin-top: var(--space-12);
}

/* Enlaces a las otras páginas legales */
.legal-related {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}

.legal-related p {
  margin-bottom: var(--space-2);
  font-weight: 700;
}

.legal-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.legal-related a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
}

/* ---------- Campaña de Navidad (borrar al terminar la campaña) ---------- */
/* Caduca sola: js/main.js añade .promo-expired desde el 7/1/2027 00:00 (hora peninsular) */
.promo-expired .promo-banner {
  display: none;
}

.promo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
  min-height: var(--tap);
  padding: var(--space-2) var(--gutter);
  background: #3f5c52;
  color: #faf7ef;
  font-size: var(--fs-small);
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.promo-banner:hover {
  color: #faf7ef;
}

.promo-banner:focus-visible {
  outline: 3px solid #e4bc53;
  outline-offset: -5px;
  border-radius: 0;
}

.promo-banner-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

/* Dos bolas de Navidad que se balancean desde el punto donde cuelga el hilo */
.promo-baubles {
  flex: none;
  width: 22px;
  height: 26px;
  overflow: visible;
}

.promo-bauble-thread {
  stroke: #faf7ef;
  stroke-width: 0.8;
  opacity: 0.7;
}

.promo-bauble {
  transform-box: view-box;
}

.promo-bauble-1 {
  transform-origin: 7px 0;
}

.promo-bauble-2 {
  transform-origin: 18px 0;
}

@media (prefers-reduced-motion: no-preference) {
  .promo-bauble {
    animation: promo-swing 3s ease-in-out infinite;
  }

  .promo-bauble-2 {
    animation-delay: -0.6s;
  }
}

@keyframes promo-swing {
  0%, 100% { transform: rotate(5deg); }
  50% { transform: rotate(-5deg); }
}

.promo-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: #e4bc53;
  /* Verde más oscuro que el fondo de la franja para llegar a contraste AA (6:1) */
  color: #2a4039;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.promo-banner:hover .promo-banner-btn {
  background: #ebc866;
}

.promo-banner-desktop {
  display: none;
}

@media (min-width: 37.5em) {
  .promo-banner-desktop {
    display: inline;
  }
}

/* Árbol de Navidad animado de especial-navidad.html */
.xmas-art {
  width: min(100%, 420px);
  margin-inline: auto;
}

.xmas-tree {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
}

/* Sin animación: bolas encendidas y nieve quieta */
.xmas-glow {
  opacity: 0.6;
}

@media (prefers-reduced-motion: no-preference) {
  .xmas-flake {
    animation: xmas-snow linear infinite;
  }

  .xmas-glow {
    animation: xmas-glow 3s ease-in-out infinite;
  }

  .xmas-bauble {
    animation: xmas-bauble 3s ease-in-out infinite;
  }

  .xmas-light-2 .xmas-glow,
  .xmas-light-2 .xmas-bauble {
    animation-delay: -1s;
  }

  .xmas-light-3 .xmas-glow,
  .xmas-light-3 .xmas-bauble {
    animation-delay: -2s;
  }
}

@keyframes xmas-snow {
  from { transform: translate(0, calc(-1 * var(--y) - 10px)); }
  to { transform: translate(var(--x), calc(470px - var(--y))); }
}

@keyframes xmas-glow {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.85; }
}

@keyframes xmas-bauble {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Aviso informativo de privacidad (se crea desde js/main.js) */
.privacy-notice {
  position: fixed;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--gutter);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 24px rgba(58, 87, 80, 0.15);
  color: var(--color-text);
}

.privacy-notice-text {
  margin: 0;
  font-size: var(--fs-small);
}

.privacy-notice-btn {
  flex: none;
  min-height: var(--tap);
  padding: 8px 20px;
}

@media (min-width: 37.5em) {
  .privacy-notice {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
  }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
