/* =========================================================
   CDSP — Centro de Salud Integral Dr. Sócrates Pérez
   Sitio web basado en datos reales (imágenes Instagram)
   Color marca #00ADEF · Hero WhatsApp · Header 3 capas
   ========================================================= */

:root {
  --brand: #00adef;
  --brand-dark: #0090c7;
  --brand-deeper: #0077a8;
  --brand-soft: #e6f7fd;
  --brand-mid: #b3e6f9;
  --ink: #101828;
  --ink-soft: #3d4f63;
  --muted: #6b7c8f;
  --line: #d9e8f1;
  --bg: #f6fafd;
  --surface: #ffffff;
  --night: #0b1722;
  --shadow: 0 18px 48px rgba(0, 119, 168, 0.12);
  --shadow-sm: 0 8px 24px rgba(16, 24, 40, 0.06);
  --radius: 16px;
  --radius-lg: 24px;
  --font: "Sora", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --wrap: 1140px;
  --brand-bar-h: 36px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* brand bar + logo band + nav approximate */
  scroll-padding-top: 160px;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

/* ========== 1) BARRA DE COLOR (marca) ========== */
.brand-bar {
  background: var(--brand);
  color: rgba(255, 255, 255, 0.95);
  min-height: var(--brand-bar-h);
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  position: relative;
  z-index: 60;
}

.brand-bar__inner {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  padding: 0.5rem 0;
}

.brand-bar__left,
.brand-bar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0;
}

.brand-bar__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.brand-bar a {
  color: #fff;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.brand-bar a:hover {
  opacity: 0.85;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brand-bar__phone {
  font-weight: 700;
}

/* ========== 2) LOGO FUERA DEL NAV ========== */
.logo-band {
  background: var(--surface);
  border-bottom: 1px solid transparent;
  position: relative;
  z-index: 50;
}

.logo-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 0 1.15rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  transition: opacity 0.2s ease;
}

.site-logo:hover {
  opacity: 0.92;
}

/* Logo actual: assets/brand/logo-new.png (isotipo + CDSP) */
.site-logo__img {
  display: block;
  height: 6.3rem;
  width: auto;
  max-width: 6.8rem;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  line-height: 1.15;
  min-width: 0;
}

.site-logo__text strong {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.site-logo__text small {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-deeper);
}

.site-logo__img--footer {
  height: 6rem;
  max-width: 6.5rem;
  background: #fff;
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.site-logo--footer .site-logo__text strong {
  color: #fff;
}

.site-logo--footer .site-logo__text small {
  color: var(--brand-mid);
}

.logo-band__aside {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.logo-band__contact {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  line-height: 1.2;
  padding-right: 1.15rem;
  border-right: 1px solid var(--line);
}

.logo-band__contact-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.logo-band__contact-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.logo-band__contact:hover .logo-band__contact-value {
  color: var(--brand-deeper);
}

@media (min-width: 720px) {
  .logo-band__contact {
    display: flex;
  }
}

/* ========== 3) BARRA DE NAV (sin logo) ========== */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px) saturate(1.15);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.nav-bar.scrolled {
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.07);
  background: rgba(255, 255, 255, 0.97);
}

.nav-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  gap: 1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.95rem 0.95rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s var(--ease);
}

.nav a:not(.nav__cta):hover {
  color: var(--brand-deeper);
}

.nav a:not(.nav__cta):hover::after {
  transform: scaleX(1);
}

.nav__cta {
  margin-left: auto;
  padding: 0.5rem 1.05rem !important;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deeper) !important;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__cta:hover {
  background: var(--brand);
  color: #fff !important;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========== Typography helpers ========== */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.eyebrow--light {
  color: var(--brand-mid);
}

.section-head {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 2.75rem;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.section-head p {
  color: var(--ink-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
  padding: 1.05rem 1.75rem;
  min-height: 3.15rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  padding: 0.65rem 1.25rem;
  min-height: 2.55rem;
  font-size: 0.88rem;
}

.btn--lg {
  padding: 1.15rem 1.85rem;
  min-height: 3.45rem;
  font-size: 0.98rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 173, 239, 0.3);
}

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

.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn--outline:hover {
  border-color: var(--brand);
  color: var(--brand-deeper);
  background: var(--brand-soft);
}

.btn--wa {
  background: #1fad55;
  color: #fff;
  gap: 0.55rem;
  box-shadow: 0 10px 24px rgba(20, 120, 60, 0.32);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28), 0 0 1px rgba(0, 0, 0, 0.2);
}

.btn--wa:hover {
  background: #189a4a;
}

.btn--wa svg {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22));
  flex-shrink: 0;
}

/* ========== HERO (WhatsApp chat) ========== */
.hero {
  padding: 3.25rem 0 4.5rem;
  background:
    radial-gradient(ellipse 55% 50% at 100% 0%, rgba(0, 173, 239, 0.16), transparent 55%),
    radial-gradient(ellipse 40% 40% at 0% 100%, rgba(0, 173, 239, 0.08), transparent 50%),
    linear-gradient(180deg, #eaf7fd 0%, var(--bg) 70%);
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.75rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Línea institucional: un poco más pequeña (~10pt menos en pantallas grandes) */
.hero__title-line {
  display: block;
  font-weight: 600;
  font-size: 0.82em;
  color: var(--ink);
  letter-spacing: -0.03em;
}

/* Nombre del doctor: más peso y presencia que la línea superior */
.hero__title-name {
  display: block;
  font-family: var(--serif);
  font-style: normal;
  font-weight: 700;
  font-size: 1.08em;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--brand-deeper);
}

.hero__lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 1.6rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  max-width: 420px;
}

.hero__facts dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.hero__facts dd {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

/* ----- WhatsApp mock ----- */
.wa {
  display: flex;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.wa--link {
  cursor: pointer;
  transition: transform 0.25s var(--ease), filter 0.25s ease;
  border-radius: 36px;
}

.wa--link:hover {
  transform: translateY(-4px);
  filter: brightness(1.02);
}

.wa--link:focus-visible {
  outline: 3px solid #25d366;
  outline-offset: 6px;
}

.wa--link:hover .wa__phone {
  box-shadow:
    0 0 0 10px #1a1a1a,
    0 0 0 12px #2a2a2a,
    0 28px 56px rgba(37, 211, 102, 0.28);
}

.wa__phone {
  width: min(100%, 340px);
  border-radius: 28px;
  overflow: hidden;
  background: #0b141a;
  box-shadow:
    0 0 0 10px #1a1a1a,
    0 0 0 12px #2a2a2a,
    0 24px 50px rgba(0, 0, 0, 0.22);
  position: relative;
}

.wa__cta-hint {
  margin: 0;
  padding: 0.55rem 0.75rem 0.7rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #d9fdd3;
  background: #075e54;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.wa__header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.7rem 0.7rem;
  background: #075e54;
  color: #fff;
}

.wa__header-back {
  font-size: 1.5rem;
  line-height: 1;
  opacity: 0.9;
  width: 1rem;
}

.wa__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.wa__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #fff;
}

.wa__contact {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.wa__contact strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa__contact span {
  font-size: 0.72rem;
  opacity: 0.85;
}

.wa__status.is-typing {
  color: #d9fdd3;
}

.wa__header-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.95;
}

.wa__icon-video,
.wa__icon-call,
.wa__icon-menu {
  display: block;
  background: currentColor;
  opacity: 0.9;
}

.wa__icon-video {
  width: 14px;
  height: 10px;
  border-radius: 2px;
  box-shadow: 4px 0 0 -2px currentColor;
}

.wa__icon-call {
  width: 12px;
  height: 12px;
  border-radius: 0 12px 12px 0;
  transform: rotate(-25deg);
}

.wa__icon-menu {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
  margin-bottom: 10px;
}

.wa__body {
  min-height: 360px;
  max-height: 400px;
  overflow: hidden;
  padding: 0.65rem 0.55rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background-color: #e5ddd5;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9bdb3' fill-opacity='0.22'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.wa__day {
  align-self: center;
  background: #e1f2fb;
  color: #54656f;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.08);
  margin: 0.25rem 0 0.5rem;
}

.wa__anim {
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  pointer-events: none;
  max-height: 0;
  margin: 0;
  overflow: hidden;
}

.wa__anim.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  max-height: 220px;
  pointer-events: auto;
  animation: wa-pop 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wa__day.wa__anim.is-visible {
  max-height: 40px;
  margin: 0.25rem 0 0.5rem;
  animation-name: wa-pop-day;
}

.wa__row.wa__anim.is-visible {
  overflow: visible;
}

@keyframes wa-pop {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes wa-pop-day {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.wa__typing-row {
  display: flex;
  width: 100%;
  justify-content: flex-start;
}

.wa__typing-row[hidden] {
  display: none !important;
}

.wa__typing-row:not([hidden]) {
  animation: wa-pop 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wa__row {
  display: flex;
  width: 100%;
}

.wa__row--in {
  justify-content: flex-start;
}

.wa__row--out {
  justify-content: flex-end;
}

.wa__bubble {
  position: relative;
  max-width: 88%;
  padding: 0.4rem 0.55rem 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}

.wa__bubble p {
  margin: 0;
  padding-right: 2.6rem;
  color: #111b21;
}

.wa__bubble p strong {
  font-weight: 600;
}

.wa__bubble time {
  position: absolute;
  right: 0.45rem;
  bottom: 0.25rem;
  font-size: 0.65rem;
  color: #667781;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  white-space: nowrap;
}

.wa__bubble--in {
  background: #fff;
  border-top-left-radius: 0;
}

.wa__bubble--in::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0;
  border-style: solid;
  border-width: 0 8px 8px 0;
  border-color: transparent #fff transparent transparent;
}

.wa__bubble--out {
  background: #d9fdd3;
  border-top-right-radius: 0;
}

.wa__bubble--out::before {
  content: "";
  position: absolute;
  right: -7px;
  top: 0;
  border-style: solid;
  border-width: 0 0 8px 8px;
  border-color: transparent transparent transparent #d9fdd3;
}

.wa__bubble--typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.7rem 0.9rem;
  min-width: 52px;
}

.wa__bubble--typing time {
  display: none;
}

.wa__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #667781;
  opacity: 0.45;
  animation: wa-dot 1.2s ease-in-out infinite;
}

.wa__dot:nth-child(2) {
  animation-delay: 0.15s;
}

.wa__dot:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes wa-dot {
  0%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.wa__checks {
  color: #8696a0;
  font-size: 0.75rem;
  letter-spacing: -0.06em;
  font-weight: 600;
  transition: color 0.35s ease;
}

.wa__checks.is-read {
  color: #53bdeb;
}

.wa__composer {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.5rem 0.55rem;
  background: #f0f2f5;
}

.wa__input {
  flex: 1;
  background: #fff;
  border-radius: 24px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: #8696a0;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.06);
  min-height: 1.2em;
  transition: color 0.2s ease;
}

.wa__input.is-composing {
  color: #111b21;
}

.wa__send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #25d366;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.2s ease;
}

.wa__send::before {
  content: "";
  position: absolute;
  inset: 12px 15px 10px;
  border: 2px solid #fff;
  border-radius: 10px 10px 12px 12px;
  border-bottom-width: 3px;
}

.wa__send.is-send::before {
  inset: auto;
  left: 15px;
  top: 13px;
  width: 0;
  height: 0;
  border: none;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #fff;
  border-radius: 0;
}

.wa__send.is-pulse {
  animation: wa-send-pulse 0.35s ease;
}

@keyframes wa-send-pulse {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(0.88);
  }
  100% {
    transform: scale(1);
  }
}

/* ========== Sections ========== */
/* Ritmo de fondos: blanco ↔ azul suave (sin continuidad visual) */
.section {
  padding: 5rem 0;
  background: var(--surface);
}

.section--tint {
  background: #e8f6fc;
  border-bottom: 1px solid rgba(0, 173, 239, 0.1);
}

.section--cta {
  border-bottom: none;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

@media (min-width: 981px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--brand-mid);
}

.card__num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.06em;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  flex: 1;
}

.card__link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-deeper);
  margin-top: 0.35rem;
}

.card__link:hover {
  color: var(--brand);
  text-decoration: underline;
}

.card--accent {
  background: linear-gradient(155deg, var(--brand) 0%, var(--brand-deeper) 100%);
  border-color: transparent;
  color: #fff;
}

.card--accent .card__num,
.card--accent p,
.card--accent .card__link {
  color: rgba(255, 255, 255, 0.92);
}

.card--accent:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
}

/* Trust strip */
.trust-strip {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 1.65rem 0;
  box-shadow: 0 8px 24px rgba(15, 27, 45, 0.03);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem 1.5rem;
}

.trust-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.trust-strip__icon {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--brand-deeper);
  background: linear-gradient(145deg, var(--brand-soft), #d9f2fc);
  border: 1px solid var(--brand-mid);
  box-shadow: 0 6px 16px rgba(0, 173, 239, 0.1);
}

.trust-strip__icon svg {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
}

.trust-strip__text {
  min-width: 0;
  padding-top: 0.1rem;
}

.trust-strip__item strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-deeper);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.trust-strip__item span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 720px) {
  .trust-strip__item {
    gap: 0.75rem;
  }

  .trust-strip__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 12px;
  }
}

/* Specialties */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.spec {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.spec__icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.9rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--brand-deeper);
  background: linear-gradient(145deg, var(--brand-soft), #d9f2fc);
  border: 1px solid var(--brand-mid);
  box-shadow: 0 6px 16px rgba(0, 173, 239, 0.1);
}

.spec__icon svg {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
}

.spec:hover .spec__icon {
  box-shadow: 0 8px 18px rgba(0, 173, 239, 0.16);
}

.spec:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.spec--wide {
  grid-column: span 2;
  background: linear-gradient(135deg, #f0f9fd, #fff);
  border-color: var(--brand-mid);
}

.spec h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.spec__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.85rem !important;
}

.spec__when {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.2rem !important;
}

.spec__hours {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.spec__note {
  margin-top: 0.65rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.spec-footnote {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 40rem;
  margin-inline: auto;
}

/* About */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}

.about__panel {
  background: linear-gradient(155deg, #00adef 0%, #0090c7 45%, #0a4f6e 100%);
  border-radius: 28px;
  padding: 2.5rem;
  color: #fff;
  display: grid;
  gap: 1.75rem;
  min-height: 340px;
  box-shadow: var(--shadow);
}

.about__metric strong {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.about__metric span {
  opacity: 0.85;
  font-size: 0.95rem;
}

.about__copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.about__copy > p {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.75rem;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink-soft);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2300adef' stroke-width='2'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Hours */
.hours {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hours h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hours__lead {
  color: var(--ink-soft);
  max-width: 28rem;
}

.hours__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hours__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.hours__row span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hours__row strong {
  text-align: right;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.4;
}

.hours__row--note {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

/* Cover / seguros */
.cover {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}

.cover__copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.cover__copy > p {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.cover__card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cover__card h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.cover__card > p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Location */
.location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.location h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.location__lead {
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

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

.location__list span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.location__list p,
.location__list a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.location__list a:hover {
  color: var(--brand);
}

.location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.location__map {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: #dceef7;
}

.location__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.location__map-link {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 2;
  background: #fff;
  color: var(--brand-deeper);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(15, 27, 45, 0.12);
  transition: background 0.2s ease, color 0.2s ease;
}

.location__map-link:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.footer__tag {
  margin-top: 0.75rem;
  max-width: 280px;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ========== Media placeholders (listos para tus fotos) ========== */
.media-grid {
  display: grid;
  gap: 1.1rem;
}

.media-grid--team {
  grid-template-columns: repeat(4, 1fr);
}

.media-grid--install {
  margin-top: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.media-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.media-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.media-card__photo {
  aspect-ratio: 1 / 1.05;
  background:
    linear-gradient(145deg, rgba(0, 173, 239, 0.12), rgba(0, 119, 168, 0.08)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(0, 173, 239, 0.05) 8px,
      rgba(0, 173, 239, 0.05) 16px
    );
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--brand-deeper);
  font-weight: 700;
  font-size: 0.9rem;
  overflow: hidden;
  padding: 0;
}

.media-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.media-card__photo span {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--brand-mid);
}

.media-feature__frame--photo {
  border-style: solid;
  border-color: var(--line);
  background: #fff;
  padding: 0;
  overflow: hidden;
  min-height: 320px;
}

.media-feature__frame--photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.gallery__item {
  overflow: hidden;
  padding: 0;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
}

.gallery__item--lg img {
  min-height: 280px;
}

/* Fotos instalaciones: tamaño controlado con bordes y sombra */
.media-grid--install .media-slot {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.media-grid--install .media-slot img {
  width: 100%;
  height: auto;
  min-height: 180px;
  max-height: 260px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.gallery__item[data-placeholder] {
  padding: 1.25rem;
}

.media-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  padding: 0.9rem 1rem 0.2rem;
}

.media-card p {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0 1rem 1.1rem;
  font-weight: 500;
}

.media-hint {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 42rem;
  margin-inline: auto;
}

.media-hint code {
  font-size: 0.8em;
  background: var(--brand-soft);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: var(--brand-deeper);
}

.install {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

.install__copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.install__copy p {
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
  font-size: 1.02rem;
}

.media-feature__frame,
.media-slot,
.gallery__item {
  border: 2px dashed var(--brand-mid);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, #eef8fd, #f8fbfd),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(0, 173, 239, 0.04) 10px,
      rgba(0, 173, 239, 0.04) 20px
    );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.35rem;
  color: var(--brand-deeper);
  font-weight: 700;
  min-height: 200px;
  padding: 1.25rem;
}

.media-feature__frame {
  min-height: 320px;
}

.media-feature__label,
.media-slot span,
.gallery__item span {
  font-size: 0.95rem;
}

.media-feature__path,
.media-slot small,
.gallery__item small {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 0.85rem;
}

.gallery__item--lg {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 280px;
}

.spec-list-block {
  margin-top: 2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
}

.spec-list-block h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--ink);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  background: var(--brand-soft);
  color: var(--brand-deeper);
  border: 1px solid var(--brand-mid);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Method */
.method {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.method__copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.method__list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  counter-reset: method;
}

.method__list li {
  counter-increment: method;
  position: relative;
  padding-left: 3rem;
}

.method__list li::before {
  content: counter(method, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand);
}

.method__list strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.method__list p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.method__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.gauge {
  margin-bottom: 1.15rem;
}

.gauge__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.gauge__row strong {
  color: var(--brand-deeper);
  font-weight: 800;
}

.gauge__bar {
  height: 10px;
  background: var(--brand-soft);
  border-radius: 999px;
  overflow: hidden;
}

.gauge__bar i {
  display: block;
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--brand), var(--brand-deeper));
  border-radius: inherit;
}

.method__note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Spaces */
.spaces {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.space {
  border-radius: var(--radius-lg);
  min-height: 220px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(11, 23, 34, 0.15), rgba(11, 23, 34, 0.55)),
    linear-gradient(135deg, #0090c7, #00adef 50%, #7dd3f5);
}

.space--lg {
  min-height: 280px;
  background:
    linear-gradient(160deg, rgba(11, 23, 34, 0.2), rgba(11, 23, 34, 0.6)),
    linear-gradient(145deg, #043447, #0077a8 45%, #00adef);
}

.space span {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 0.4rem;
}

.space strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
}

/* Team */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}

.member:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.member__avatar {
  aspect-ratio: 1;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 1rem;
}

.member__avatar--1 {
  background: linear-gradient(145deg, #00adef, #0077a8);
}

.member__avatar--2 {
  background: linear-gradient(145deg, #0090c7, #5ec8f2);
}

.member__avatar--3 {
  background: linear-gradient(145deg, #0a4f6e, #00adef);
}

.member__avatar--4 {
  background: linear-gradient(145deg, #043447, #3db8e8);
}

.member h3 {
  font-size: 1rem;
  font-weight: 700;
}

.member__role {
  color: var(--brand-deeper);
  font-weight: 700;
  font-size: 0.82rem;
  margin: 0.2rem 0 0.5rem !important;
}

.member p:last-child {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

.faq h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.faq__list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 1.2rem;
}

.faq__list details[open] {
  border-color: var(--brand-mid);
  box-shadow: var(--shadow-sm);
}

.faq__list summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq__list summary::after {
  content: "+";
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 500;
}

.faq__list details[open] summary::after {
  content: "−";
}

.faq__list details p {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0 1.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* CTA form */
.section--cta {
  background: linear-gradient(145deg, #0a1a24 0%, #0a3a50 50%, #0077a8 100%);
  color: #fff;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.75rem;
  align-items: start;
}

.cta-copy h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: #fff;
}

.cta-copy > p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.25rem;
  max-width: 32rem;
}

.cta-points {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.5rem;
}

.cta-points li {
  position: relative;
  padding-left: 1.35rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  font-weight: 500;
}

.cta-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.cta-contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
}

.cta-contact a:hover {
  color: var(--brand-mid);
}

.cta-contact span {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
  font-size: 0.92rem;
}

.form {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.16);
}

.field input.error,
.field select.error {
  border-color: #d25555;
}

.field textarea {
  resize: vertical;
  min-height: 84px;
}

.form__note {
  text-align: center;
  font-size: 0.88rem;
  min-height: 1.2em;
  color: var(--muted);
}

.form__note.success {
  color: #1a8a55;
  font-weight: 700;
}

.form__note.error {
  color: #c0392b;
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--night);
  color: rgba(255, 255, 255, 0.65);
  padding: 2.5rem 0 1.25rem;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
}

.footer__nav a:hover {
  color: #fff;
}

.footer__bottom {
  padding-top: 1.1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ========== Responsive ========== */
@media (max-width: 980px) {
  .hero__grid,
  .method,
  .faq,
  .cta-grid,
  .about,
  .hours,
  .cover,
  .location,
  .install {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .cards,
  .spec-grid,
  .trust-strip__grid,
  .media-grid--team,
  .media-grid--install,
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery__item--lg {
    grid-column: span 2;
  }

  .spec--wide {
    grid-column: span 2;
  }

  .team {
    grid-template-columns: 1fr 1fr;
  }

  .spaces {
    grid-template-columns: 1fr;
  }

  .space,
  .space--lg {
    min-height: 180px;
  }
}

@media (max-width: 720px) {
  .brand-bar__left span:last-of-type,
  .brand-bar__sep:last-of-type {
    display: none;
  }

  .brand-bar__right a:first-child,
  .brand-bar__right .brand-bar__sep {
    display: none;
  }

  .logo-band__inner {
    padding: 0.95rem 0;
  }

  .site-logo__img {
    height: 5.3rem;
    max-width: 5.7rem;
  }

  .site-logo__img--footer {
    height: 5.1rem;
    max-width: 5.5rem;
  }

  .site-logo__text strong {
    font-size: 0.8rem;
  }

  .site-logo__text small {
    font-size: 20px;
  }

  .burger {
    display: flex;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s var(--ease);
    box-shadow: var(--shadow-sm);
    width: 100%;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    padding: 0.85rem 0.25rem;
  }

  .nav a:not(.nav__cta)::after {
    display: none;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 0.65rem;
    text-align: center;
    background: var(--brand) !important;
    color: #fff !important;
    padding: 0.75rem !important;
  }

  .nav-bar__inner {
    position: relative;
  }

  .wa__phone {
    width: min(100%, 320px);
  }

  .cards,
  .team,
  .form__row,
  .hero__facts,
  .spec-grid,
  .trust-strip__grid,
  .location__list,
  .media-grid--team,
  .media-grid--install,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__item--lg,
  .spec--wide {
    grid-column: span 1;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    padding: 2.25rem 0 3rem;
  }

  html {
    scroll-padding-top: 120px;
  }
}

/* ========== FAB móvil: agendar (solo ≤720px) ========== */
.fab-wa {
  display: none;
}

@media (max-width: 720px) {
  .fab-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    position: fixed;
    z-index: 90;
    left: 1rem;
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    min-height: 3.35rem;
    padding: 0.95rem 1.35rem;
    border-radius: 999px;
    background: #1fad55;
    color: #fff;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.3;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.28), 0 0 1px rgba(0, 0, 0, 0.2);
    box-shadow:
      0 12px 28px rgba(20, 120, 60, 0.38),
      0 4px 12px rgba(16, 24, 40, 0.12);
    transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease;
  }

  .fab-wa:hover,
  .fab-wa:focus-visible {
    background: #189a4a;
    outline: none;
  }

  .fab-wa:active {
    transform: scale(0.98);
  }

  .fab-wa svg {
    flex-shrink: 0;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.22));
  }

  /* Evita que el footer quede tapado por el botón flotante */
  body {
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .wa__dot {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}