/* =========================================================
   CLÍNICA DEL CORAZÓN — Bloques de página
   ========================================================= */

/* =========================================================
   1. SERVICIOS — índice y fichas
   ========================================================= */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(.9rem, 1.6vw, 1.3rem);
}
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: clamp(1.4rem, 2.2vw, 1.85rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
  height: 100%;
  overflow: hidden;
}
.svc-card::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--blue-700));
  transform: scaleY(0); transform-origin: top;
  transition: transform var(--t-mid) var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-diffuse); border-color: var(--blue-200); }
.svc-card:hover::after { transform: scaleY(1); }
.svc-card__num {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px; border-radius: 11px;
  background: var(--blue-50); color: var(--blue-700);
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 600; letter-spacing: .008em;
  transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.svc-card:hover .svc-card__num { background: var(--brand); color: #fff; transform: translateY(-2px); }
.svc-card h3 { font-size: 1.16rem; letter-spacing: -.032em; line-height: 1.2; }
.svc-card p { font-size: .95rem; color: var(--muted); }
.svc-card__meta {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: .82rem; color: var(--muted-2);
}
.svc-card__tag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--blue-50); color: var(--blue-800);
  padding: .3rem .7rem; border-radius: var(--r-pill);
  font-size: .76rem; font-weight: 600; letter-spacing: .015em;
}

/* Ficha detallada de estudio */
.svc-detail {
  display: grid;
  grid-template-columns: minmax(0, .34fr) minmax(0, .66fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 4.5vw, 4rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: 110px;
}
.svc-detail:first-of-type { border-top: none; }
.svc-detail__aside { position: relative; }
.svc-detail__index {
  display: inline-grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 19px;
  background: linear-gradient(152deg, var(--blue-700) 0%, var(--blue-950) 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.24rem; font-weight: 600; letter-spacing: -.045em;
  line-height: 1;
  box-shadow: 0 16px 28px -16px rgba(6, 58, 90, .8), inset 0 1px 0 rgba(255, 255, 255, .2);
  position: relative;
  margin-bottom: 1.45rem;
}
.svc-detail__index::after {
  content: "";
  position: absolute; left: 50%; top: calc(100% + 10px);
  width: 1px; height: 22px;
  background: linear-gradient(180deg, var(--blue-200), transparent);
}
.svc-detail h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.15rem); margin-bottom: 1rem; }
.svc-detail__equip {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--blue-950); color: #fff;
  padding: .5rem .95rem; border-radius: var(--r-pill);
  font-size: .8rem; font-weight: 600; letter-spacing: .015em;
}
.svc-detail__equip svg { width: 15px; height: 15px; color: var(--brand); }
.svc-detail__body > p { margin-bottom: 1.5rem; }
.svc-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.svc-col { background: var(--bone); border-radius: var(--r-md); padding: 1.2rem 1.35rem; border: 1px solid var(--line); }
.svc-col h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .11em; color: var(--blue-600); margin-bottom: .75rem; }
.svc-col ul { display: grid; gap: .5rem; font-size: .93rem; color: var(--muted); }
.svc-col li { display: flex; gap: .55rem; align-items: flex-start; }
.svc-col li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue-600); flex: none; margin-top: .55rem; }
@media (max-width: 860px) { .svc-detail { grid-template-columns: 1fr; gap: 1.5rem; } }


/* =========================================================
   2. PROCESO / PASOS
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: clamp(1.25rem, 2.5vw, 2.25rem); position: relative; }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  content: "";
  position: absolute; top: 15px; left: 0; right: 0; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
}
.step__n {
  position: absolute; top: 0; left: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--blue-700);
  color: var(--blue-800);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: .86rem;
  z-index: 1;
}
.step:first-child .step__n { background: var(--brand); border-color: var(--brand); color: #fff; }
.step h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.step p { font-size: .94rem; color: var(--muted); }

/* =========================================================
   3. TIMELINE (Nosotros)
   ========================================================= */
.timeline { position: relative; display: grid; gap: clamp(2rem, 3.5vw, 3.25rem); }
.timeline::before {
  content: "";
  position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, var(--brand), var(--blue-700) 55%, transparent);
}
.tl-item { position: relative; padding-left: clamp(2.25rem, 4vw, 3.25rem); }
.tl-item::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--blue-700);
}
.tl-item:first-child::before { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 4px var(--blue-100); }
.tl-item__year {
  font-family: var(--font-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .115em; text-transform: uppercase; color: var(--blue-600); display: block; margin-bottom: .55rem;
}
.tl-item h3 { font-size: 1.35rem; margin-bottom: .7rem; }
.tl-item p { color: var(--muted); }

/* =========================================================
   4. VALORES
   ========================================================= */
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.85rem, 1.5vw, 1.2rem);
}
.value {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.35rem, 2.1vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  overflow: hidden;
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.value::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--blue-700));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-mid) var(--ease);
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-diffuse); border-color: var(--blue-200); }
.value:hover::before { transform: scaleX(1); }
.value__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .35rem; }
.value__ic {
  width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue-700);
  transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
.value__ic svg { width: 21px; height: 21px; }
.value:hover .value__ic { background: var(--brand); color: #fff; }
.value__k {
  font-family: var(--font-display); font-size: .76rem; font-weight: 600;
  letter-spacing: .1em; color: var(--muted-2);
  transition: color var(--t-mid) var(--ease);
}
.value:hover .value__k { color: var(--brand); }
.value h3 { font-size: 1.12rem; }
.value p { font-size: .94rem; color: var(--muted); }
@media (max-width: 980px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .values { grid-template-columns: 1fr; } }

/* =* =========================================================
   5. VIDEO
   ========================================================= */
.video-block { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lift); background: var(--blue-950); aspect-ratio: 16 / 9; }
.video-block video { width: 100%; height: 100%; object-fit: cover; display: block; color: #fff; padding: 1.5rem; }
.video-block video a { color: #fff; text-decoration: underline; }
.video-facade { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: none; display: block; width: 100%; height: 100%; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.video-facade::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 26, 61, .18), rgba(6, 26, 61, .62));
}
.video-facade:hover img { transform: scale(1.04); }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 2; width: clamp(66px, 8vw, 92px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .38);
  display: grid; place-items: center; color: #fff;
  transition: background var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
  pointer-events: none;
}
.video-facade:hover .video-play { background: var(--brand); border-color: var(--brand); transform: translate(-50%, -50%) scale(1.06); }
.video-play svg { width: 26px; height: 26px; margin-left: 4px; }
.video-play::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45);
  animation: playRing 2.6s var(--ease-soft) infinite;
}
@keyframes playRing { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
.video-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: clamp(1.1rem, 2.5vw, 1.9rem);
  color: #fff; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  pointer-events: none;
}
.video-caption { line-height: 1.3; }
.video-caption > span { display: block; }
.video-caption strong { font-family: var(--font-display); font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); letter-spacing: -.032em; display: block; color: #fff; text-shadow: 0 2px 14px rgba(6, 26, 61, .6); }
.video-caption span span { display: block; font-size: .88rem; color: rgba(255, 255, 255, .82); margin-top: .2rem; text-shadow: 0 1px 10px rgba(6, 26, 61, .7); }

/* ---------------------------------------------------------
   5b. VIDEOS INFORMATIVOS (clips verticales)
   --------------------------------------------------------- */
.vclips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.4vw, 2rem);
  max-width: 1000px;
  margin-inline: auto;
}
.vclip { display: flex; flex-direction: column; gap: .9rem; }
.vclip__stage {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #04263B;
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 34px 60px -34px rgba(0, 0, 0, .85);
  transition: transform var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.vclip:hover .vclip__stage { transform: translateY(-4px); border-color: rgba(2, 167, 232, .55); }
.vclip__stage video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; color: #fff; }
.vclip__stage video a { color: #fff; text-decoration: underline; }
.vclip__stage .video-facade::after { background: linear-gradient(180deg, rgba(4, 38, 59, .12) 40%, rgba(4, 38, 59, .55)); }
.vclip__stage .video-play {
  width: clamp(54px, 5vw, 64px);
  background: rgba(4, 38, 59, .52);
  border-color: rgba(255, 255, 255, .8);
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, .7);
}
.vclip__stage .video-play svg { width: 20px; height: 20px; margin-left: 3px; }
/* seis anillos latiendo a la vez marean: se deja sólo al pasar el cursor */
.vclip__stage .video-play::before { animation: none; opacity: 0; }
.vclip__stage .video-facade:hover .video-play::before { animation: playRing 2.6s var(--ease-soft) infinite; opacity: 1; }
.vclip__time {
  position: absolute; z-index: 3; right: .7rem; bottom: .7rem;
  padding: .2rem .55rem;
  border-radius: var(--r-pill);
  background: rgba(4, 38, 59, .74);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff; font-size: .74rem; font-weight: 600;
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
  pointer-events: none;
}
.vclip__stage.is-playing .vclip__time { display: none; }
.vclip__body h3 {
  color: #fff;
  font-size: 1.06rem;
  letter-spacing: var(--tr-h4);
  margin: 0 0 .3rem;
}
.vclip__body p { font-size: .89rem; line-height: 1.5; color: rgba(255, 255, 255, .68); margin: 0; }
.vclips__foot {
  margin-top: clamp(2.2rem, 4vw, 3.4rem);
  padding-top: clamp(1.6rem, 3vw, 2.4rem);
  border-top: 1px solid rgba(255, 255, 255, .14);
  text-align: center;
}
.vclips__foot p {
  max-width: 52ch; margin: 0 auto 1.4rem;
  color: rgba(255, 255, 255, .72);
}
.vclips__foot .btn-row { justify-content: center; }
@media (max-width: 900px) {
  .vclips { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 660px; }
}
@media (max-width: 560px) {
  /* dos por fila: seis clips verticales en una sola columna serían un scroll eterno */
  .vclips { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; gap: .8rem .7rem; }
  .vclip { gap: .6rem; }
  .vclip__stage { border-radius: var(--r-md); }
  .vclip__body h3 { font-size: .92rem; }
  .vclip__body p { font-size: .8rem; line-height: 1.45; }
  .vclip__time { right: .45rem; bottom: .45rem; font-size: .68rem; }
}

/* =========================================================
   6. DOCTOR
   ========================================================= */
.doctor { position: relative; }
.doctor__media { position: relative; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 4.7; box-shadow: var(--shadow-lift); }
.doctor__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.doctor__plate {
  position: absolute; left: 1.1rem; right: 1.1rem; bottom: 1.1rem;
  background: rgba(6, 26, 61, .74);
  backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16);
  border-radius: var(--r-md);
  padding: .95rem 1.15rem; color: #fff;
}
.doctor__plate { line-height: 1.3; }
.doctor__plate strong { font-family: var(--font-display); font-size: 1.06rem; letter-spacing: -.028em; display: block; color: #fff; }
.doctor__plate span { display: block; font-size: .85rem; color: rgba(255, 255, 255, .88); margin-top: .15rem; }
.quote {
  border-left: 2px solid var(--brand);
  padding-left: 1.35rem;
  margin: 1.75rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 1rem + .5vw, 1.32rem);
  line-height: 1.45;
  letter-spacing: -.032em;
  color: var(--blue-900);
  font-weight: 500;
}
.credentials { display: grid; gap: .1rem; margin-top: 1.5rem; }
.credential { display: flex; gap: 1rem; padding: .95rem 0; border-top: 1px solid var(--line); font-size: .95rem; }
.credential dt { font-family: var(--font-display); font-weight: 600; color: var(--blue-900); min-width: 122px; flex: none; font-size: .9rem; }
.credential dd { color: var(--muted); }
@media (max-width: 520px) { .credential { flex-direction: column; gap: .2rem; } }

/* =========================================================
   7. FAQ
   ========================================================= */
.faq { display: grid; gap: .7rem; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
  overflow: hidden;
  transition: border-color var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.faq__item[open] { border-color: var(--blue-200); box-shadow: var(--shadow-soft); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 1.25rem clamp(1.3rem, 2.2vw, 1.9rem);
  cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, .97rem + .2vw, 1.1rem);
  color: var(--blue-900); letter-spacing: -.028em; line-height: 1.35;
  transition: background var(--t-fast) var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--blue-50); }
.faq__ic {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-2); display: grid; place-items: center;
  position: relative; transition: background var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.faq__ic::before, .faq__ic::after {
  content: ""; position: absolute; background: var(--blue-800); border-radius: 2px;
  transition: transform var(--t-mid) var(--ease), background var(--t-mid) var(--ease);
}
.faq__ic::before { width: 11px; height: 1.7px; }
.faq__ic::after { width: 1.7px; height: 11px; }
.faq__item[open] .faq__ic { background: var(--brand); border-color: var(--brand); transform: rotate(180deg); }
.faq__item[open] .faq__ic::before, .faq__item[open] .faq__ic::after { background: #fff; }
.faq__item[open] .faq__ic::after { transform: scaleY(0); }
.faq__item[open] .faq__q { background: transparent; border-bottom: 1px solid var(--line); }
.faq__a { padding: 1.35rem clamp(1.3rem, 2.2vw, 1.9rem) 1.6rem; }
.faq__a p { font-size: .99rem; color: var(--muted); max-width: 78ch; line-height: 1.7; }
.faq__a p + p { margin-top: .8rem; }
.faq__a ul { display: grid; gap: .55rem; margin-top: .9rem; font-size: .96rem; color: var(--muted); line-height: 1.6; }
.faq__a li { display: flex; gap: .6rem; }
.faq__a li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); flex: none; margin-top: .6rem; }
.faq__item[open] .faq__a { animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.faq-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.faq-cat {
  padding: .55rem 1.1rem; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--paper);
  font-size: .9rem; font-weight: 600; color: var(--ink-70); cursor: pointer;
  font-family: var(--font-display);
  transition: all var(--t-fast) var(--ease);
}
.faq-cat:hover { border-color: var(--blue-700); color: var(--blue-900); }
.faq-cat.is-active { background: var(--blue-900); border-color: var(--blue-900); color: #fff; }

/* =========================================================
   8. CONTACTO
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(2rem, 4vw, 3.75rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

.info-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.info-row { background: var(--paper); padding: 1.35rem 1.5rem; display: flex; gap: 1.1rem; align-items: flex-start; min-width: 0; transition: background var(--t-fast) var(--ease); }
.info-row:hover { background: var(--blue-50); }
.info-row__ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--blue-50); color: var(--blue-700); display: grid; place-items: center; flex: none; }
.info-row__ic svg { width: 19px; height: 19px; }
.info-row h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .115em; color: var(--muted-2); margin-bottom: .3rem; font-weight: 600; }
.info-row p, .info-row a { font-size: 1rem; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.info-row a:hover { color: var(--brand); }
.info-row small { display: block; color: var(--muted-2); font-size: .85rem; margin-top: .2rem; font-weight: 400; }

/* Horarios */
.hours { width: 100%; border-collapse: collapse; font-size: .97rem; }
.hours caption { text-align: left; font-family: var(--font-display); font-weight: 600; color: var(--blue-900); padding-bottom: .9rem; font-size: 1.05rem; }
.hours th, .hours td { padding: .8rem .25rem; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 500; color: var(--muted); }
.hours td { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.hours tr.is-closed td { color: var(--muted-2); font-weight: 500; }
.hours tr.is-today th { color: var(--blue-700); font-weight: 700; }
.hours tr.is-today td { color: var(--blue-700); }

.status-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .95rem; border-radius: var(--r-pill);
  font-size: .84rem; font-weight: 600; font-family: var(--font-display);
  background: var(--blue-50); color: var(--blue-800); border: 1px solid var(--blue-100);
}
.status-pill.is-open { background: #ECFDF3; color: #047857; border-color: #A7F3D0; }
.status-pill.is-closed { background: var(--red-50); color: var(--red-700); border-color: var(--red-100); }

/* Formulario */
.form { display: grid; gap: 1.1rem; }
.form__card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-diffuse);
}
.field { display: grid; gap: .45rem; align-content: start; }
.field label { font-family: var(--font-display); font-size: .88rem; font-weight: 600; color: var(--blue-900); }
.field label .req { color: var(--red-600); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: .85rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); opacity: .75; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(2, 167, 232, .12);
}
.field .help { font-size: .82rem; color: var(--muted-2); }
.field .error { font-size: .84rem; color: var(--red-700); display: none; align-items: center; gap: .4rem; }
.field .error svg { width: 14px; height: 14px; flex: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-500); background: var(--red-50); }
.field.has-error .error { display: flex; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; align-items: start; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.form__consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.form__consent input { width: 18px; height: 18px; flex: none; margin-top: .18rem; accent-color: var(--red-600); }
.form__note { font-size: .82rem; color: var(--muted-2); display: flex; gap: .5rem; align-items: flex-start; }
.form__note svg { width: 15px; height: 15px; flex: none; margin-top: .2rem; color: var(--blue-600); }

.form-status {
  display: none; align-items: flex-start; gap: .7rem;
  padding: 1rem 1.15rem; border-radius: var(--r-md); font-size: .93rem;
  border: 1px solid transparent;
}
.form-status.is-shown { display: flex; }
.form-status--ok { background: #ECFDF3; color: #065F46; border-color: #A7F3D0; }
.form-status--err { background: var(--red-50); color: var(--red-800); border-color: var(--red-100); }
.form-status svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; }

.btn.is-loading { pointer-events: none; opacity: .82; }
.btn.is-loading .btn__spinner { display: block; }
.btn.is-loading .btn__ico { display: none; }
.btn__spinner {
  display: none; width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }


/* =========================================================
   9. BLOQUE DE DATOS RÁPIDOS (SEO/GEO)
   ========================================================= */
.quickfacts {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 100% at 100% 0%, var(--blue-50) 0%, transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--bone) 100%);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  box-shadow: var(--shadow-soft);
}
.quickfacts__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem;
}
.quickfacts h2 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.6rem); margin: 0; }
.quickfacts__head p { font-size: .93rem; color: var(--muted); max-width: 44ch; }
.quickfacts dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr));
  gap: clamp(.7rem, 1.2vw, 1rem);
}
.quickfacts .qf {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.15rem 1.25rem;
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease);
}
.quickfacts .qf:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--blue-200); }
.quickfacts dt {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .71rem; text-transform: uppercase; letter-spacing: .11em;
  color: var(--muted-2); font-weight: 600; line-height: 1.3;
  margin-bottom: .7rem;
}
.qf__ic {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; flex: none;
  background: var(--blue-50); color: var(--blue-700);
  transition: background var(--t-mid) var(--ease), color var(--t-mid) var(--ease);
}
.qf__ic svg { width: 18px; height: 18px; }
.quickfacts .qf:hover .qf__ic { background: var(--brand); color: #fff; }
.quickfacts dd { font-size: .97rem; color: var(--ink); font-weight: 500; line-height: 1.5; }
.quickfacts dd a { color: var(--blue-700); font-weight: 600; }
.quickfacts dd a:hover { color: var(--brand); }
.qf--wide { grid-column: span 2; }
@media (max-width: 700px) { .qf--wide { grid-column: span 1; } }

/* =* =========================================================
   10. SÍNTOMAS DE ALARMA
   ========================================================= */
.alarm {
  border: 1px solid var(--red-100);
  background: linear-gradient(155deg, var(--red-50) 0%, #fff 65%);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.alarm__head { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.alarm__ic { width: 44px; height: 44px; border-radius: 13px; background: var(--red-600); color: #fff; display: grid; place-items: center; flex: none; }
.alarm__ic svg { width: 22px; height: 22px; }
.alarm ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: .75rem 1.75rem; }
.alarm li { display: flex; gap: .7rem; align-items: flex-start; font-size: .97rem; color: var(--ink-70); }
.alarm li svg { width: 17px; height: 17px; color: var(--red-600); flex: none; margin-top: .28rem; }
.alarm__foot { margin-top: 1.75rem; padding-top: 1.35rem; border-top: 1px solid var(--red-100); font-size: .9rem; color: var(--muted); }

/* =========================================================
   11. TARJETAS DE EQUIPO
   ========================================================= */
.equip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1px; background: rgba(255, 255, 255, .1); border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); }
.equip { background: var(--blue-950); padding: clamp(1.35rem, 2.2vw, 1.8rem); transition: background var(--t-mid) var(--ease); }
.equip:hover { background: var(--blue-900); }
.equip__brand { font-family: var(--font-display); font-size: .74rem; letter-spacing: .13em; text-transform: uppercase; color: #F2707B; font-weight: 600; display: block; margin-bottom: .7rem; }
.equip h3 { font-size: 1.08rem; color: #fff; margin-bottom: .5rem; }
.equip p { font-size: .92rem; color: rgba(255, 255, 255, .6); }

/* =========================================================
   12. GALERÍA / INSTALACIONES
   ========================================================= */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(.7rem, 1.4vw, 1.1rem); }
.gallery figure { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--bone-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.045); }
.gallery .g-lg { grid-column: span 4; aspect-ratio: 16 / 10; }
.gallery .g-sm { grid-column: span 2; aspect-ratio: 4 / 5; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.5rem 1.25rem .95rem;
  background: linear-gradient(transparent, rgba(6, 26, 61, .8));
  color: #fff; font-size: .87rem; font-weight: 500;
}
@media (max-width: 780px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .g-lg { grid-column: span 2; }
  .gallery .g-sm { grid-column: span 1; }
}

/* =========================================================
   13. AVISOS / NOTA MÉDICA
   ========================================================= */
.notice {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem 1.5rem; border-radius: var(--r-md);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  font-size: .93rem; color: var(--ink-70);
}
.notice svg { width: 19px; height: 19px; color: var(--blue-700); flex: none; margin-top: .2rem; }
.notice strong { display: block; margin-bottom: .2rem; color: var(--blue-900); }

/* =========================================================
   14. 404
   ========================================================= */
.err-page { min-height: 68vh; display: grid; place-items: center; text-align: center; padding-block: var(--section-y); }
.err-code {
  font-family: var(--font-display); font-size: clamp(5rem, 14vw, 10rem); font-weight: 700;
  line-height: .85; letter-spacing: -.07em; color: transparent;
  -webkit-text-stroke: 2px #6E88BC; margin-bottom: 1.5rem;
}

/* =========================================================
   15. TARJETA DE UBICACIÓN (mapa con carga bajo demanda)
   ========================================================= */
.map-card {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(155deg, var(--blue-900) 0%, var(--blue-950) 100%);
  color: rgba(255, 255, 255, .8);
  box-shadow: var(--shadow-diffuse);
  min-height: clamp(340px, 34vw, 440px);
  display: grid;
  place-items: center;
  isolation: isolate;
}
.map-card::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--dot-grid-inv);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(110% 90% at 50% 40%, #000, transparent 72%);
  mask-image: radial-gradient(110% 90% at 50% 40%, #000, transparent 72%);
  opacity: .75;
  pointer-events: none;
}
.map-card::after {
  content: "";
  position: absolute; inset: auto -20% -45% auto;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(2, 167, 232, .3), transparent 68%);
  pointer-events: none;
}
.map-card__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  max-width: 560px;
}
.map-card__pin {
  width: 62px; height: 62px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--brand);
  color: #fff;
  position: relative;
  box-shadow: 0 18px 34px -16px rgba(2, 167, 232, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.map-card__pin svg { width: 28px; height: 28px; }
.map-card__pin::before,
.map-card__pin::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(2, 167, 232, .55);
  animation: pinRing 3s var(--ease-soft) infinite;
}
.map-card__pin::after { animation-delay: 1.4s; }
@keyframes pinRing {
  0% { transform: scale(1); opacity: .85; }
  70%, 100% { transform: scale(2.3); opacity: 0; }
}
.map-card__label {
  font-family: var(--font-display);
  font-size: .76rem; font-weight: 600;
  letter-spacing: .145em; text-transform: uppercase;
  color: #F2707B;
}
.map-card__addr {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + .7vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -.038em;
  line-height: 1.25;
  color: #fff;
  text-wrap: balance;
}
.map-card__meta { font-size: .93rem; color: rgba(255, 255, 255, .72); }
.map-card__actions { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: .5rem; }
.map-card__frame { position: absolute; inset: 0; z-index: 3; display: none; background: var(--bone-2); }
.map-card__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-card.is-live .map-card__frame { display: block; }
.map-card__note { font-size: .8rem; color: rgba(255, 255, 255, .5); }

/* =========================================================
   16. BANDA DE FACEBOOK
   ========================================================= */
.fb-band {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 3.5vw, 3.25rem);
  align-items: center;
  background:
    radial-gradient(90% 120% at 100% 0%, var(--blue-50) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bone) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.fb-band__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.9;
  box-shadow: var(--shadow-diffuse);
}
.fb-band__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.fb-band__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(190deg, transparent 45%, rgba(6, 26, 61, .55) 100%);
}
.fb-band__tag {
  position: absolute; left: .9rem; bottom: .9rem; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r-pill);
  padding: .4rem .85rem;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  color: var(--blue-900);
}
.fb-band__tag .pulse-dot { width: 8px; height: 8px; }
.fb-badge {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: #1877F2; color: #fff;
  box-shadow: 0 16px 28px -16px rgba(24, 119, 242, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
  margin-bottom: 1.15rem;
}
.fb-badge svg { width: 27px; height: 27px; }
.fb-band h2 { margin-bottom: .9rem; }
.fb-band__handle {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .88rem; color: var(--muted); margin-top: 1.25rem;
}
.fb-band__handle svg { width: 15px; height: 15px; color: var(--blue-600); }
.fb-chips { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.5rem 0 1.75rem; }
.fb-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .95rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--paper);
  font-size: .86rem; font-weight: 500; color: var(--ink-70);
}
.fb-chip svg { width: 14px; height: 14px; color: var(--brand); }
.btn--facebook { background: #0E5FCC; color: #fff; box-shadow: 0 14px 26px -16px rgba(14, 95, 204, .95), var(--inset-hair); }
.btn--facebook:hover { background: #0A4699; transform: translateY(-2px); }
@media (max-width: 860px) {
  .fb-band { grid-template-columns: 1fr; }
  .fb-band__media { aspect-ratio: 16 / 10; }
  .fb-band__media img { object-position: center 22%; }
}
