/* 3K Home & Business Solutions × MYA Telecom — diseño corporativo
   (generado por tools/generar_sitio_3k.py; los textos salen de KAIRO) */

@font-face {
  font-family: "Iconos";
  src: url("iconos.woff2") format("woff2");
  font-display: block;
}

:root {
  --navy: #071a46;
  --navy-2: #0b2560;
  --ink: #040c20;
  --cyan: #19c3f0;
  --cyan-2: #8fe3ff;
  --text: #eef5ff;
  --muted: #a8b9d6;
  --line: rgba(143, 227, 255, .16);
  --radius: 20px;
  --max: 1200px;
  --serif: "Georgia", "Cambria", "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Un idioma a la vez */
html[data-idioma="es"] [lang="en"], html[data-idioma="en"] [lang="es"] { display: none !important; }

.ico {
  font-family: "Iconos";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  display: inline-block;
  font-size: 1.2em;
  vertical-align: -0.2em;
}

h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.08; }
h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(90deg, var(--cyan), var(--cyan-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  margin: 0 0 .9rem;
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
}

/* ---------- Botones ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button span { transition: transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:hover span { transform: translateX(3px); }
.button-primary { background: linear-gradient(90deg, var(--cyan), #3fd6ff); color: #03122e; box-shadow: 0 12px 30px rgba(25, 195, 240, .28); }
.button-ghost { border-color: rgba(238, 245, 255, .35); color: var(--text); background: rgba(255, 255, 255, .04); }
.button-ghost:hover { border-color: var(--cyan); }
.text-link { color: var(--cyan); font-weight: 700; text-decoration: none; display: inline-flex; gap: .4rem; }
.text-link span { transition: transform .18s ease; }
.text-link:hover span { transform: translateX(3px); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: .75rem max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(4, 12, 32, .8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-size: .92rem; letter-spacing: .12em; }
.brand-copy small { font-size: .66rem; letter-spacing: .42em; color: var(--muted); }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.lang {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: .35rem .75rem;
  font-weight: 700;
  cursor: pointer;
}
.header-cta {
  text-decoration: none;
  font-weight: 700;
  padding: .6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  white-space: nowrap;
}
.header-cta:hover { background: rgba(25, 195, 240, .12); }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ---------- Portada ---------- */
.hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: center; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 12, 32, .94) 0%, rgba(7, 26, 70, .78) 42%, rgba(7, 26, 70, .15) 100%),
    linear-gradient(0deg, var(--ink) 0%, transparent 30%);
}
.hero-content { position: relative; z-index: 1; max-width: var(--max); width: 100%; margin: 0 auto; padding: 6rem 20px 5rem; }
.eyebrow { display: flex; align-items: center; gap: .8rem; color: var(--cyan); font-size: .78rem; font-weight: 700; letter-spacing: .22em; }
.eyebrow > span:first-child { width: 42px; height: 1.5px; background: var(--cyan); flex: none; }
.co-brand { margin: 1.1rem 0 1.4rem; font-size: .82rem; letter-spacing: .18em; color: var(--muted); font-weight: 700; }
.co-brand b { color: var(--cyan); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); max-width: 14ch; }
.hero-text { max-width: 52ch; font-size: clamp(1rem, 1.6vw, 1.18rem); color: #d3e2fb; margin: 1.6rem 0 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-foot { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; color: var(--muted); font-size: .9rem; }
.hero-foot .sep { opacity: .4; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #2ee59d; animation: pulso 2s infinite; }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(46, 229, 157, .6); } 70% { box-shadow: 0 0 0 10px rgba(46, 229, 157, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 229, 157, 0); } }
.hero-card {
  position: absolute;
  z-index: 2;
  right: max(20px, calc((100vw - var(--max)) / 2));
  bottom: 4.5rem;
  width: 280px;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: rgba(14, 43, 102, .45);
  border: 1px solid rgba(143, 227, 255, .25);
  backdrop-filter: blur(16px);
}
.hero-card-label { font-size: .72rem; letter-spacing: .22em; color: var(--cyan); font-weight: 700; }
.hero-card strong { display: block; font-size: 1.5rem; line-height: 1.15; margin: .6rem 0 1rem; }
.hero-card-line { display: block; height: 2px; width: 56px; background: var(--cyan); margin-bottom: .9rem; }
.hero-card small { color: var(--muted); }

/* ---------- Franja ---------- */
.trust-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.trust-strip div { display: flex; align-items: center; gap: .9rem; padding: 1.4rem .4rem; font-weight: 600; }
.trust-strip div + div { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.trust-strip strong { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--cyan); font-size: 1.5rem; }

/* ---------- Secciones ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 6rem 20px; }
.section-heading { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 3rem; }
.section-heading h2, .feature h2, .cta-band h2, .contact h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.section-intro { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.4rem; }
.service-card {
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(25, 195, 240, .55); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.service-photo { position: relative; }
.service-photo img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; height: auto; }
#aires .service-photo img { object-position: center top; }
.service-number {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .6);
}
.service-body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.service-body .kicker { font-size: .7rem; margin-bottom: .5rem; }
.service-body h3 { font-size: 1.4rem; margin-bottom: .6rem; }
.service-body > p { color: var(--muted); margin: 0 0 1.1rem; font-size: .96rem; }
.checks { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .5rem; }
.checks li { display: flex; gap: .6rem; align-items: center; font-size: .95rem; }
.checks .ico { color: var(--cyan); }
.service-body .text-link { margin-top: auto; }

/* ---------- Dos empresas, una misión ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; background: var(--navy); }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-copy { padding: 5rem max(20px, 6vw) 5rem 5rem; display: flex; flex-direction: column; justify-content: center; }
.feature-copy > p { color: #d3e2fb; max-width: 52ch; margin: 1.4rem 0 2rem; }
.promo {
  border: 1px solid rgba(25, 195, 240, .45);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  background: radial-gradient(120% 140% at 0% 0%, rgba(25, 195, 240, .2), transparent 60%);
  max-width: 520px;
}
.promo-label { font-size: .72rem; letter-spacing: .22em; color: var(--cyan); font-weight: 700; }
.promo strong { display: block; font-size: 1.35rem; margin: .4rem 0 .5rem; }
.promo p { color: var(--muted); margin: 0 0 .8rem; }

/* ---------- Proyectos reales ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.projects-grid figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy); border: 1px solid var(--line); }
.projects-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto; }
.projects-grid figcaption { padding: 1.1rem 1.3rem 1.3rem; color: var(--muted); font-weight: 600; }
.projects-grid figcaption strong { display: block; color: var(--text); font-size: 1.12rem; margin-bottom: .2rem; }

/* ---------- Sectores ---------- */
.sector-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.sector {
  min-height: 360px;
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
  transition: transform .25s ease;
}
.sector:hover { transform: translateY(-6px); }
.sector span { font-size: .72rem; letter-spacing: .2em; color: var(--cyan-2); font-weight: 700; }
.sector h3 { font-size: 1.4rem; margin-top: .5rem; }

/* ---------- Marketing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.plan { position: relative; padding: 2rem 1.7rem; border-radius: var(--radius); background: var(--navy); border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan-featured { border: 1.5px solid var(--cyan); background: linear-gradient(180deg, #10337a, var(--navy)); box-shadow: 0 20px 50px rgba(25, 195, 240, .16); }
.plan-badge {
  position: absolute;
  top: -.8rem;
  left: 1.7rem;
  padding: .25rem .8rem;
  border-radius: 999px;
  background: var(--cyan);
  color: #03122e;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.plan h3 { font-size: 1.3rem; }
.plan-price { font-size: 2.6rem; font-weight: 800; margin: .5rem 0 1.2rem; letter-spacing: -.02em; }
.plan-price small { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan .button { margin-top: auto; justify-content: center; }
.plans-note { text-align: center; color: var(--muted); margin-top: 1.8rem; }

/* ---------- Banda ---------- */
.cta-band {
  max-width: var(--max);
  margin: 0 auto 2rem;
  padding: 3.4rem 3rem;
  border-radius: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: radial-gradient(90% 160% at 0% 0%, rgba(25, 195, 240, .28), transparent 55%), linear-gradient(120deg, var(--navy-2), var(--navy));
  border: 1px solid rgba(25, 195, 240, .35);
}

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.contact-copy > p { color: var(--muted); margin: 1.4rem 0 2rem; }
.contact-details { display: grid; gap: 1.1rem; }
.contact-details > div { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.contact-details .ico { color: var(--cyan); font-size: 1.6rem; }
.contact-details p { margin: 0; display: flex; flex-direction: column; }
.contact-details small { color: var(--cyan); letter-spacing: .18em; font-weight: 700; font-size: .7rem; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--cyan); }
.contact-form { padding: 2.2rem; border-radius: var(--radius); background: var(--navy); border: 1px solid var(--line); display: flex; flex-direction: column; }
.contact-form h3 { font-size: 1.5rem; }
.contact-form > p { color: var(--muted); margin: .5rem 0 1.4rem; font-size: .92rem; }
.contact-form label { font-size: .82rem; font-weight: 700; margin: .9rem 0 .4rem; color: #d3e2fb; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: .85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(4, 12, 32, .55);
  color: var(--text);
  font: inherit;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--cyan); border-color: transparent; }
.contact-form .button { margin-top: 1.6rem; justify-content: center; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; }
.footer-main { max-width: var(--max); margin: 0 auto; padding: 3rem 20px; display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.footer-main p { color: var(--muted); margin: 0; }
.footer-main a { text-decoration: none; }
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem 20px 6rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: .86rem;
}
.footer-bottom a { text-decoration: none; color: var(--cyan); }

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}

/* ---------- Tablet y celular ---------- */
@media (max-width: 1000px) {
  .section-heading, .feature, .contact { grid-template-columns: 1fr; }
  .feature-image img { max-height: 420px; }
  .feature-copy { padding: 3.5rem 20px; }
  .sector-grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .hero-card { display: none; }
  .nav { gap: 1rem; }
}

@media (max-width: 760px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(4, 12, 32, .97);
    border-bottom: 1px solid var(--line);
    padding: .5rem 20px 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; }
  .lang { margin-left: auto; }
  .header-cta { display: none; }
  .hero-content { padding: 4rem 20px 3.5rem; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip div:nth-child(3) { border-left: 0; padding-left: .4rem; }
  .trust-strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .section { padding: 4rem 20px; }
  .sector-grid { grid-template-columns: 1fr; }
  .sector { min-height: 240px; }
  .cta-band { margin: 0 20px 2rem; padding: 2.2rem 1.6rem; }
  .services-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse { animation: none; }
  .button, .service-card, .sector { transition: none; }
}

/* Aviso de privacidad */
.form-legal { color: var(--muted); font-size: .78rem; margin: .9rem 0 0; text-align: center; }
.form-legal a, .legal a { color: var(--cyan); }
.legal-header .lang { margin-left: auto; }
.legal { max-width: 820px; margin: 0 auto; padding: 8rem 20px 3rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: .4rem 0 .6rem; }
.legal-fecha { color: var(--muted); font-size: .9rem; margin: 0 0 2rem; }
.legal-block { padding: 1.4rem 0; border-top: 1px solid var(--line); }
.legal-block h2 { font-size: 1.25rem; margin-bottom: .7rem; }
.legal-block p { color: #d3e2fb; line-height: 1.7; margin: 0 0 .8rem; }

/* Páginas de servicio */
.service-photo { display: block; }
.service-card h3 a { color: inherit; text-decoration: none; }
.project-link { display: block; color: inherit; text-decoration: none; }
.service-hero { background-size: cover; background-position: center; border-bottom: 1px solid var(--line); }
.service-hero-inner { max-width: var(--max); margin: 0 auto; padding: 8.5rem 20px 4.5rem; }
.service-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); margin: 1rem 0 0; max-width: 16ch; }
.back-link { color: var(--cyan-2); text-decoration: none; font-size: .9rem; display: inline-block; margin-bottom: 1.4rem; }
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.service-detail h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: .4rem 0 1.4rem; }
.checks-large li { font-size: 1.05rem; padding: .5rem 0; }
.steps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.steps li { display: flex; gap: 1.1rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(11, 37, 96, .35); }
.step-num { font-family: var(--serif); font-style: italic; color: var(--cyan); font-size: 1.6rem; line-height: 1; }
.steps h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--muted); font-size: .94rem; }
.project-group { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.project-group header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1rem; }
.project-group h3 { font-size: 1.5rem; }
.project-group header p { margin: 0; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--navy); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gallery figcaption { padding: .8rem 1rem; color: var(--muted); font-size: .9rem; }
.empty-state { margin-top: 1.5rem; padding: 2rem; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.empty-state p { color: var(--muted); margin: 0 0 1.2rem; }
.other-services .chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.other-services .chips a { padding: .6rem 1rem; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.other-services .chips a:hover { border-color: var(--cyan); color: var(--cyan-2); }
@media (max-width: 860px) {
  .service-detail { grid-template-columns: 1fr; gap: 2rem; }
  .service-hero-inner { padding: 7rem 16px 3rem; }
}

/* Pólizas de mantenimiento */
.segmentos-polizas { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0 0 2rem; }
.segmentos-polizas .seg { padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.segmentos-polizas .seg.activo { background: var(--cyan); color: #03122e; border-color: var(--cyan); }
.poliza-panel[hidden] { display: none; }
