:root {
  --blue-900: #0b1f3a;
  --blue-800: #12335c;
  --blue-700: #1a4d8f;
  --blue-deep: #001eb3;
  --blue-navy: #011a78;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --white: #ffffff;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11, 31, 58, 0.12);
  --shadow-lg: 0 20px 45px rgba(11, 31, 58, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
}

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

a {
  color: var(--blue-600);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section--tint {
  background: var(--blue-50);
}

.section-title {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--blue-900);
  line-height: 1.2;
}

.section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
  color: var(--gray-600);
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--blue-100);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--blue-navy);
}

.brand__name {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name .brand__title,
.brand__name strong {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--blue-navy);
}

.brand__name .brand__suffix,
.brand__name small {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: var(--blue-navy);
  opacity: 0.85;
}

/* Marca en texto corrido: mismo diseño de la imagen StarFiber SAS */
.brand-word {
  font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--blue-navy);
  font-style: normal;
}

.page-hero .brand-word,
.coverage .brand-word,
.cta-band .brand-word,
.footer .brand-word {
  color: var(--white);
}

.brand img {
  height: 76px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand span {
  color: var(--blue-600);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--gray-700);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.is-active {
  color: var(--blue-600);
}

.nav .btn {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-900);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.2s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s;
}

.btn--primary {
  background: var(--blue-600);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.btn--primary:hover {
  background: var(--blue-700);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--white);
  color: var(--blue-700);
}

.btn--white:hover {
  background: var(--blue-50);
}

.btn--outline {
  border: 2px solid var(--blue-600);
  color: var(--blue-600);
}

.btn--outline:hover {
  background: var(--blue-50);
}

.btn--whatsapp {
  background: #25d366;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp:hover {
  background: #1eb857;
  transform: translateY(-2px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  color: var(--white);
  overflow: hidden;
  background-image: url("../images/starFiber-1.png");
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 31, 58, 0.92) 0%,
    rgba(11, 31, 58, 0.68) 45%,
    rgba(11, 31, 58, 0.2) 100%
  );
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
  padding: 6rem 0;
  max-width: 760px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1.2rem;
}

.hero h1 em {
  color: #7fb2ff;
  font-style: normal;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
  margin: 0 0 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.8rem;
  padding: 0;
  margin: 1.8rem 0 0;
  list-style: none;
}

.hero__perks li {
  position: relative;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 0.42rem 1rem 0.42rem 2.1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero__perks li::before {
  content: "✓";
  position: absolute;
  left: 0.8rem;
  color: #7fb2ff;
  font-weight: 800;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
}

.hero__stat b {
  display: block;
  font-size: 1.5rem;
}

.hero__stat span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ===== Cards ===== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--narrow {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.card .icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-50);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}

.card .icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--blue-600);
}

.card h3 {
  margin: 0 0 0.6rem;
  color: var(--blue-900);
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
}

/* ===== Plan cards ===== */
.plan {
  text-align: center;
  position: relative;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.plan__tag {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-600);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan__header {
  padding: 2.2rem 1.5rem 1.4rem;
}

.plan__name {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-600);
}

.plan--highlight .plan__name {
  color: var(--blue-deep);
}

.plan__speed {
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1;
}

.plan__speed span {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-top: 0.35rem;
}

.plan__price {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--blue-900);
  margin: 1rem 0 0;
}

.plan__price small {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
}

.plan ul {
  list-style: none;
  padding: 1.4rem 1.6rem;
  margin: 0;
  text-align: left;
  background: #f9f9f9;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  flex-grow: 1;
}

.plan ul li {
  padding: 0.45rem 0 0.45rem 1.8rem;
  position: relative;
  font-size: 0.95rem;
}

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

.plan .btn {
  margin: 1.3rem 1.6rem 1.6rem;
  width: calc(100% - 3.2rem);
}

/* ===== Coverage ===== */
.coverage {
  position: relative;
  background-image: url("../images/starFiber-3.png");
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.coverage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(11, 31, 58, 0.55) 0%,
    rgba(11, 31, 58, 0.15) 45%,
    rgba(11, 31, 58, 0.15) 65%,
    rgba(11, 31, 58, 0.4) 100%
  );
}

.coverage > .container {
  position: relative;
  z-index: 1;
}

.coverage__panel {
  background: rgba(11, 31, 58, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 600px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.coverage__panel .section-title,
.coverage__panel .section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.coverage .section-title {
  color: var(--white);
}

.coverage .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.coverage__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 520px;
  margin: 0;
  text-align: left;
}

.coverage__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  padding: 0;
  list-style: none;
  margin: 0;
}

.coverage__list li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.coverage__note {
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1.2rem;
  font-size: 0.9rem;
}

/* ===== Steps ===== */
.steps {
  counter-reset: step;
}

.step {
  counter-increment: step;
  position: relative;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: -22px;
  left: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-600);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

/* ===== FAQ ===== */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: 12px;
  margin-bottom: 1rem;
  padding: 0 1.4rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 1.1rem 0;
  font-weight: 700;
  color: var(--blue-900);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--blue-600);
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
}

/* ===== CTA band ===== */
.cta-band {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.cta-band p {
  margin: 0 auto 2rem;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
}

/* ===== Footer ===== */
.footer {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
  font-size: 0.92rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer h4 {
  color: var(--white);
  margin: 0 0 1rem;
  font-size: 1rem;
}

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

.footer ul li {
  margin-bottom: 0.6rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer a:hover {
  color: var(--blue-100);
}

.footer .brand {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer .brand img {
  height: 52px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  mix-blend-mode: normal;
  background: var(--white);
  padding: 6px 12px;
  border-radius: 12px;
}

.footer .brand__name strong,
.footer .brand__name small {
  color: var(--white);
}

.footer__social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.footer__social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.footer__social a:hover {
  background: var(--blue-600);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ===== Page hero (inner) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

.page-hero p {
  margin: 0 auto;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
}

/* ===== Contact ===== */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.contact__item .icon {
  flex-shrink: 0;
}

.contact__item h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  color: var(--blue-900);
}

.contact__item p,
.contact__item a {
  margin: 0;
  font-size: 0.95rem;
}

/* ===== Forms ===== */
.form-card {
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.form-card h2 {
  margin: 0 0 0.3rem;
  color: var(--blue-900);
}

.form-card p {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.field {
  margin-bottom: 1.2rem;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue-900);
  margin-bottom: 0.4rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--blue-100);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--blue-50);
  color: var(--gray-900);
  transition: border 0.15s, background 0.15s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue-600);
  background: var(--white);
}

/* ===== Table (planes) ===== */
.plan-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.plan-table th,
.plan-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--blue-100);
  font-size: 0.95rem;
}

.plan-table th {
  background: var(--blue-900);
  color: var(--white);
  font-weight: 700;
}

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

.plan-table tr:hover td {
  background: var(--blue-50);
}

/* ===== WhatsApp float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  z-index: 60;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid--3,
  .grid--2,
  .hero__inner,
  .coverage__inner,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    padding: 3rem 0;
  }

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

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 80vw);
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    background: var(--white);
    padding: 5rem 2rem 2rem;
    box-shadow: -10px 0 30px rgba(11, 31, 58, 0.15);
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 3rem 0;
  }

  .coverage__list,
  .hero__stats {
    grid-template-columns: 1fr 1fr;
  }

  .coverage__panel {
    padding: 1.5rem;
  }

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