/* Happieworks — Starlink Chihuahua (tema claro) */
:root {
  --bg: #fafbfc;
  --bg-alt: #f1f4f8;
  --surface: #ffffff;
  --border: #dde3eb;
  --text: #1e293b;
  --text-muted: #475569;
  --accent: #e85a4f;
  --accent-hover: #d14a40;
  --accent-soft: rgba(232, 90, 79, 0.1);
  --link: #b8433a;
  --link-hover: #9a362f;
  --whatsapp: #25d366;
  --whatsapp-hover: #1fb855;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.09);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1100px;
  --header-h: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--link-hover);
}

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

.narrow {
  width: min(100% - 2rem, 640px);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 100;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--border);
}

.brand-name {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-tag {
  margin: 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.header-nav {
  display: none;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.header-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.header-nav a:hover {
  color: var(--text);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

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

.btn-secondary:hover {
  border-color: #c5cdd8;
  color: var(--text);
  background: var(--bg-alt);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #042a14;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  color: #042a14;
}

.btn-lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
  margin-top: 1.25rem;
}

.header-cta {
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
}

/* Hero */
.hero {
  padding: 0 0 3rem;
  background: var(--bg);
}

.hero-banner {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.hero-cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

@media (min-width: 768px) {
  .hero-banner {
    max-height: none;
    background: #2f2a25;
  }

  .hero-cover {
    width: 100%;
    max-width: 1100px;
    height: auto;
    aspect-ratio: 851 / 315;
    object-fit: contain;
    margin: 0 auto;
  }
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-feature-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background: var(--surface);
}

.hero-feature-photo img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--link);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

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

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

.hero-note {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.45;
  box-shadow: var(--shadow);
}

.hero-note strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.notice-banner {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(232, 90, 79, 0.35);
  background: #fff5f4;
  font-size: 0.95rem;
  line-height: 1.5;
}

.notice-banner strong {
  color: var(--text);
}

.buy-antenna-steps {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.buy-antenna-steps li {
  margin-bottom: 0.65rem;
}

.referral-code {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--link);
}

.referral-code-inline {
  margin-top: 0;
}

.buy-antenna-cta {
  margin-top: 1.25rem;
}

.install-how {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .install-how {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
  }
}

.install-how-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.install-how-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 420px;
}

.install-how-photo figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.photo-gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .photo-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.photo-gallery li {
  margin: 0;
}

.photo-gallery figure {
  margin: 0;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.photo-gallery img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.photo-gallery a:focus-visible img,
.photo-gallery figure:hover img {
  transform: scale(1.02);
}

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

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.hero-card-title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(45deg);
}

.check-list.compact li {
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: 3rem 0;
}

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

.section-header {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.section-header.align-left {
  text-align: left;
  margin-left: 0;
}

.section-header h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

.subsection {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.subsection h3 {
  margin: 0 0 0.75rem;
}

.cards-grid {
  display: grid;
  gap: 1.25rem;
}

.cards-grid.three {
  grid-template-columns: 1fr;
}

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

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin: 0.75rem 0 0.5rem;
  font-size: 1.05rem;
}

.info-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.info-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.steps-list li {
  margin-bottom: 0.75rem;
}

.fine-print {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.price-card-featured {
  border-color: rgba(232, 90, 79, 0.4);
  box-shadow: 0 0 0 1px rgba(232, 90, 79, 0.1), var(--shadow-md);
}

.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-soft);
  color: var(--link);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  margin: 0;
}

.price-card h3 {
  margin: 0 0 0.35rem;
}

.price-card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1rem;
}

.price-amount {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

.price-plus {
  margin: 0.25rem 0 1rem;
  color: var(--link);
  font-weight: 600;
}

.price-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.5rem 0 1rem;
}

.price-card-sub {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.kit-contents-list {
  margin-bottom: 1rem;
}

/* Booking */
.booking-block {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.booking-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.booking-wrap iframe {
  width: 100%;
  height: 600px;
  border: 0;
  display: block;
}

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

.booking-external a {
  color: var(--link);
  text-decoration: none;
  font-weight: 500;
}

.booking-external a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.js-whatsapp[hidden],
#contact-agenda-hint[hidden] {
  display: none !important;
}

.fallback-card {
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
}

.fallback-card p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

/* Referido */
.referido-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .referido-grid {
    grid-template-columns: 1fr auto;
  }
}

.qr-figure {
  margin: 0;
  text-align: center;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  justify-self: center;
}

.qr-figure img {
  margin-inline: auto;
  padding: 0.75rem;
  background: #0f172a;
  border-radius: 8px;
}

.qr-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contact */
.contact-section {
  text-align: center;
  padding-bottom: 4rem;
}

.contact-inner h2 {
  margin: 0 0 0.5rem;
}

.contact-phone {
  margin: 0.75rem 0 1rem;
  font-size: 1.05rem;
}

.contact-phone a {
  font-weight: 600;
  text-decoration: none;
  color: var(--link);
}

.contact-phone a:hover {
  text-decoration: underline;
}

#whatsapp-hint {
  margin-top: 1rem;
}

#whatsapp-hint[hidden] {
  display: none;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-alt);
}

.footer-inner p {
  margin: 0.25rem 0;
  text-align: center;
}

/* Simple CSS icons */
.icon-pin::before {
  content: "◎";
  color: var(--link);
}

.icon-sat::before {
  content: "◆";
  font-size: 1.1rem;
  color: var(--link);
}

.icon-wifi::before {
  content: "⌁";
  font-size: 1.25rem;
  color: var(--link);
}

.icon-box::before {
  content: "▣";
  font-size: 1.1rem;
  color: var(--link);
}

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

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