/* MovilRING — tema claro + imágenes (Unsplash, uso gratuito) */
:root {
  --bg: #f4f7fb;
  --bg-elevated: #e8eef6;
  --surface: #ffffff;
  --border: rgba(15, 23, 42, 0.09);
  --text: #0f172a;
  --muted: #5c6b7e;
  --accent: #0b6bcb;
  --accent-hover: #0958ad;
  --accent-soft: rgba(11, 107, 203, 0.12);
  --accent-strong: #0b6bcb;
  --accent-wash: rgba(11, 107, 203, 0.06);
  --sun: #f0b429;
  --radius: 16px;
  --radius-sm: 12px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Outfit", var(--font);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.1);
  --max: 1120px;
  --header-h: 72px;
  --pill-text: #0b4f8c;
  --hero-grad-top: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

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

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

a:hover {
  text-decoration: underline;
}

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

.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  z-index: 1000;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: var(--header-h);
  gap: 1rem;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-strong);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}

.theme-toggle:hover {
  border-color: rgba(11, 107, 203, 0.35);
  transform: scale(1.04);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-toggle-track {
  display: none;
}

.theme-icon {
  position: absolute;
  pointer-events: none;
}

html[data-theme="light"] .theme-icon-moon {
  display: none;
}

html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #064a9e);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 16px rgba(11, 107, 203, 0.35);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo .accent {
  color: var(--accent-strong);
}

.nav-toggle span {
  background: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong) !important;
  border: 1px solid rgba(11, 107, 203, 0.22);
}

.nav-cta:hover {
  background: rgba(11, 107, 203, 0.18);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  transition: transform 0.2s, opacity 0.2s;
}

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

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

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

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    border-bottom: 0;
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 85% 15%, rgba(11, 107, 203, 0.14), transparent 50%),
    radial-gradient(ellipse 70% 60% at 5% 90%, rgba(240, 180, 41, 0.12), transparent 45%),
    linear-gradient(180deg, var(--hero-grad-top) 0%, var(--bg) 100%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr 1.05fr;
    gap: 3rem;
  }
}

.hero-copy {
  min-width: 0;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  max-height: min(420px, 55vh);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(11, 107, 203, 0.08) 100%);
  pointer-events: none;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--text);
  max-width: 20ch;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #064a9e);
  color: #fff;
  box-shadow: 0 8px 24px rgba(11, 107, 203, 0.32);
}

.btn-primary:hover {
  color: #fff;
  box-shadow: 0 10px 28px rgba(11, 107, 203, 0.4);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  box-shadow: var(--shadow);
}

.btn-ghost:hover {
  border-color: rgba(11, 107, 203, 0.25);
  color: var(--text);
}

.btn-wa {
  background: #25d366;
  color: #fff;
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}

.btn-wa:hover {
  color: #fff;
  background: #1ebe57;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.45);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  font-size: 0.95rem;
}

.hero-meta a {
  color: var(--text);
  font-weight: 600;
}

.meta-icon {
  margin-right: 0.35rem;
}

/* Intro + mini galería */
.intro-trust-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-block--centered {
  text-align: center;
  max-width: 52ch;
  margin: 0 0 1.35rem;
}

.intro-trust-block .trust-strip {
  margin-top: 0;
  width: 100%;
}

/* Mini galería confianza */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .trust-strip {
    gap: 1rem;
  }
}

.trust-thumb {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.trust-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.trust-thumb:hover img {
  transform: scale(1.04);
}

/* Quiénes somos */
.about-lead {
  max-width: 42rem;
  margin-top: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .about-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .about-card {
    grid-column: span 2;
  }

  .about-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .about-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.about-card:hover {
  border-color: rgba(11, 107, 203, 0.2);
  box-shadow: var(--shadow-lg);
}

html[data-theme="dark"] .about-card:hover {
  border-color: rgba(126, 200, 255, 0.22);
}

.about-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid rgba(11, 107, 203, 0.15);
}

html[data-theme="dark"] .about-icon {
  border-color: rgba(126, 200, 255, 0.2);
}

.about-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.about-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.58;
  color: var(--muted);
}

.about-story {
  max-width: 44rem;
  margin-top: 2.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.about-story p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

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

.about-story strong {
  color: var(--text);
  font-weight: 600;
}

.about-tagline {
  font-family: var(--font-display);
  font-size: 1.15rem !important;
  font-weight: 600;
  color: var(--text) !important;
  margin-top: 1.25rem !important;
  letter-spacing: -0.02em;
}

/* Sections */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-tight {
  padding-top: 0;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, #f0f4fa 100%);
  border-block: 1px solid var(--border);
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0.35rem 0 0;
  letter-spacing: -0.02em;
  color: var(--text);
}

.intro-block {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 65ch;
  margin: 0;
  line-height: 1.65;
}

.intro-block strong {
  color: var(--text);
}

.prose {
  margin: 0;
  color: var(--muted);
}

.prose.muted {
  color: var(--muted);
}

.narrow {
  max-width: 48ch;
}

.grid-2 {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 800px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .align-center {
    align-items: center;
  }
}

/* Imagen sección fibra */
.section-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  max-height: 340px;
}

.section-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fibra-photo {
  margin-top: 1.75rem;
}

.consolas-quote {
  margin-top: 1.25rem;
}

/* Carrusel operadoras (tarjeta Fibra) */
.operator-showcase {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.operator-showcase-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
  text-align: center;
}

.operator-slideshow {
  position: relative;
  min-height: 104px;
  margin-bottom: 0.85rem;
}

.operator-slide {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
  pointer-events: none;
}

.operator-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
  pointer-events: auto;
}

.operator-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.operator-badge--movistar {
  background: linear-gradient(145deg, #019df4, #0077d0);
}

.operator-badge--vodafone {
  background: linear-gradient(145deg, #e60000, #b80000);
}

.operator-badge--orange {
  background: linear-gradient(145deg, #ff7900, #e56a00);
}

.operator-badge--yoigo {
  background: linear-gradient(145deg, #5e2750, #3d1836);
}

.operator-badge--masmovil {
  background: linear-gradient(145deg, #ffd300, #f5c400);
  border-color: rgba(0, 0, 0, 0.08);
}

.operator-badge--pepephone {
  background: linear-gradient(145deg, #00a959, #008a49);
}

.operator-name {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.operator-slide-masmovil .operator-name {
  color: #1e293b;
}

html[data-theme="dark"] .operator-slide-masmovil .operator-name {
  color: #f8fafc;
}

.operator-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.operator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: 0;
  padding: 0;
  cursor: default;
  background-color: var(--muted);
  opacity: 0.35;
  transition: opacity 0.3s, transform 0.3s;
}

.operator-dot.is-active {
  opacity: 1;
  transform: scale(1.15);
  background-color: var(--accent-strong);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.card-highlight {
  background: linear-gradient(165deg, #fff 0%, var(--accent-wash) 100%);
  border-color: rgba(11, 107, 203, 0.15);
}

.card-quote {
  background: linear-gradient(160deg, #e8f2fc 0%, #dceaf8 100%);
  border: 1px solid rgba(11, 107, 203, 0.18);
  box-shadow: var(--shadow);
}

.h3-card {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.cards-3 {
  display: grid;
  gap: 1.5rem;
}

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

.service-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card .card-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-elevated);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .card-media img {
  transform: scale(1.05);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.checklist {
  margin: 1rem 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.checklist li {
  margin-bottom: 0.4rem;
}

.text-link {
  font-weight: 600;
  color: var(--accent-strong);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.pill-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  padding: 0.4rem 0.85rem;
  background: var(--accent-soft);
  border: 1px solid rgba(11, 107, 203, 0.2);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--pill-text);
  font-weight: 500;
}

.quote {
  margin: 0;
  font-style: normal;
}

.quote p {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 1rem;
}

.quote footer {
  font-size: 0.9rem;
  color: var(--muted);
}

.consolas-visual {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin-inline: auto;
}

.consolas-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consolas-extra-visual {
  margin-top: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  max-height: 240px;
}

.consolas-extra-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid-2.consolas-grid {
  align-items: stretch;
}

@media (min-width: 800px) {
  .grid-2.consolas-grid {
    grid-template-columns: 1fr 0.9fr;
  }
}

/* FAQ */
.section-head--faq {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
  margin-bottom: 2.25rem;
}

.faq-lead {
  max-width: 58ch;
  margin-inline: auto;
  margin-top: 0.75rem;
  margin-bottom: 0;
  text-align: center;
}

.faq-wrap {
  max-width: 720px;
}

.faq-wrap--wide {
  max-width: min(1080px, 100%);
}

@media (min-width: 900px) {
  .faq-wrap--wide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1.75rem;
    align-items: start;
  }

  .faq-wrap--wide .faq-item {
    margin-bottom: 0;
  }
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 0.65rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text);
}

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

.faq-item summary::after {
  content: "+";
  color: var(--accent-strong);
  font-size: 1.25rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* CTA */
.cta-band {
  background:
    linear-gradient(135deg, rgba(11, 107, 203, 0.1) 0%, rgba(240, 180, 41, 0.08) 50%, rgba(255, 255, 255, 0.95) 100%),
    var(--surface);
  border-block: 1px solid var(--border);
}

.cta-inner {
  text-align: center;
  max-width: 560px;
}

.cta-inner--wide {
  max-width: min(720px, 100%);
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
  color: var(--text);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.75rem 0 1rem;
}

.cta-note {
  font-size: 0.85rem;
  text-align: left;
  max-width: 100%;
}

.cta-note code {
  font-size: 0.8em;
  background: var(--bg-elevated);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  color: var(--text);
}

/* Footer */
.site-footer {
  padding: clamp(2rem, 5vw, 3rem) 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-blocks {
  display: grid;
  gap: 2.25rem;
  align-items: start;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

/* Tres columnas desde tablet ancha: evita que «Redes» quede debajo de horario con hueco raro (768–959px). */
@media (min-width: 768px) {
  .footer-blocks {
    gap: clamp(1.25rem, 3vw, 2.5rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .footer-social-col {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
}

.footer-block-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.footer-block-title-spaced {
  margin-top: 1.75rem;
}

.hours-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.hours-card:hover {
  border-color: rgba(11, 107, 203, 0.28);
  background: var(--accent-soft);
}

.hours-card-label {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hours-card-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.footer-address {
  margin: 0 0 0.75rem;
  color: var(--muted);
  line-height: 1.55;
}

.footer-tel {
  margin: 0 0 0.5rem;
}

.footer-tel a {
  font-weight: 600;
}

.footer-social-col {
  min-width: 0;
  text-align: center;
}

.footer-social-col .footer-block-title {
  text-align: center;
}

.social-stack {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: min(22rem, 100%);
}

.social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 0.98rem;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.social-row:hover {
  background: var(--accent-soft);
  border-color: rgba(11, 107, 203, 0.45);
  color: var(--accent-strong);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(11, 107, 203, 0.12);
}

.social-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.social-row-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  color: var(--muted);
  transition: color 0.18s ease;
}

.social-row:hover .social-row-icon {
  color: var(--accent-strong);
}

.social-row-label {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-map-external {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  text-align: center;
}

.footer-map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  min-height: 260px;
  max-height: 380px;
  background: var(--bg-elevated);
}

.footer-map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-minimal {
  text-align: center;
}

.footer-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.small {
  font-size: 0.9rem;
}

.muted {
  color: var(--muted);
}

/* Botones flotantes: volver arriba + WhatsApp */
.scroll-actions {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: 110;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.28s ease;
}

.scroll-actions.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  border: none;
  font: inherit;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.scroll-fab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.scroll-fab--top {
  background: var(--accent);
  color: #fff;
}

.scroll-fab--top:hover {
  background: var(--accent-hover);
  transform: scale(1.06);
}

.scroll-fab--wa {
  background: #25d366;
  color: #fff;
}

.scroll-fab--wa:hover {
  background: #1ebe57;
  color: #fff;
  text-decoration: none;
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-actions {
    transition-duration: 0.01ms;
  }

  .scroll-fab {
    transition: none;
  }
}

/* ——— Modo oscuro (misma estructura, otra atmósfera) ——— */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0f14;
  --bg-elevated: #141922;
  --surface: #1a222e;
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8eaef;
  --muted: #94a3b8;
  --accent: #3d9cf0;
  --accent-hover: #60a9f0;
  --accent-soft: rgba(61, 156, 240, 0.16);
  --accent-strong: #7ec8ff;
  --accent-wash: rgba(61, 156, 240, 0.1);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 56px rgba(0, 0, 0, 0.5);
  --pill-text: #93c5fd;
  --hero-grad-top: #141922;
}

html[data-theme="dark"] .site-header {
  background: rgba(12, 15, 20, 0.88);
  box-shadow: none;
}

html[data-theme="dark"] .nav-cta {
  border-color: rgba(126, 200, 255, 0.35);
  background: rgba(61, 156, 240, 0.12);
  color: var(--accent-strong) !important;
}

html[data-theme="dark"] .nav-cta:hover {
  background: rgba(61, 156, 240, 0.22);
}

html[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(ellipse 90% 70% at 85% 15%, rgba(61, 156, 240, 0.2), transparent 50%),
    radial-gradient(ellipse 70% 60% at 5% 90%, rgba(180, 120, 255, 0.1), transparent 45%),
    linear-gradient(180deg, var(--hero-grad-top) 0%, var(--bg) 100%);
}

html[data-theme="dark"] .hero-visual::after {
  background: linear-gradient(135deg, transparent 45%, rgba(61, 156, 240, 0.12) 100%);
}

html[data-theme="dark"] .section-alt {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, #101520 100%);
}

html[data-theme="dark"] .card-highlight {
  background: linear-gradient(165deg, #1a222e 0%, #1e2838 100%);
  border-color: rgba(61, 156, 240, 0.22);
}

html[data-theme="dark"] .card-quote {
  background: linear-gradient(160deg, #1a2535 0%, #152030 100%);
  border-color: rgba(61, 156, 240, 0.28);
}

html[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, var(--accent), #2563a8);
  box-shadow: 0 10px 28px rgba(61, 156, 240, 0.35);
}

html[data-theme="dark"] .btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  box-shadow: none;
}

html[data-theme="dark"] .btn-ghost:hover {
  border-color: rgba(126, 200, 255, 0.3);
}

html[data-theme="dark"] .cta-band {
  background:
    linear-gradient(135deg, rgba(61, 156, 240, 0.14) 0%, rgba(100, 80, 200, 0.08) 45%, rgba(26, 34, 46, 0.98) 100%),
    var(--surface);
}

html[data-theme="dark"] .faq-item {
  box-shadow: none;
  border-color: rgba(126, 200, 255, 0.22);
  background: var(--surface);
}

html[data-theme="dark"] .trust-thumb {
  border-color: rgba(126, 200, 255, 0.18);
}

html[data-theme="dark"] .intro-block {
  color: #cbd5e1;
}

html[data-theme="dark"] .theme-toggle {
  background: var(--surface);
  border-color: var(--border);
  color: var(--accent-strong);
}

html[data-theme="dark"] .theme-toggle:hover {
  border-color: rgba(126, 200, 255, 0.4);
}

html[data-theme="dark"] .skip-link {
  color: #0c0f14;
}

html[data-theme="dark"] .pill-list li {
  border-color: rgba(126, 200, 255, 0.25);
}

html[data-theme="dark"] .operator-dot.is-active {
  background-color: var(--accent-strong);
}

html[data-theme="dark"] .social-row {
  background: var(--bg);
  box-shadow: none;
}

html[data-theme="dark"] .social-row:hover {
  border-color: rgba(126, 200, 255, 0.5);
  box-shadow: 0 6px 20px rgba(61, 156, 240, 0.15);
}

html[data-theme="dark"] .hours-card {
  background: var(--bg);
  box-shadow: none;
}

html[data-theme="dark"] .hours-card:hover {
  border-color: rgba(126, 200, 255, 0.35);
  background: var(--accent-soft);
}

html[data-theme="dark"] .consolas-extra-visual {
  border-color: rgba(126, 200, 255, 0.18);
}

html[data-theme="dark"] .btn-wa {
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.25);
}

html[data-theme="dark"] .scroll-fab {
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .scroll-fab--top:focus-visible,
html[data-theme="dark"] .scroll-fab--wa:focus-visible {
  outline-color: var(--accent-strong);
}
