/* =============================================================
   app.css · Marketplace ASEMDIS v2
   -------------------------------------------------------------
   CSS propio, sin frameworks. Sistema de diseño extraído de la
   maqueta aprobada (docs/ficha-referencia.html): tokens, rotación
   de color por sección, separadores dashed, marco orgánico,
   subrayado de última palabra y sticky de contacto.
   Al final: estilos del layout global (cabecera, menú off-canvas,
   pie de 3 franjas, WhatsApp flotante) y utilidades de accesibilidad.
   ============================================================= */

/* -------------------------------------------------------------
   FUENTES DE MARCA (servidas localmente desde /fuentes/).
   Alte Haas Grotesk (400/700) + Raspberry (400, solo la tagline).
   Fallbacks de DESIGN §1: Work Sans / Caveat Brush / system.
   ------------------------------------------------------------- */
@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("../fuentes/AlteHaasGroteskRegular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("../fuentes/AlteHaasGroteskBold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Raspberry";
  src: url("../fuentes/Raspberry.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}


/* ============================================
   TOKENS
   ============================================ */
:root {
  --teal:        #2DAEAA;
  --teal-dark:   #157C79; /* AA 5.0:1 (sincronizado con tokens.css) */
  --teal-darker: #126763;
  --teal-soft:   #DCF1EF;
  --teal-pale:   #F0FAF8;

  --coral:       #EE6E5C; /* vivo: solo decoración */
  --coral-dark:  #B53A2A; /* AA 5.8:1: texto de acento y fondo de botón */
  --coral-darker:#8F2E20; /* hover de botón coral */
  --coral-soft:  #FCE2DD;

  --orange:      #F4A731;
  --orange-dark: #D78A14;
  --orange-ink:  #8A5A0C; /* AA 5.9:1: texto de acento naranja */
  --orange-soft: #FCEAC9;

  --ink:         #111111;
  --ink-soft:    #4A4A4A;
  --ink-muted:   #6A6A6A; /* AA: 5.4:1 sobre blanco (sincronizado con tokens.css) */

  --white:       #FFFFFF;
  --gray-line:   #E8E8E8;
  --gray-bg:     #F7F7F7;

  --f-brand: "Alte Haas Grotesk", "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-script: "Raspberry", "Caveat Brush", cursive;

  --t-h1: 60px;
  --t-h2: 48px;
  --t-h3: 28px;
  --t-body: 24px;
  --lh-body: 36px;
  --t-small: 18px;
  --t-tiny: 16px;

  --max-w: 1200px;
}

/* ============================================
   BASE
   ============================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-brand);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
/* El atributo [hidden] debe ganar siempre (si no, .btn{display:inline-flex} y
   similares lo anulan y muestran elementos que deben estar ocultos). */
[hidden] { display: none !important; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
a { color: var(--teal-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--coral-dark); text-decoration: underline; text-underline-offset: 4px; }

p { font-family: var(--f-brand); font-size: var(--t-body); line-height: var(--lh-body); margin-block-end: 0.9rem; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 980px; }

h1 { font-family: var(--f-brand); font-size: var(--t-h1); font-weight: 700; line-height: 1.1; color: var(--ink); letter-spacing: -0.005em; margin-bottom: 28px; }
h2 { font-family: var(--f-brand); font-size: var(--t-h2); font-weight: 700; line-height: 1.15; color: var(--ink); letter-spacing: -0.005em; margin-bottom: 28px; }
h3 { font-family: var(--f-brand); font-size: var(--t-h3); font-weight: 700; line-height: 1.4; color: var(--ink); }

/* ============================================
   SEPARADOR DASHED — dos variantes de ancho + 4 variantes de color
   --header: un poco más ancho que el canvas (entre header y hero)
   --full:   ancho completo (entre secciones)
   ============================================ */
.dashed-divider {
  display: block;
  height: 30px;
  background-repeat: repeat-x;
  background-size: auto 30px;
  background-position: 0 50%;
  /* color por defecto: coral */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9.5 30'><path fill='%23EE6E5C' d='M4.32,4.12c-.19-1.22-.32-2.25-.4-3.13C2.92.15,1.76-.25.63.17c-.22.08-.43.2-.63.34.04.24.06.51.07.81.02,1.63.33,18.4,1.13,20.63-.2,2.6.24,6.27,1.65,7.57.73.67,1.68,0,1.84-1.24.11-.85.22-1.71.35-2.56.09-.57,0-1.16-.19-1.68,0-.01,0-.03-.01-.04,0-7.49-.42-17.93-.51-19.89Z'/></svg>");
}
/* Anchos */
.dashed-divider--header {
  width: 100%;
  max-width: 1320px;     /* un poquito más ancho que el canvas (1200) */
  margin: 0 auto;
}
.dashed-divider--full {
  width: 100%;
  margin: 0;
}
/* Colores — rotación: coral → orange → teal → teal-darker */
.dashed-divider--coral {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9.5 30'><path fill='%23EE6E5C' d='M4.32,4.12c-.19-1.22-.32-2.25-.4-3.13C2.92.15,1.76-.25.63.17c-.22.08-.43.2-.63.34.04.24.06.51.07.81.02,1.63.33,18.4,1.13,20.63-.2,2.6.24,6.27,1.65,7.57.73.67,1.68,0,1.84-1.24.11-.85.22-1.71.35-2.56.09-.57,0-1.16-.19-1.68,0-.01,0-.03-.01-.04,0-7.49-.42-17.93-.51-19.89Z'/></svg>");
}
.dashed-divider--orange {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9.5 30'><path fill='%23F4A731' d='M4.32,4.12c-.19-1.22-.32-2.25-.4-3.13C2.92.15,1.76-.25.63.17c-.22.08-.43.2-.63.34.04.24.06.51.07.81.02,1.63.33,18.4,1.13,20.63-.2,2.6.24,6.27,1.65,7.57.73.67,1.68,0,1.84-1.24.11-.85.22-1.71.35-2.56.09-.57,0-1.16-.19-1.68,0-.01,0-.03-.01-.04,0-7.49-.42-17.93-.51-19.89Z'/></svg>");
}
.dashed-divider--teal {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9.5 30'><path fill='%232DAEAA' d='M4.32,4.12c-.19-1.22-.32-2.25-.4-3.13C2.92.15,1.76-.25.63.17c-.22.08-.43.2-.63.34.04.24.06.51.07.81.02,1.63.33,18.4,1.13,20.63-.2,2.6.24,6.27,1.65,7.57.73.67,1.68,0,1.84-1.24.11-.85.22-1.71.35-2.56.09-.57,0-1.16-.19-1.68,0-.01,0-.03-.01-.04,0-7.49-.42-17.93-.51-19.89Z'/></svg>");
}
.dashed-divider--teal-dark {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9.5 30'><path fill='%23126763' d='M4.32,4.12c-.19-1.22-.32-2.25-.4-3.13C2.92.15,1.76-.25.63.17c-.22.08-.43.2-.63.34.04.24.06.51.07.81.02,1.63.33,18.4,1.13,20.63-.2,2.6.24,6.27,1.65,7.57.73.67,1.68,0,1.84-1.24.11-.85.22-1.71.35-2.56.09-.57,0-1.16-.19-1.68,0-.01,0-.03-.01-.04,0-7.49-.42-17.93-.51-19.89Z'/></svg>");
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 34px;
  font-family: var(--f-brand);
  font-size: var(--t-tiny); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: 999px;
  transition: all .25s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn--coral { background: var(--coral-dark); color: var(--white); }
.btn--coral:hover { background: var(--coral-darker); color: var(--white); text-decoration: none; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); text-decoration: none; }
/* Botón secundario tipo enlace (p. ej. "Configurar" del banner de cookies):
   no compite con Aceptar/Rechazar, que son idénticos entre sí. */
.btn--enlace { background: transparent; color: var(--ink-soft); border: 0; text-decoration: underline; text-underline-offset: 3px; padding: 11px 14px; text-transform: none; letter-spacing: 0; }
.btn--enlace:hover { color: var(--teal-darker); background: transparent; }

/* ============================================
   BREADCRUMB
   ============================================ */
/* Migas de pan · única implementación (izquierda, separador "/").
   El separador se pinta con li+li::before, así funciona igual tanto si el
   elemento actual es <li aria-current> como <li><span aria-current>. */
.breadcrumb {
  padding: 20px 0 16px;
  font-size: var(--t-small);
  color: var(--ink-muted);
}
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.breadcrumb li { display: flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: "/"; color: var(--gray-line); }
.breadcrumb a { color: var(--ink-muted); }
.breadcrumb a:hover { color: var(--teal-dark); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ============================================
   BANNER DE COOKIES · preferencias granulares + toggles
   (la base .cookie-banner vive en site.css/ayudas.css)
   ============================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cookie-prefs { flex: 1 1 100%; border-top: 1px solid var(--gray-line); margin-top: 4px; padding-top: 14px; }
.cookie-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cookie-cat { display: flex; align-items: center; gap: 18px; justify-content: space-between; }
.cookie-cat__txt { display: flex; flex-direction: column; gap: 2px; max-width: 640px; }
.cookie-cat__txt strong { font-size: 15px; color: var(--ink); }
.cookie-cat__txt span { font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.toggle { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; cursor: pointer; }
.toggle input { position: absolute; inset: 0; width: 46px; height: 26px; opacity: 0; margin: 0; cursor: pointer; }
.toggle__ui { width: 46px; height: 26px; border-radius: 999px; background: var(--gray-line); position: relative; display: block; transition: background .2s; }
.toggle__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.toggle input:checked + .toggle__ui { background: var(--teal); }
.toggle input:checked + .toggle__ui::after { transform: translateX(20px); }
.toggle input:focus-visible + .toggle__ui { outline: 3px solid var(--teal-darker); outline-offset: 2px; }
.toggle--fija, .toggle--fija input { cursor: default; }

/* ============================================
   HERO
   ============================================ */
.hero { padding: 60px 0 110px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 90px;
  align-items: center;
}

.hero__badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  background: var(--white);
  border: 2px solid var(--teal);
  color: var(--teal-darker);
  border-radius: 999px;
  font-size: var(--t-tiny); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 32px;
  line-height: 1;
}
.hero__badge svg { width: 20px; height: 20px; color: var(--teal); }

.hero h1 .keyword { color: var(--teal-darker); }

/* ============================================
   ÚLTIMA PALABRA — subrayado SVG decorativo bajo la última palabra
   El color del subrayado se hereda del color de acento de la sección
   ============================================ */
.last-word {
  position: relative;
  display: inline-block;
  /* color del span coincide con el texto, el SVG lleva su propio fill */
}
.last-word .word-deco {
  position: absolute;
  left: 0;
  bottom: -22px;     /* distancia con respiración desde la base de la palabra */
  width: 100%;
  height: 18px;
  pointer-events: none;
  display: block;
}
.last-word .word-deco path { fill: var(--coral); /* default; sobreescrito por sección */ }

/* H2 lleva un poco más de espacio porque la línea base es más grande */
h2 .last-word .word-deco { bottom: -22px; height: 20px; }
h1 .last-word .word-deco { bottom: -28px; height: 22px; }

/* El subrayado a mano (word-deco) es absoluto y baja ~22-28px, metiéndose en el
   margen inferior: el encabezado parece pegado a lo que sigue. Reservamos ese
   espacio con padding-bottom = alcance del trazo, de modo que el margin-bottom
   del encabezado pase a ser el hueco REAL bajo el subrayado (aire coherente). */
h1:has(> .last-word .word-deco) { padding-bottom: 28px; }
h2:has(> .last-word .word-deco) { padding-bottom: 22px; }
h3:has(> .last-word .word-deco) { padding-bottom: 20px; }

/* Color del subrayado por sección (sigue el divisor superior) */
.hero .last-word .word-deco path                  { fill: var(--coral); }
.section--sobre .last-word .word-deco path        { fill: var(--orange); }
.section--servicios .last-word .word-deco path    { fill: var(--teal); }
.section--proceso .last-word .word-deco path      { fill: var(--teal-darker); }
.section--faq .last-word .word-deco path          { fill: var(--coral); }
.contact .last-word .word-deco path               { fill: var(--orange); }
.section--relacionados .last-word .word-deco path { fill: var(--teal); }
.cta-strip .last-word .word-deco path             { fill: var(--orange); }

.hero__subtitle {
  font-size: 28px; font-weight: 400; line-height: 1.4;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.hero__subtitle strong { color: var(--ink); font-weight: 700; }

.hero__pitch {
  font-size: var(--t-body); line-height: var(--lh-body);
  color: var(--ink-soft);
  max-width: 580px;
  margin-bottom: 40px;
}

.hero__ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ============================================
   MARCO ORGÁNICO PARA FOTO — SVG personalizado de Asemdis
   ============================================ */
.photo-frame {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 551.94 / 554.08;
}
.photo-frame__marco {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
}
.photo-frame__marco path { fill: var(--teal); }
.photo-frame__img {
  position: absolute;
  inset: 6%;
  width: 88%; height: 88%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
  display: block;
}

/* ============================================
   TARJETA CONTACTO HERO (sin recuadro de fondo, mucho más limpia)
   ============================================ */
.hero__contact {
  margin-top: 36px;
}
.hero__contact-title {
  font-size: var(--t-tiny);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal-dark);
  margin-bottom: 18px;
}
.hero__contact ul { list-style: none; }
.hero__contact li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0;
  border-bottom: 2px solid var(--teal-soft);
  font-size: 19px; line-height: 1.4;
  color: var(--ink);
}
.hero__contact li:last-child { border-bottom: 0; }
.hero__contact li svg { width: 22px; height: 22px; color: var(--coral); flex-shrink: 0; }
.hero__contact a { color: var(--ink); font-weight: 500; }
.hero__contact a:hover { color: var(--teal-dark); }

/* ============================================
   SECCIONES — todas blancas
   ============================================ */
.section { padding: 100px 0; background: var(--white); }
.text-center { text-align: center; }

/* Aire superior de página unificado — el primer bloque bajo la cabecera arranca
   con un padding modesto y constante (no los 100px de una sección intermedia).
   La miga de pan aporta el resto del aire, igual en todas las secciones. */
main > .section:first-child,
main > .home-hero:first-child { padding-top: 44px; }
/* Cuando el primer bloque es el separador dashed (directorio), él ya da el aire
   superior: la sección que le sigue no repite el padding. */
main > .dashed-divider:first-child { margin-top: 0; }
main > .dashed-divider:first-child + .section { padding-top: 0; }

/* ============================================
   COLORES POR SECCIÓN
   Cada sección hereda el color del divisor que tiene encima.
   Todos los acentos (deco, marcos, iconos, bordes) siguen ese color.
   Rotación: hero=coral · sobre=naranja · servicios=teal · proceso=teal-dark
            faq=coral · contacto=naranja · relacionados=teal · cta=teal-dark
   ============================================ */

/* HERO — coral */
.hero .photo-frame__marco path { fill: var(--coral); }
.hero .hero__badge {
  border-color: var(--coral);
  color: var(--coral-dark);
}
.hero .hero__badge svg { color: var(--coral); }
.hero .hero__contact-title { color: var(--coral-dark); }
.hero .hero__contact li { border-bottom-color: var(--coral-soft); }
.hero .hero__contact li svg { color: var(--coral); }

/* SOBRE — naranja */
.section--sobre .about__stat { border-left-color: var(--orange); }
.section--sobre .about__stat strong { color: var(--orange-ink); }

/* SERVICIOS — teal */
.section--servicios .service-card__icon {
  background: var(--teal-soft);
  color: var(--teal-darker);
}
.section--servicios .service-card:hover {
  border-color: var(--teal);
}
.section--servicios .service-card:hover .service-card__icon {
  background: var(--teal);
  color: var(--white);
}

/* PROCESO — teal oscuro */
.section--proceso .process-step__num { color: var(--teal-darker); }

/* FAQ — coral */
.section--faq .faq-item { border-bottom-color: var(--coral); }
.section--faq .faq-item:first-child { border-top-color: var(--coral); }
.section--faq .faq-question:hover { color: var(--coral-dark); }
.section--faq .faq-icon { background: var(--coral); }
.section--faq .faq-item.is-open .faq-icon { background: var(--coral-dark); }

/* CONTACTO — naranja */
.contact .contact-detail__icon {
  border-color: var(--orange);
  color: var(--orange-dark);
}
.contact .form-row input:focus,
.contact .form-row textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

/* RELACIONADOS — teal */
/* Galería de la ficha (fotos del asociado) */
.ficha-galeria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ficha-galeria__item { margin: 0; border-radius: 18px; overflow: hidden; background: var(--gray-bg); aspect-ratio: 4 / 3; }
.ficha-galeria__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 720px) { .ficha-galeria { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.section--relacionados .related-card__chip {
  background: var(--teal-soft);
  color: var(--teal-darker);
}

/* CTA — fondo verde oscuro, tagline en naranja para contraste */
/* (la sección ya tiene su tratamiento especial, sin override) */

/* ============================================
   SOBRE
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 80px;
  align-items: start;
}
.about-grid h2 { margin-bottom: 36px; }
.about__stats { margin-top: 12px; display: flex; flex-direction: column; gap: 32px; }
.about__stat { border-left: 4px solid var(--coral); padding-left: 22px; }
.about__stat strong {
  display: block;
  font-size: 56px; font-weight: 700; line-height: 1;
  color: var(--teal-darker);
}
.about__stat span {
  display: block;
  font-size: 18px;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.4;
}
.about__body p { color: var(--ink-soft); }
.about__body p:first-child {
  font-size: 28px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 28px;
}

/* ============================================
   SERVICIOS
   ============================================ */
.services-head { text-align: center; margin-bottom: 64px; max-width: 760px; margin-left: auto; margin-right: auto; }
.services-head h2 { margin-bottom: 24px; }
.services-head p { color: var(--ink-soft); font-size: 22px; line-height: 1.6; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 2px solid var(--gray-line);
  border-radius: 24px;
  padding: 36px 32px;
  transition: all .3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--teal);
  box-shadow: 0 24px 50px -20px rgba(45, 174, 170, .35);
}
.service-card__icon {
  width: 64px; height: 64px;
  background: var(--teal-soft);
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  color: var(--teal-dark);
  transition: all .3s ease;
}
.service-card:hover .service-card__icon {
  background: var(--coral);
  color: var(--white);
  transform: rotate(-6deg);
}
.service-card__icon svg { width: 30px; height: 30px; }
.service-card h3 { margin-bottom: 10px; font-size: 24px; line-height: 1.3; }
.service-card p { font-size: 19px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

/* ============================================
   PROCESO — sección estándar blanca, destacada con elementos de marca
   ============================================ */
.process-head { text-align: center; margin-bottom: 70px; max-width: 720px; margin-left: auto; margin-right: auto; }
.process-head h2 { margin-bottom: 24px; }
.process-head p { color: var(--ink-soft); font-size: 22px; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  position: relative;
}
.process-step {
  position: relative;
  padding-top: 28px;
}
.process-step__num {
  font-family: var(--f-brand);
  font-size: 80px;
  font-weight: 700;
  line-height: 1;
  color: var(--coral);
  margin-bottom: 20px;
  display: block;
  letter-spacing: -0.02em;
}
.process-step h3 { color: var(--ink); margin-bottom: 14px; font-size: 24px; }
.process-step p { color: var(--ink-soft); font-size: 19px; line-height: 1.5; margin: 0; }

/* ============================================
   FAQ — separadores en verde teal (no en beige)
   ============================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.faq-intro h2 { margin-bottom: 28px; }
.faq-intro p { color: var(--ink-soft); font-size: 22px; }

.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 2px solid var(--teal); }
.faq-item:first-child { border-top: 2px solid var(--teal); }

.faq-question {
  width: 100%;
  text-align: left;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 28px 0;
  font-family: var(--f-brand);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  transition: color .2s;
}
.faq-question:hover { color: var(--teal-dark); }
.faq-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 400; line-height: 1;
  transition: all .3s;
}
.faq-item.is-open .faq-icon { background: var(--teal-darker); transform: rotate(45deg); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  font-size: 21px; line-height: 1.55;
  color: var(--ink-soft);
}
.faq-item.is-open .faq-answer { max-height: 600px; padding-bottom: 28px; padding-right: 60px; }

/* ============================================
   CONTACTO — con fondo verde claro (variante de marca) y blobs decorativos
   ============================================ */
.contact { position: relative; overflow: hidden; background: var(--teal-pale); }
.contact::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--orange-soft);
  opacity: .5;
  z-index: 0;
}
.contact::after {
  content: "";
  position: absolute;
  bottom: -120px; left: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--coral-soft);
  opacity: .55;
  z-index: 0;
}
.contact .container { position: relative; z-index: 1; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 24px; }
.contact-info > p { font-size: 22px; color: var(--ink-soft); margin-bottom: 40px; max-width: 460px; }

.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-detail { display: flex; gap: 18px; align-items: center; }
.contact-detail__icon {
  width: 56px; height: 56px;
  background: var(--white);
  border: 2px solid var(--coral);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--coral);
  flex-shrink: 0;
}
.contact-detail__icon svg { width: 22px; height: 22px; }
.contact-detail strong {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.contact-detail__value { font-size: 21px; color: var(--ink); font-weight: 500; }
.contact-detail__value a { color: var(--ink); }
.contact-detail__value a:hover { color: var(--teal-dark); }

.contact-form {
  background: var(--white);
  border-radius: 28px;
  padding: 48px 44px;
  box-shadow: 0 30px 60px -25px rgba(18, 103, 99, .25);
  border: 2px solid var(--white);
}
.contact-form h3 { margin-bottom: 28px; font-size: var(--t-h3); }
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-size: 16px; font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--gray-line);
  border-radius: 14px;
  font-family: var(--f-brand);
  font-size: 19px;
  background: var(--teal-pale);
  color: var(--ink);
  transition: all .2s;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--teal-soft);
}
.form-row textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.form-checkbox {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 16px; color: var(--ink-soft);
  margin-bottom: 28px; line-height: 1.4;
}
.form-checkbox input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--coral); }
.contact-form .btn { width: 100%; justify-content: center; }

/* ============================================
   RELACIONADOS
   ============================================ */
.related-head { text-align: center; margin-bottom: 56px; }
.related-head h2 { max-width: 760px; margin: 0 auto; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.related-card {
  background: var(--white);
  border: 2px solid var(--gray-line);
  border-radius: 24px;
  padding: 32px 28px;
  display: block;
  color: inherit;
  transition: all .3s;
}
.related-card:hover {
  text-decoration: none;
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 24px 50px -20px rgba(45, 174, 170, .3);
}
.related-card__chip {
  display: inline-block;
  font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--coral-soft);
  color: var(--coral-dark);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.related-card h3 { margin-bottom: 8px; font-size: 24px; line-height: 1.25; }
.related-card__company { font-size: 17px; color: var(--ink-muted); margin-bottom: 16px; font-weight: 500; }
.related-card p { font-size: 19px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* ============================================
   CTA FINAL — fondo verde oscuro de marca, tagline en Raspberry pequeño
   ============================================ */
.cta-strip {
  background: var(--teal-darker);
  padding: 80px 0 80px;
  text-align: center;
  position: relative;
  color: var(--white);
  overflow: hidden;
}
.cta-strip h2 {
  color: var(--white);
  margin-bottom: 24px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.cta-strip p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 22px;
  margin-bottom: 36px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cta-strip__tagline {
  font-family: var(--f-script);
  font-weight: 400;
  font-size: 56px;        /* máx 60px, como pidió el cliente */
  line-height: 1em;
  color: var(--orange);
  display: block;
  margin-bottom: 18px;
  user-select: none;
  letter-spacing: 0.01em;
}

/* ============================================
   STICKY CONTACT — panel flotante con acciones rápidas
   Identifica claramente al asociado y ofrece 3 vías directas
   ============================================ */
.sticky-contact {
  position: fixed;
  right: 24px; bottom: 24px;
  background: var(--white);
  border-radius: 999px;
  padding: 10px 14px 10px 22px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 18px 50px -12px rgba(18, 103, 99, .35);
  z-index: 50;
  transition: all .3s ease;
  border: 2px solid var(--cream-200, #F2EDDD);
}
.sticky-contact:hover { transform: translateY(-2px); box-shadow: 0 24px 60px -12px rgba(18, 103, 99, .45); }

.sticky-contact__label {
  font-family: var(--f-brand);
  font-size: 14px;
  line-height: 1.25;
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
}
.sticky-contact__label strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
}
.sticky-contact__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sticky-action {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all .2s ease;
  flex-shrink: 0;
  color: var(--white);
}
.sticky-action svg { width: 20px; height: 20px; display: block; }

/* Tres servicios, tres tonalidades brand */
.sticky-action--phone    { background: var(--teal-darker); }
.sticky-action--phone:hover    { background: var(--teal); transform: scale(1.08); text-decoration: none; }
.sticky-action--email    { background: var(--coral-dark); }
.sticky-action--email:hover    { background: var(--coral-darker); transform: scale(1.08); text-decoration: none; }
.sticky-action--whatsapp { background: #25D366; }
.sticky-action--whatsapp:hover { background: #128C7E; transform: scale(1.08); text-decoration: none; }

/* ============================================
   ANIMACIÓN HERO
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero__badge { animation: fadeUp .6s .1s both; }
.hero h1 { animation: fadeUp .8s .15s both; }
.hero__subtitle { animation: fadeUp .8s .25s both; }
.hero__pitch { animation: fadeUp .8s .35s both; }
.hero__ctas { animation: fadeUp .8s .45s both; }
.hero__card { animation: fadeUp .8s .55s both; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  :root { --t-h1: 50px; --t-h2: 40px; --t-h3: 24px; --t-body: 20px; --lh-body: 30px; }
  .hero__grid { grid-template-columns: 1fr; gap: 60px; }
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 50px; }
  .faq-grid { grid-template-columns: 1fr; gap: 50px; }
  .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .related-grid { grid-template-columns: 1fr; }
  .cta-strip__tagline { font-size: 48px; }
}
@media (max-width: 640px) {
  :root { --t-h1: 40px; --t-h2: 32px; --t-h3: 22px; --t-body: 18px; --lh-body: 28px; }
  .container { padding: 0 20px; }
  .section { padding: 70px 0; }
  .hero { padding: 30px 0 70px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 32px 24px; }
  .sticky-contact { right: 12px; bottom: 12px; padding: 8px 12px 8px 16px; gap: 10px; }
  .sticky-contact__label { display: none; }
  .sticky-action { width: 40px; height: 40px; }
  .sticky-action svg { width: 18px; height: 18px; }
  .cta-strip { padding: 60px 0; }
  .cta-strip__tagline { font-size: 40px; }
}

/* =============================================================
   LAYOUT GLOBAL (LAYOUT-GLOBAL.md) — cabecera, menú, pie
   ============================================================= */
:root {
  --gold: #F4D06F;        /* barra dorada de la hamburguesa (brand) */
  --gold-soft: #FED992;   /* franja legal del pie (hex real de asemdis.com) */
}

/* ---- Accesibilidad: skip-link y honeypot ---- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--white);
  padding: 12px 20px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; text-decoration: none; color: var(--white); }
.hp-field {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--teal-darker); outline-offset: 2px; }

/* ---- Botón turquesa (menú) ---- */
.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--teal-dark); color: var(--white); text-decoration: none; transform: translateY(-2px); }

/* ---- Cabecera ----
   Dos elementos grandes (hamburguesa + logo) centrados, con aire generoso.
   SIN línea ni sombra de separación, como en asemdis.com. */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-line);
}
.site-header__inner {
  position: relative;
  max-width: var(--max-w); margin: 0 auto; padding: 18px 32px;
  display: flex; align-items: center; justify-content: center;
}
.site-header .hamburger {
  position: absolute; left: 32px; top: 50%; transform: translateY(-50%);
}
.hamburger {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 6px; border-radius: 10px;
}
.hamburger__bars { display: flex; flex-direction: column; gap: 6px; width: 50px; }
.hamburger__bar { height: 7px; border-radius: 3px; }
.hamburger__bar--coral { background: var(--coral); }
.hamburger__bar--gold  { background: var(--gold); }
.hamburger__bar--teal  { background: var(--teal); }
.hamburger__text { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1; }
.site-logo { display: inline-flex; align-items: center; }
.site-logo:hover { text-decoration: none; }
.site-logo img { height: 72px; width: auto; display: block; }

/* ---- Menú off-canvas ---- */
.menu-overlay {
  position: fixed; inset: 0; background: rgba(17,17,17,.5);
  z-index: 90; opacity: 0; transition: opacity .3s ease;
}
.menu-overlay.is-visible { opacity: 1; }
.menu-lateral {
  /* Se despliega por la DERECHA para no quedar bajo el icono de InSuit (abajo-izq). */
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 86vw);
  background: var(--white); z-index: 100;
  transform: translateX(100%); transition: transform .3s ease;
  display: flex; flex-direction: column; padding: 18px 24px 28px;
  overflow-y: auto; box-shadow: -8px 0 40px -10px rgba(0,0,0,.35);
}
.menu-lateral.is-open { transform: translateX(0); }
.menu-lateral__head { display: flex; justify-content: flex-end; }
.menu-close {
  width: 44px; height: 44px; border-radius: 50%;
  color: var(--coral); font-size: 34px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.menu-close:hover { background: var(--coral-soft); }
.menu-lateral__list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.menu-item {
  display: block; text-align: center; padding: 14px 16px; border-radius: 12px;
  font-weight: 700; font-size: 19px; color: var(--ink);
}
.menu-item:hover { background: var(--teal-soft); color: var(--teal-darker); text-decoration: none; }
.menu-item--inicio { background: var(--teal); color: var(--white); }
.menu-item--inicio:hover { background: var(--teal-dark); color: var(--white); }
.menu-item--activo[aria-current="page"] { color: var(--teal-darker); text-decoration: underline; text-underline-offset: 5px; }
.menu-lateral__cta { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.menu-lateral__cta .btn { width: 100%; justify-content: center; }

/* ---- Pie · réplica fiel de asemdis.com (valores reales de su CSS) ----
   Colores reales del sitio (Elementor globals):
     teal pie  = #13969B   coral = #ED6A5E   dorado = #FED992 */
.site-footer { margin-top: 0; --foot-teal: #13969B; --foot-coral: #ED6A5E; --foot-gold: #FED992; }

/* Franja 1 · logos institucionales (fondo blanco) */
.footer-instituciones { background: var(--white); padding: 40px 0; }
.footer-instituciones__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: center; justify-content: center;
}
.footer-inst-logo { height: 84px; width: auto; object-fit: contain; }

/* Franja 2 · bloque principal (teal real #13969B), 4 columnas iguales */
.footer-main { background: var(--foot-teal); color: var(--white); padding: 60px 0; }

/* Navegación de secciones del pie: fila completa sobre las 4 columnas */
.footer-secciones { max-width: var(--max-w); margin: 0 auto 44px; padding: 0 32px; }
.footer-secciones ul {
  list-style: none; margin: 0; padding: 0 0 28px;
  display: flex; flex-wrap: wrap; gap: 12px 36px; justify-content: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.45);
}
.footer-secciones a { font-size: 18px; font-weight: 700; color: var(--white); text-decoration: none; }
.footer-secciones a:hover, .footer-secciones a:focus-visible { color: var(--foot-gold); text-decoration: underline; }
.footer-main__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; align-items: start;
}

/* Tagline + isotipo (columna marca, centrada) */
.footer-col--marca { text-align: center; }
.footer-tagline {
  font-family: var(--f-script); font-size: 64px; line-height: 0.8em;
  color: var(--white); display: block; margin-bottom: 22px;
}
.footer-iso { width: 96px; height: 96px; display: block; margin: 0 auto; }

/* Títulos de columna y textos: 20px bold blanco (sin título en la dirección) */
.footer-col__title { font-size: 20px; font-weight: 700; line-height: 1.5em; margin: 0 0 18px; color: var(--white); }
/* Enlaces dentro del pie teal: heredan el blanco (no el teal-dark global, que
   sobre el fondo teal quedaba invisible). Subrayado para señalar que son enlaces. */
.footer-main a { color: var(--white); }
.footer-main a:hover, .footer-main a:focus-visible { color: var(--foot-gold); }
.footer-col__title a { text-decoration: underline; text-underline-offset: 3px; }
.footer-nap { font-style: normal; display: flex; flex-direction: column; gap: 20px; }
.footer-nap__item {
  font-size: 20px; font-weight: 700; line-height: 1.5em; color: var(--white); text-decoration: none;
}
a.footer-nap__item:hover { color: var(--foot-gold); text-decoration: none; }

/* Botón Contáctanos (idéntico: coral, radius 30, padding 20/15, 20px bold, hover dorado) */
.footer-btn {
  display: inline-block;
  background: var(--coral-dark); color: var(--white); /* AA: blanco sobre coral accesible (antes --foot-coral, 2.9:1) */
  font-family: var(--f-brand); font-size: 20px; font-weight: 700; line-height: 1.5em;
  padding: 20px 15px; border-radius: 30px; text-align: center;
  transition: background .3s, color .3s;
}
.footer-btn:hover, .footer-btn:focus { background: var(--foot-gold); color: #000; text-decoration: none; }

/* Iconos de redes: círculo 40px, icono 20px, fondo blanco 22%, gap 25px, hover coral */
.footer-redes { list-style: none; display: flex; gap: 25px; flex-wrap: wrap; }
.footer-redes a {
  width: 40px; height: 40px; border-radius: 50%;
  background: #FFFFFF38; color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .3s;
}
.footer-redes a:hover { background: var(--foot-coral); text-decoration: none; }
.footer-redes svg { width: 20px; height: 20px; }

/* Franja 3 · legales (fondo dorado real, texto 24px bold negro) */
.footer-legal { background: var(--foot-gold); padding: 15px 0; }
.footer-legal__links {
  list-style: none; max-width: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; flex-wrap: nowrap; gap: 0; align-items: center; justify-content: center;
}
.footer-legal__links li { display: inline-flex; align-items: center; white-space: nowrap; }
.footer-legal__links li:not(:last-child)::after { content: "•"; margin: 0 16px; color: var(--ink); }
.footer-legal__links a { color: var(--ink); font-weight: 700; font-size: 19px; line-height: 1.5em; }
.footer-legal__cfg { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; color: var(--ink); font-family: inherit; font-weight: 700; font-size: 19px; line-height: 1.5em; text-decoration: underline; }
.footer-legal__cfg:hover { color: var(--foot-coral); }
.footer-legal__links a:hover { color: var(--foot-coral); }

/* ---- WhatsApp flotante de la asociación (abajo-IZQUIERDA) ---- */
.wa-float {
  position: fixed; left: 24px; bottom: 24px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px -10px rgba(0,0,0,.4);
  transition: transform .2s ease, background .2s ease;
}
.wa-float:hover { background: #128C7E; transform: scale(1.06); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; }

@media (max-width: 1024px) {
  .site-header__inner { padding: 30px 32px; gap: 40px; }
  .site-logo img { height: 60px; }
  .footer-main__inner { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .footer-tagline { font-size: 58px; }
  .footer-inst-logo { height: 64px; }
}
@media (max-width: 640px) {
  .site-header__inner { padding: 22px 20px; gap: 22px; }
  .site-logo img { height: 50px; }
  .hamburger__bars { width: 38px; }
  .hamburger__bar { height: 5px; }
  .footer-inst-logo { height: 50px; }
  .footer-main__inner { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .footer-tagline { font-size: 50px; }
  .footer-legal__links { flex-wrap: wrap; gap: 4px 0; }
  .footer-legal__links a { font-size: 18px; }
  .footer-legal__links li:not(:last-child)::after { margin: 0 12px; }
  .footer-instituciones__inner { gap: 18px 28px; }
  .wa-float { left: 12px; bottom: 12px; width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-lateral, .menu-overlay { transition: none; }
  .hero__badge, .hero h1, .hero__subtitle, .hero__pitch, .hero__ctas, .hero__card { animation: none; }
  html { scroll-behavior: auto; }
}

/* =============================================================
   FASE 1 — archive, categorías y buscador
   ============================================================= */

/* Tarjeta de categoría: el chip muestra el conteo */
.category-card .related-card__chip { background: var(--teal-soft); color: var(--teal-darker); }

/* Buscador */
.buscador {
  background: var(--white);
  border: 2px solid var(--gray-line);
  border-radius: 24px;
  padding: 28px;
  margin: 32px 0 12px;
  box-shadow: 0 24px 50px -30px rgba(18, 103, 99, .25);
}
.buscador__row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 18px;
}
.buscador__field { display: flex; flex-direction: column; gap: 8px; }
.buscador__field label {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink);
}
.buscador__field input,
.buscador__field select {
  width: 100%; padding: 14px 16px;
  border: 2px solid var(--gray-line); border-radius: 12px;
  font-family: var(--f-brand); font-size: 18px;
  background: var(--white); color: var(--ink);
}
.buscador__field input:focus,
.buscador__field select:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-soft);
}
.buscador__actions { display: flex; gap: 14px; align-items: center; margin-top: 22px; }
.buscador__count { font-size: 20px; font-weight: 700; margin: 36px 0 24px; color: var(--ink); }

@media (max-width: 1024px) {
  .buscador__row { grid-template-columns: 1fr 1fr; }
  .buscador__field--wide { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .buscador { padding: 20px; }
  .buscador__row { grid-template-columns: 1fr; }
}

/* =============================================================
   Tarjeta de asociado unificada (archive · categoría · búsqueda · relacionados)
   Mismo componente en todos los sitios: foto, chip corto, alturas iguales y
   la ciudad fijada abajo y destacada.
   ============================================================= */
/* El padding vive en el cuerpo (no en la tarjeta) para que la foto sea
   full-bleed de verdad, de borde a borde. */
.related-card {
  overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  padding: 0;
}
.related-card__foto {
  display: block; width: 100%; margin: 0;
  height: 300px;
  object-fit: cover;
  object-position: center top;      /* encuadra la cabeza en los retratos */
  background: var(--gray-bg);
}
.related-card__body {
  display: flex; flex-direction: column; flex: 1 1 auto;
  padding: 26px 28px 28px;
}
/* Chip: centrado y ajustado a su texto (no ocupa todo el ancho) */
.related-card__chip { align-self: center; text-align: center; margin-bottom: 18px; }
/* Nota: se usan selectores .related-card__body … para ganar en especificidad a la
   regla base ".related-card p { margin: 0 }" (clase+elemento), que si no anularía
   el margin-top:auto y dejaría la ciudad pegada al texto en vez de al fondo. */
.related-card__body .related-card__company { margin: 0 0 14px; }
.related-card__body .related-card__pitch {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; margin: 0;
}
/* Ubicación: empujada al fondo de la tarjeta, separada por una línea y destacada */
.related-card__body .related-card__loc {
  margin: auto 0 0;             /* margin-top:auto → al fondo del cuerpo flexible */
  padding-top: 16px;
  border-top: 1px solid var(--gray-line);
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 700; color: var(--ink);
}
.related-card__loc svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--teal-dark); }
@media (max-width: 640px) {
  .related-card__foto { height: 280px; }
  .related-card__body { padding: 22px 22px 24px; }
}
