/* =====================================================
   TDA INTERNET — Stylesheet
   Palette: Claro red + pure white + dark navy
   Fonts: Barlow (display) · Figtree (body)
   Strategy: Committed — red carries 40-60% of hero areas
   ===================================================== */

/* === TOKENS ================================================= */
:root {
  /* Brand */
  --red:        oklch(0.48 0.215 27);
  --red-dark:   oklch(0.38 0.200 27);
  --red-pale:   oklch(0.956 0.022 27);
  --red-mid:    oklch(0.62 0.160 27);

  /* Surface */
  --bg:         oklch(1.000 0.000 0);
  --surface:    oklch(0.970 0.003 20);
  --surface-2:  oklch(0.942 0.005 20);
  --border:     oklch(0.895 0.004 20);

  /* Ink */
  --ink:        oklch(0.152 0.012 25);
  --ink-muted:  oklch(0.500 0.008 25);
  --ink-faint:  oklch(0.700 0.005 25);

  /* Dark sections */
  --dark:       oklch(0.182 0.020 222);
  --dark-mid:   oklch(0.250 0.018 222);
  --dark-border: oklch(0.300 0.016 222);

  /* WhatsApp */
  --wa:         oklch(0.620 0.175 145);
  --wa-dark:    oklch(0.500 0.160 145);

  /* Typography */
  --ff-display: 'Barlow', system-ui, sans-serif;
  --ff-body:    'Figtree', system-ui, sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;

  /* Misc */
  --navbar-h:   70px;
  --r-sm:       6px;
  --r-md:       12px;
  --r-lg:       20px;
  --r-xl:       28px;
  --r-pill:     999px;

  --shadow-sm:  0 1px 4px oklch(0.15 0.012 25 / 0.08);
  --shadow-md:  0 4px 20px oklch(0.15 0.012 25 / 0.10);
  --shadow-lg:  0 8px 40px oklch(0.15 0.012 25 / 0.14);
  --shadow-xl:  0 16px 64px oklch(0.15 0.012 25 / 0.18);
  --shadow-red: 0 6px 24px oklch(0.48 0.215 27 / 0.32);

  --z-sticky: 200;
  --z-overlay: 300;
  --z-float:  500;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t: 220ms ease;
  --t-slow: 420ms var(--ease-out);
}

/* === RESET ================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }
.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; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* === UTILITIES ============================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-pad {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}

.section-title {
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  color: var(--ink);
}

.section-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--ink-muted);
  margin-top: 0.75rem;
  max-width: 58ch;
  line-height: 1.6;
}

/* === BUTTONS ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.625rem;
  border-radius: var(--r-pill);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  transition: background var(--t), transform var(--t), box-shadow var(--t), color var(--t);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn:active { transform: scale(0.97); }

.btn-red {
  background: var(--red);
  color: #fff;
}
.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.btn-outline-red {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-red:hover {
  background: var(--red-pale);
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--red);
}
.btn-white:hover {
  background: oklch(0.96 0 0);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px oklch(1 0 0 / 0.25);
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-dark:hover {
  background: var(--dark-mid);
  transform: translateY(-2px);
}

.btn-wa {
  background: var(--wa);
  color: #fff;
}
.btn-wa:hover {
  background: var(--wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px oklch(0.62 0.175 145 / 0.35);
}

.btn-sm { padding: 0.55rem 1.125rem; font-size: 0.875rem; }
.btn-lg { padding: 0.9375rem 2.125rem; font-size: 1.0625rem; }

/* === NAVBAR ================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  height: var(--navbar-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
  text-decoration: none;
}
.navbar__logo {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.navbar__badge {
  height: 30px;
  width: auto;
  border-left: 1px solid var(--border);
  padding-left: 0.875rem;
}

.navbar__links {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 0.125rem;
}
.navbar__links a {
  padding: 0.5rem 0.875rem;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  transition: color var(--t), background var(--t);
}
.navbar__links a:hover { color: var(--ink); background: var(--surface); }
.navbar__links a.active { color: var(--red); background: var(--red-pale); }

.navbar__miclaro { display: none; margin-left: auto; }

.navbar__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  border-radius: var(--r-sm);
  transition: background var(--t);
}
.navbar__toggle:hover { background: var(--surface); }
.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
  transform-origin: center;
}
.navbar--open .navbar__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar--open .navbar__toggle span:nth-child(2) { opacity: 0; }
.navbar--open .navbar__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile slide menu */
.navbar__mobile {
  position: fixed;
  top: var(--navbar-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.25rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  transform: translateX(100%);
  transition: transform var(--t-slow);
  z-index: calc(var(--z-sticky) - 1);
  overflow-y: auto;
}
.navbar--open .navbar__mobile { transform: translateX(0); }

.navbar__mobile a {
  padding: 0.875rem 1.125rem;
  border-radius: var(--r-md);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  transition: background var(--t), color var(--t);
  display: block;
}
.navbar__mobile a:hover { background: var(--surface); }
.navbar__mobile a.active { background: var(--red-pale); color: var(--red); }
.navbar__mobile .btn { margin-top: 0.75rem; width: 100%; }

@media (min-width: 768px) {
  .navbar__links { display: flex; }
  .navbar__miclaro { display: inline-flex; }
  .navbar__toggle { display: none; }
  .navbar__mobile { display: none !important; }
}

/* === HERO CAROUSEL ========================================== */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  min-height: 160px;
  overflow: hidden;
  background: var(--dark);
  user-select: none;
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 640ms var(--ease-out);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .carousel__track { transition: none; }
}

.carousel__slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}
.carousel__slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.carousel__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}
@media (max-width: 767px) {
  .carousel {
    aspect-ratio: unset;
    height: auto;
    min-height: unset;
  }
  .carousel__track {
    width: 100%;
    height: auto;
    align-items: flex-start;
  }
  .carousel__slide {
    min-width: 100vw;
    width: 100vw;
    height: auto;
  }
  .carousel__slide picture {
    display: block;
    width: 100vw;
    height: auto;
  }
  .carousel__img {
    display: block;
    width: 100vw !important;
    max-width: 100vw !important;
    height: auto !important;
    object-fit: unset !important;
  }
}

/* Paragraph spacing inside multi-line FAQ answers */
.faq__answer p { margin-bottom: 0.75rem; }
.faq__answer p:last-child { margin-bottom: 0; }
.faq__answer strong { color: var(--ink); }

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: oklch(1 0 0 / 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: background var(--t), transform var(--t);
}
.carousel__btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}
.carousel__btn--prev { left: 1rem; }
.carousel__btn--next { right: 1rem; }
.carousel__btn svg {
  width: 18px;
  height: 18px;
  color: var(--ink);
}

.carousel__dots {
  position: absolute;
  bottom: 1.125rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}
.carousel__dot {
  height: 8px;
  width: 8px;
  border-radius: var(--r-pill);
  background: oklch(1 0 0 / 0.45);
  transition: width 280ms ease, background 280ms ease;
  cursor: pointer;
}
.carousel__dot.active {
  width: 26px;
  background: var(--red);
}

/* === FEATURES ("Tenemos lo que estás buscando") ============ */
.features { background: var(--bg); }

.features__header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: oklch(0.82 0.005 20);
}

.feature-card__icon {
  width: 58px;
  height: 58px;
  border-radius: var(--r-md);
  background: var(--red-pale);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card__icon svg {
  width: 28px;
  height: 28px;
  color: var(--red);
}

.feature-card__title {
  font-family: var(--ff-display);
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--ink);
}

.feature-card__desc {
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.65;
  flex: 1;
}

.feature-card__link {
  font-weight: 600;
  color: var(--red);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--t);
}
.feature-card__link:hover { gap: 0.55rem; }
.feature-card__link svg { width: 14px; height: 14px; }

/* === CTA BAND =============================================== */
.cta-band {
  background: var(--red);
  color: white;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  color: white;
  margin-bottom: 0.75rem;
}
.cta-band p {
  font-size: 1.0625rem;
  color: oklch(0.92 0.040 27);
  margin-bottom: 2rem;
  max-width: 48ch;
  margin-inline: auto;
}

/* === FAQ ==================================================== */
.faq { background: var(--surface); }

.faq__header {
  text-align: center;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq__item {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 0fr;
  transition: border-color var(--t), grid-template-rows 340ms var(--ease-out);
}
.faq__item.open { border-color: var(--red); grid-template-rows: auto 1fr; }

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  gap: 1rem;
  transition: color var(--t);
}
.faq__item.open .faq__question { color: var(--red); }

.faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--ink-faint);
  transition: transform var(--t), color var(--t);
}
.faq__item.open .faq__icon { transform: rotate(180deg); color: var(--red); }

.faq__answer {
  overflow: hidden;
  min-height: 0;
  padding: 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  line-height: 1.7;
}
.faq__item.open .faq__answer {
  padding-bottom: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .faq__item { transition: border-color var(--t); }
  .faq__icon { transition: none; }
}

/* === CONTACT STRIP (on index) ============================== */
.contact-strip {
  background: var(--dark);
  color: white;
}
.contact-strip .section-title { color: white; }
.contact-strip .section-sub { color: oklch(0.68 0.010 222); }

.contact-strip__grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .contact-strip__grid { grid-template-columns: 1fr 1fr; }
}

/* === FORMS ================================================== */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  border: 1.5px solid oklch(0.35 0.015 222);
  background-color: oklch(0.245 0.018 222);
  color: white;
  font-size: 0.9375rem;
  transition: border-color var(--t), background var(--t);
  width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder { color: oklch(0.55 0.010 222); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--red-mid);
  background-color: oklch(0.265 0.018 222);
}
.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff80'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 18px;
  padding-right: 2.5rem;
}
.form-select option { background: var(--dark); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-label { color: oklch(0.78 0.008 222); }

/* Light form variant (contacto page) */
.form--light .form-input,
.form--light .form-select,
.form--light .form-textarea {
  background-color: var(--bg);
  color: var(--ink);
  border-color: var(--border);
}
.form--light .form-input::placeholder,
.form--light .form-textarea::placeholder { color: oklch(0.52 0.007 25); }
.form--light .form-input:focus,
.form--light .form-select:focus,
.form--light .form-textarea:focus {
  border-color: var(--red);
  background-color: var(--red-pale);
}
.form--light .form-label { color: var(--ink-muted); }
.form--light .form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2399988f'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}
.form--light .form-select option { background: var(--bg); color: var(--ink); }

/* === FLOATING WHATSAPP BUTTON ============================== */
.float-wa {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: var(--z-float);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px oklch(0.62 0.175 145 / 0.42);
  text-decoration: none;
  animation: wa-breathe 3s ease-in-out infinite;
  transition: background var(--t), transform var(--t);
}
.float-wa:hover {
  background: var(--wa-dark);
  transform: scale(1.1);
  animation: none;
}
.float-wa svg { width: 30px; height: 30px; }

@keyframes wa-breathe {
  0%, 100% { box-shadow: 0 4px 24px oklch(0.62 0.175 145 / 0.42); }
  50% {
    box-shadow:
      0 4px 32px oklch(0.62 0.175 145 / 0.55),
      0 0 0 8px oklch(0.62 0.175 145 / 0.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .float-wa { animation: none; }
}

/* === FOOTER ================================================= */
.footer {
  background: var(--dark);
  color: oklch(0.68 0.010 222);
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer__logo-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}
.footer__logo {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer__badge {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  border-left: 1px solid var(--dark-border);
  padding-left: 0.875rem;
}
.footer__tagline {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 30ch;
}

.footer__col-heading {
  font-family: var(--ff-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: oklch(0.85 0.008 222);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__links a {
  font-size: 0.9rem;
  color: oklch(0.62 0.008 222);
  transition: color var(--t);
}
.footer__links a:hover { color: white; }

.footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  color: oklch(0.52 0.008 222);
}
.footer__credit a {
  color: oklch(0.68 0.010 222);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--t);
}
.footer__credit a:hover { color: white; }

/* === PAGE HEROES ============================================ */
.page-hero {
  background: var(--red);
  color: white;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  text-align: center;
}
.page-hero .section-title { color: white; }
.page-hero .section-sub {
  color: oklch(0.91 0.038 27);
  margin-inline: auto;
}

/* === PLANES PAGE ============================================ */
.plans-section { background: var(--surface); }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.plan-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  transition: transform var(--t), box-shadow var(--t);
}
.plan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.plan-card.featured {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red), var(--shadow-lg);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
}

.plan-name {
  font-family: var(--ff-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--ink);
}

.plan-data {
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.plan-data span {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.plan-feature {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}
.plan-feature svg {
  width: 16px;
  height: 16px;
  color: var(--wa);
  flex-shrink: 0;
}

.plan-note {
  font-size: 0.8rem;
  color: var(--ink-faint);
  text-align: center;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

.plans-disclaimer {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.875rem;
  color: var(--ink-faint);
  max-width: 52ch;
  margin-inline: auto;
}

/* Form validation error state */
.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: var(--red-mid) !important;
  animation: shake 320ms ease;
}
.form--light .form-input.error,
.form--light .form-select.error,
.form--light .form-textarea.error {
  border-color: var(--red) !important;
  background-color: var(--red-pale) !important;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .form-input.error, .form-select.error, .form-textarea.error { animation: none; }
}

/* === COBERTURA PAGE ========================================= */
.bot-wrap {
  max-width: 560px;
  margin: 3rem auto 0;
}

.bot-container {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.bot-header {
  background: var(--red);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.bot-header__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: oklch(1 0 0 / 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bot-header__avatar svg { width: 22px; height: 22px; color: white; }
.bot-header__name { color: white; font-weight: 700; font-size: 1rem; }
.bot-header__status { color: oklch(0.91 0.038 27); font-size: 0.8125rem; display: flex; align-items: center; gap: 0.375rem; }
.bot-header__status::before {
  content: '';
  width: 7px;
  height: 7px;
  background: oklch(0.80 0.160 145);
  border-radius: 50%;
  display: block;
}

.bot-messages {
  padding: 1.5rem;
  min-height: 180px;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  scroll-behavior: smooth;
}

.bot-msg {
  max-width: 86%;
  padding: 0.875rem 1.125rem;
  border-radius: 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.bot-msg--bot {
  background: var(--surface);
  color: var(--ink);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  animation: msg-appear 280ms var(--ease-out) both;
}
.bot-msg--user {
  background: var(--red);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  animation: msg-appear 280ms var(--ease-out) both;
}

@keyframes msg-appear {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .bot-msg { animation: none; }
}

.bot-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.75rem 1rem;
  background: var(--surface);
  border-radius: 1rem;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}
.bot-typing span {
  width: 6px;
  height: 6px;
  background: var(--ink-faint);
  border-radius: 50%;
  animation: typing-dot 1.2s ease-in-out infinite;
}
.bot-typing span:nth-child(2) { animation-delay: 0.2s; }
.bot-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .bot-typing span { animation: none; opacity: 0.6; }
}

.bot-input-area {
  padding: 1.125rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bot-select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9375rem;
  font-family: var(--ff-body);
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2399988f'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 18px;
  transition: border-color var(--t);
}
.bot-select:focus { outline: none; border-color: var(--red); }
.bot-select option { background: var(--bg); }

.bot-text-row {
  display: flex;
  gap: 0.5rem;
}
.bot-text-row input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 0.9375rem;
  transition: border-color var(--t);
}
.bot-text-row input:focus { outline: none; border-color: var(--red); }
.bot-text-row input::placeholder { color: oklch(0.52 0.007 25); }

.bot-result-card {
  background: oklch(0.965 0.045 145);
  border: 1.5px solid oklch(0.62 0.175 145 / 0.30);
  border-radius: var(--r-md);
  padding: 1.125rem;
  font-size: 0.9375rem;
  color: oklch(0.28 0.095 145);
  line-height: 1.55;
  max-width: 100%;
  align-self: stretch;
}
.bot-result-card.no-coverage {
  background: oklch(0.965 0.022 27);
  border-color: oklch(0.48 0.215 27 / 0.25);
  color: oklch(0.35 0.120 27);
}

/* === LOCALES PAGE =========================================== */
.locales-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .locales-grid { grid-template-columns: 1fr 1fr; }
}

.local-card {
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  transition: transform var(--t), box-shadow var(--t);
}
.local-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.local-card__head {
  background: var(--red);
  padding: 2rem 1.75rem;
}
.local-card__city {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: oklch(0.91 0.038 27);
  margin-bottom: 0.4rem;
}
.local-card__name {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
}
.local-card__address {
  display: flex;
  align-items: flex-start;
  gap: 0.375rem;
  font-size: 0.9375rem;
  color: oklch(0.91 0.038 27);
}
.local-card__address svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
}

.local-card__body {
  padding: 1.5rem 1.75rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.local-card__map-embed {
  width: 100%;
  height: 200px;
  border: 0;
  display: block;
}
/* Services grid */
.services-section { background: var(--surface); }

.services-header {
  text-align: center;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card.visible:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: oklch(0.82 0.005 20);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--r-md);
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t);
}
.service-card.visible:hover .service-card__icon {
  transform: scale(1.08) rotate(-4deg);
}
.service-card__icon svg {
  width: 26px;
  height: 26px;
  color: white;
}

.service-card__title {
  font-family: var(--ff-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.375rem;
}
.service-card__desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

@media (prefers-reduced-motion: reduce) {
  .service-card:hover { transform: none; }
  .service-card:hover .service-card__icon { transform: none; }
}

/* === CONTACTO PAGE ========================================== */
.contacto-section {
  padding: clamp(3rem, 8vw, 5rem) 0;
}
.contacto-wrap {
  display: grid;
  gap: 4rem;
  align-items: start;
}
@media (min-width: 768px) {
  .contacto-wrap { grid-template-columns: 1fr 1.4fr; }
}

.contacto-info h2 {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  margin-bottom: 1rem;
}
.contacto-info p {
  font-size: 1rem;
  color: var(--ink-muted);
  margin-bottom: 2rem;
  max-width: 40ch;
  line-height: 1.65;
}

.contacto-links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 2rem;
}
.contacto-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
.contacto-link svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; }
.contacto-link strong { color: var(--ink); }

.form-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 2.5rem);
}
.form-card__title {
  font-family: var(--ff-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

/* === RESPONSIVE TWEAKS ====================================== */
@media (max-width: 767px) {
  .carousel__btn { display: none; }
  .carousel__dots { display: none; }
}
@media (max-width: 480px) {
  .plans-grid { grid-template-columns: 1fr; }
}
