/* ===== MEGASAT TELECOM SL — Estilo profesional flat (inspirado en Grupo Lasser) ===== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #333333;
  background: #ffffff;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ---- Variables ---- */
:root {
  --red:     #C8102E;
  --red-dark:#a50e27;
  --gray-900:#222222;
  --gray-700:#444444;
  --gray-500:#777777;
  --gray-300:#d0d0d0;
  --gray-100:#f8f8f8;
  --white:   #ffffff;
  --max-w:   1060px;
  --font:    'Inter', Helvetica, Arial, sans-serif;
}

/* ===== UTILITY BAR ===== */
.util-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  height: 36px;
  display: flex;
  align-items: center;
}
.util-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.util-bar__contact {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--gray-700);
}
.util-bar__contact a {
  font-weight: 600;
  color: var(--gray-900);
}
.util-bar__contact a:hover { color: var(--red); }
.util-bar__wa {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #25D366;
  font-weight: 600;
}
.util-bar__wa svg { width: 14px; height: 14px; }
.util-bar__links {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 12px;
  color: var(--gray-500);
}
.util-bar__links a {
  padding: 0 10px;
  border-right: 1px solid var(--gray-300);
  color: var(--gray-500);
  transition: color 0.2s;
}
.util-bar__links a:last-child { border-right: none; }
.util-bar__links a:hover { color: var(--red); }

/* ===== HEADER PRINCIPAL ===== */
.site-header {
  background: var(--white);
  padding: 18px 0 14px;
  text-align: center;
  border-bottom: 1px solid var(--gray-300);
}
.site-header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.site-header__logo {
  display: inline-block;
}
.site-header__logo img {
  height: 72px;
  width: auto;
  object-fit: contain;
  display: inline-block;
}
.site-header__tagline {
  font-size: 12px;
  color: var(--gray-500);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ===== NAVBAR ===== */
.nav {
  background: var(--white);
  border-bottom: 2px solid var(--gray-300);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: none;
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  gap: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav__links a {
  padding: 0 16px;
  height: 50px;
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  border-right: 1px solid var(--gray-300);
  letter-spacing: 0.01em;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav__links a:first-child { border-left: 1px solid var(--gray-300); }
.nav__links a:hover,
.nav__links a.active { color: var(--red); background: #fff5f5; }

.nav__cta {
  margin-left: 20px;
  padding: 7px 18px;
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav__cta:hover { background: var(--red); color: var(--white); }

/* Burger mobile */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav__burger span { width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: 0.3s; }

/* Logo grande hero izquierda */
.hero__big-logo {
  margin: 12px 0 20px;
}
.hero__big-logo img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: contain;
  display: block;
}

/* ===== HERO SPLIT 50/50 ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  border-bottom: 1px solid var(--gray-300);
}
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 52px 52px 0;
  max-width: 560px;
  margin-left: auto;
}
.hero__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 14px;
}
.hero__title {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--gray-900);
  margin-bottom: 16px;
}
.hero__title em {
  font-style: normal;
  color: var(--red);
}
.hero__rule {
  width: 56px;
  height: 3px;
  background: var(--red);
  margin-bottom: 18px;
}
.hero__desc {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 420px;
}
.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.btn-outline {
  padding: 10px 24px;
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-outline:hover { background: var(--red); color: var(--white); }
.btn-solid {
  padding: 10px 24px;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 2px;
  border: 2px solid var(--red);
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-solid:hover { background: var(--red-dark); border-color: var(--red-dark); }

.hero__visual {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  background: var(--gray-100);
}
.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Caja blanca con logo sobre la imagen */
.hero__logo-badge {
  position: absolute;
  bottom: 24px;
  right: 24px;
  background: rgba(255,255,255,0.96);
  padding: 12px 20px;
  border-left: 4px solid var(--red);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.hero__logo-badge img {
  height: 44px;
  width: auto;
  display: block;
}

/* ===== INTRO CTA ===== */
.intro-cta {
  text-align: center;
  padding: 42px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
}
.intro-cta__text {
  font-size: 20px;
  font-weight: 400;
  color: var(--gray-700);
  margin-bottom: 10px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.intro-cta__text strong { color: var(--red); font-weight: 700; }
.intro-cta__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.intro-cta__phone a {
  font-size: 30px;
  font-weight: 900;
  color: var(--red);
  letter-spacing: -0.5px;
  transition: color 0.2s;
}
.intro-cta__phone a:hover { color: var(--red-dark); }
.intro-cta__phone span { color: var(--gray-300); font-size: 24px; }

/* ===== SECCIÓN SERVICIOS ===== */
.section {
  padding: 56px 24px;
}
.section--gray { background: var(--gray-100); }
.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section__header {
  text-align: center;
  margin-bottom: 40px;
}
.section__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.section__title {
  font-size: 26px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  line-height: 1.25;
}
.section__rule {
  width: 52px;
  height: 3px;
  background: var(--red);
  margin: 0 auto;
}

/* Grid servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border-top: 1px solid var(--gray-300);
  border-left: 1px solid var(--gray-300);
}
.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px 24px;
  text-align: center;
  border-right: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}
.service-card:hover {
  background: var(--red);
}
.service-card:hover .service-card__icon { color: var(--white); }
.service-card:hover .service-card__name { color: var(--white); }
.service-card__icon {
  width: 52px;
  height: 52px;
  color: var(--red);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.service-card__icon svg { width: 100%; height: 100%; }
.service-card__name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-900);
  line-height: 1.3;
  transition: color 0.2s;
}

/* ===== FEATURES (2 columnas) ===== */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 320px;
}
.features__left {
  background: var(--gray-700);
  color: var(--white);
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.features__left .section__label { color: rgba(255,255,255,0.6); }
.features__left .section__title { color: var(--white); }
.features__left .section__rule { background: var(--red); }
.features__slogan {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  margin-top: 18px;
}
.features__slogan strong { font-weight: 800; color: var(--white); }

.features__right {
  background: var(--gray-100);
  padding: 52px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-content: center;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.feature-item__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-item__icon svg { width: 22px; height: 22px; color: var(--white); }
.feature-item__text h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}
.feature-item__text p {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ===== HONEYWELL BANNER ===== */
.honeywell-banner {
  background: var(--gray-900);
  padding: 48px 24px;
}
.honeywell-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.honeywell-banner__text .section__label { color: rgba(255,255,255,0.5); }
.honeywell-banner__text h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 8px;
}
.honeywell-banner__text h2 em { font-style: normal; color: var(--red); }
.honeywell-banner__text p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  max-width: 480px;
}
.honeywell-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--red);
  padding: 32px 24px;
}
.stats-bar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat-item__number {
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}
.stat-item__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 4px;
}

/* ===== COBERTURA ===== */
.cobertura-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 280px;
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
}
.cobertura-strip__image {
  position: relative;
  overflow: hidden;
  background: var(--gray-100);
}
.cobertura-strip__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cobertura-strip__content {
  padding: 48px 48px 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}
.cobertura-strip__content p {
  font-size: 14px;
  color: var(--gray-700);
  margin-top: 14px;
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.footer {
  background: #1a1a1a;
  color: rgba(255,255,255,0.7);
  padding: 52px 24px 28px;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer__logo img {
  height: 52px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}
.footer__logo p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}
.footer__col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
.footer__col ul li { margin-bottom: 8px; }
.footer__col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer__col ul li a:hover { color: var(--white); }
.footer__contact-phone {
  font-size: 24px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 6px;
}
.footer__contact-phone a { color: var(--white); }
.footer__contact-info {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}
.footer__contact-info a { color: var(--red); }
.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}
.footer__bottom a { color: rgba(255,255,255,0.35); }
.footer__bottom a:hover { color: rgba(255,255,255,0.7); }

/* ===== WHATSAPP FLOTANTE ===== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37,211,102,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,211,102,0.5); }
.wa-float svg { width: 28px; height: 28px; color: white; }

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .util-bar__links { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero__content { padding: 36px 24px; max-width: 100%; margin: 0; }
  .hero__title { font-size: 26px; }
  .hero__visual { min-height: 220px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: 1fr; }
  .features__left { padding: 36px 24px; }
  .features__right { grid-template-columns: 1fr; padding: 36px 24px; gap: 20px; }
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .honeywell-banner__inner { flex-direction: column; }
  .cobertura-strip { grid-template-columns: 1fr; }
  .cobertura-strip__image { min-height: 200px; }
  .cobertura-strip__content { padding: 36px 24px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .nav__links { display: none; flex-direction: column; position: absolute; top: 50px; left: 0; right: 0; background: white; border-bottom: 2px solid var(--gray-300); z-index: 200; }
  .nav__links.open { display: flex; }
  .nav__links a { height: 44px; border-left: none !important; border-right: none !important; border-bottom: 1px solid var(--gray-300); }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__inner { justify-content: flex-start; position: relative; }
  .site-header { display: none; }
  .util-bar { display: none; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .intro-cta__phone a { font-size: 22px; }
  .features__right { grid-template-columns: 1fr; }
}

/* ===== INNER PAGES ===== */
.page-hero {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-300);
  padding: 40px 24px;
  text-align: center;
}
.page-hero__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.page-hero__title {
  font-size: 30px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 10px;
}
.page-hero__rule {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin: 0 auto 14px;
}
.page-hero__desc {
  font-size: 15px;
  color: var(--gray-700);
  max-width: 600px;
  margin: 0 auto;
}

/* Foro */
.foro-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 768px) { .foro-grid { grid-template-columns: 1fr; } }
.thread-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-left: 4px solid var(--red);
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: box-shadow 0.2s;
}
.thread-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.thread-card__cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.thread-card__title { font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 6px; }
.thread-card__meta { font-size: 12px; color: var(--gray-500); }
.sidebar-box {
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  padding: 20px;
  margin-bottom: 16px;
}
.sidebar-box h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-900);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}
