/* ============================================================
   SolucionesTech · solucionestech.store
   Colores de marca:
     Azul marino   #1B2B4B  (principal)
     Azul brillante #2D7FDB (acentos y botones)
     Gris claro    #F4F6F9  (fondos alternados)
     Verde WhatsApp #25D366 (solo botones de WhatsApp)
   ============================================================ */

:root {
  --navy: #1B2B4B;
  --navy-dark: #14213C;
  --blue: #2D7FDB;
  --blue-dark: #1F66B8;
  --gray-bg: #F4F6F9;
  --white: #FFFFFF;
  --text: #2B3445;
  --text-soft: #5A6478;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(27, 43, 75, 0.10);
  --shadow-hover: 0 12px 32px rgba(27, 43, 75, 0.16);
  --font-title: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

/* Que el header fijo no tape el inicio de la sección al navegar por anclas */
[id] { scroll-margin-top: 84px; }

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

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

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* ===== Header / Nav ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(27, 43, 75, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.nav__logo img {
  width: auto;
  height: 52px;
}

.nav__menu {
  display: flex;
  list-style: none;
  gap: 6px;
}

.nav__menu a {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s, color 0.2s;
}

.nav__menu a:hover,
.nav__menu a:focus-visible {
  background: var(--gray-bg);
  color: var(--blue);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}

.nav__toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

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

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 70%, #0F1A30 100%);
  color: var(--white);
  padding: 72px 0 88px;
  text-align: center;
}

.hero__logo {
  width: min(300px, 60%);
  margin: 0 auto 18px;
}

.hero__slogan {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(0.85rem, 2.2vw, 1.05rem);
  letter-spacing: 0.35em;
  color: #A9C6EC;
  margin-bottom: 26px;
}

.hero__title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.35rem, 3.6vw, 2.1rem);
  line-height: 1.3;
  max-width: 820px;
  margin: 0 auto 16px;
}

.hero__text {
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: #D4DEEE;
  max-width: 640px;
  margin: 0 auto 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 34px;
}

.hero__note {
  font-size: 0.95rem;
  color: #BFD3EC;
  background: rgba(45, 127, 219, 0.14);
  border: 1px solid rgba(45, 127, 219, 0.35);
  border-radius: 999px;
  display: inline-block;
  padding: 10px 22px;
  max-width: 92%;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--navy); /* navy sobre verde: contraste 7:1 (WCAG AA) */
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp:hover,
.btn--whatsapp:focus-visible {
  background: #3DE87C;
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

.btn--card {
  width: 100%;
  font-size: 0.95rem;
  padding: 12px 18px;
}

/* ===== Secciones ===== */
.section {
  padding: 76px 0;
}

.section--alt { background: var(--gray-bg); }

.section--navy {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
}

.section__title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
  color: var(--navy);
  text-align: center;
  margin-bottom: 14px;
}

.section--navy .section__title { color: var(--white); }

.section__title-note {
  font-size: 0.6em;
  font-weight: 700;
  color: var(--text-soft);
  white-space: nowrap;
}

.section__subtitle {
  text-align: center;
  color: var(--text-soft);
  max-width: 700px;
  margin: 0 auto 46px;
  font-size: 1.05rem;
}

.section--navy .section__subtitle { color: #C7D4E8; }

/* ===== Grids ===== */
.grid {
  display: grid;
  gap: 26px;
}

.grid--pos,
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.grid--wifi { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  max-width: 900px;
  margin-inline: auto;
}

.grid--4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ===== Tarjetas ===== */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card--featured {
  border: 2px solid var(--blue);
}

.card__badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(45, 127, 219, 0.4);
}

.card__media {
  background: var(--gray-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  min-height: 230px;
}

.card__media img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
}

.card__media--duo {
  gap: 10px;
}

.card__media--duo img {
  max-width: 46%;
  max-height: 180px;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 24px;
}

.card__name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.card__price {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.85rem;
  color: var(--blue);
  margin-bottom: 14px;
}

.card__price span {
  font-size: 0.5em;
  font-weight: 700;
  color: var(--text-soft);
}

.card__features {
  list-style: none;
  margin-bottom: 20px;
  flex: 1;
}

.card__features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 7px;
  font-size: 0.93rem;
  color: var(--text);
}

.card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.card__savings {
  background: rgba(37, 211, 102, 0.12);
  color: #147A3D;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* Tarjetas de combos sobre fondo azul marino */
.card--combo .card__name { font-size: 1.25rem; }
.card--combo .card__price { font-size: 2.1rem; }

/* ===== Carrusel (combos) ===== */
.card__media--carousel { padding: 0; }

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel__track {
  display: flex;
  transition: transform 0.45s ease;
}

.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 26px 34px;
  min-height: 250px;
}

.carousel__slide img {
  max-height: 210px;
  width: auto;
  object-fit: contain;
}

.carousel__tag {
  position: absolute;
  left: 12px;
  bottom: 10px;
  background: rgba(27, 43, 75, 0.88);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  pointer-events: none;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(27, 43, 75, 0.55);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 4px;
  transition: background-color 0.2s;
}

.carousel__btn:hover,
.carousel__btn:focus-visible { background: rgba(27, 43, 75, 0.9); }

.carousel__btn--prev { left: 10px; }
.carousel__btn--next { right: 10px; }

.carousel__dots {
  position: absolute;
  bottom: 12px;
  right: 14px;
  display: flex;
  gap: 7px;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: rgba(27, 43, 75, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s, transform 0.2s;
}

.carousel__dot.is-active {
  background: var(--blue);
  transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
  .carousel__track { transition: none; }
}

/* ===== Tablas de precios ===== */
.tables {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: start;
}

.table-block__title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.table-block__note {
  color: var(--text-soft);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 10px;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 13px 18px;
  font-size: 0.95rem;
}

.price-table thead th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.price-table tbody tr:nth-child(even) { background: var(--gray-bg); }

.price-table td:last-child {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  text-align: right;
}

.price-table__highlight {
  background: rgba(45, 127, 219, 0.10) !important;
  border-left: 4px solid var(--blue);
}

.tag {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ===== Beneficios ===== */
.benefits { text-align: center; }

.benefit {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 22px;
  box-shadow: var(--shadow);
}

.benefit__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(45, 127, 219, 0.12);
  color: var(--blue);
  margin-bottom: 16px;
}

.benefit h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  margin-bottom: 8px;
}

.benefit p {
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* ===== Footer ===== */
.footer {
  background: linear-gradient(160deg, var(--navy) 0%, #0F1A30 100%);
  color: var(--white);
  padding: 64px 0 28px;
}

.footer__grid {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 44px;
}

.footer__brand img {
  width: min(220px, 70%);
  margin-bottom: 14px;
}

.footer__slogan {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: #A9C6EC;
}

.footer h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--white);
}

.footer__contact ul {
  list-style: none;
}

.footer__contact li {
  margin-bottom: 10px;
  color: #D4DEEE;
  font-size: 0.97rem;
}

.footer__contact a {
  color: #D4DEEE;
  text-decoration: none;
  transition: color 0.2s;
}

.footer__contact a:hover,
.footer__contact a:focus-visible { color: var(--white); }

.footer__info p {
  color: #D4DEEE;
  margin-bottom: 10px;
  font-size: 0.97rem;
}

.footer__cta {
  font-weight: 700;
  color: var(--white) !important;
  margin-bottom: 18px !important;
}

.footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 22px;
  text-align: center;
  font-size: 0.88rem;
  color: #8DA2C2;
}

/* ===== Botón flotante de WhatsApp ===== */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, background-color 0.2s;
}

.wa-float:hover,
.wa-float:focus-visible {
  background: #3DE87C;
  transform: scale(1.08);
}

/* ===== Animación de aparición =====
   Las tarjetas solo se ocultan cuando el JS confirma que puede animarlas
   (html.js-anim). Sin JS, con reduced-motion o si el observer falla,
   todo el contenido queda visible. */
html.js-anim .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

html.js-anim .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .btn, .card, .wa-float { transition: none; }
}

/* ===== Móvil ===== */
@media (max-width: 820px) {
  .nav__toggle { display: flex; }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    box-shadow: 0 14px 24px rgba(27, 43, 75, 0.14);
    padding: 8px 0 14px;
    display: none;
  }

  .nav__menu.is-open { display: flex; }

  .nav__menu a {
    padding: 14px 24px;
    border-radius: 0;
    font-size: 1.02rem;
  }

  .section { padding: 56px 0; }

  .hero { padding: 56px 0 64px; }

  /* Tablas → tarjetas en móvil */
  .price-table thead { display: none; }

  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td { display: block; width: 100%; }

  .price-table tr {
    padding: 12px 16px;
    border-bottom: 1px solid #E3E8F0;
  }

  .price-table tr:last-child { border-bottom: none; }

  .price-table td {
    padding: 2px 0;
  }

  .price-table td:last-child {
    text-align: left;
    font-size: 1.05rem;
    color: var(--blue);
  }

  .price-table__highlight { border-left-width: 4px; }

  .wa-float {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 16px;
  }
}
