/* MiTilingo · web de clientes. Mismos colores que la app de TV. */
:root {
  --navy: #0B1630;
  --navy-2: #13214A;
  --blue: #1B2A4D;
  --blue-2: #2A3F70;
  --purple: #A855F7;
  --purple-2: #C04CFD;
  --purple-dark: #2A1450;
  --yellow: #FFC440;
  --text: #DDE6FF;
  --muted: #A9B8DD;
  --soft: #C9D4F2;
  --line: rgba(169, 184, 221, 0.22);
  --good: #4ADE80;
  --warn: #FFC440;
  --bad: #FF6B6B;
  --radius: 16px;
  --grad: linear-gradient(135deg, var(--purple) 0%, var(--purple-2) 100%);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--navy);
  display: flex;
  flex-direction: column;
}
body.app { background: radial-gradient(1200px 700px at 50% -10%, var(--blue-2) 0%, var(--blue) 45%, var(--navy) 100%) fixed var(--navy); }
a { color: var(--yellow); }
img { max-width: 100%; }
h1, h2, h3 { color: #fff; letter-spacing: -0.015em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Cabecera ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 48px);
}
.top.over { position: absolute; top: 0; left: 0; right: 0; z-index: 5; }
.top .logo { display: inline-flex; line-height: 0; }
.top .logo img { height: 46px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); }
.top nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.top nav a, .top nav .link { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav .pill { background: var(--grad); color: #fff; padding: 9px 18px; border-radius: 999px; box-shadow: 0 6px 18px rgba(168, 85, 247, 0.35); }
.top nav .pill:hover { filter: brightness(1.1); }
.inline { display: inline; margin: 0; }
.link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--yellow); text-decoration: underline; }

/* ---------- Botones y formularios ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; border: 0; cursor: pointer;
  text-decoration: none; background: var(--grad); color: #fff; font-family: inherit; font-weight: 700; font-size: 16px; line-height: 1.1;
  padding: 15px 24px; border-radius: 999px; box-shadow: 0 8px 22px rgba(168, 85, 247, 0.35); transition: filter .15s, transform .15s;
}
.button:hover { filter: brightness(1.12); transform: translateY(-1px); }
.button.big { font-size: clamp(17px, 2.2vw, 21px); padding: 17px 28px; }
.button.secondary { background: transparent; color: var(--bad); border: 1px solid rgba(255, 107, 107, 0.5); box-shadow: none; }
main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 8px 16px 40px; }
.card { background: rgba(19, 33, 74, 0.86); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 18px auto; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); max-width: 720px; backdrop-filter: blur(6px); }
.card.narrow { max-width: 480px; }
.card h1 { margin: 0 0 10px; font-size: 27px; }
.card h2 { font-size: 18px; margin: 22px 0 8px; color: var(--soft); }
.stack { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; color: var(--soft); }
label small { font-weight: 400; color: var(--muted); }
input[type=email], input[type=password], input[type=text] {
  font: inherit; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: rgba(11, 22, 48, 0.75); color: #fff; width: 100%;
}
input::placeholder { color: #7f8db3; }
input:focus { outline: 3px solid rgba(168, 85, 247, 0.45); border-color: var(--purple); }
.code-input { font-size: 30px !important; letter-spacing: 10px; text-align: center; font-weight: 700; }
.row-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
label.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--purple); }
.plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.plan-option {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 2px solid var(--line);
  border-radius: 14px; cursor: pointer; text-decoration: none; color: inherit; font-weight: 400; background: rgba(11, 22, 48, 0.55);
}
.plan-option input { position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; accent-color: var(--purple); }
.plan-option:has(input:checked), .plan-option:hover { border-color: var(--purple); background: rgba(42, 20, 80, 0.7); }
.plan-option .name { font-weight: 800; font-size: 17px; color: #fff; }
.plan-option .price { font-weight: 800; font-size: 20px; color: var(--yellow); }
.plan-option .desc { color: var(--muted); }
.plan-option .go { margin-top: 6px; font-weight: 700; color: var(--yellow); }
.note { color: var(--muted); font-size: 14px; margin: 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.alert { border-radius: 12px; padding: 12px 14px; margin: 10px 0; font-weight: 600; }
.alert.error { background: rgba(255, 107, 107, 0.12); color: #FFB4B4; border: 1px solid rgba(255, 107, 107, 0.35); }
.alert.ok { background: rgba(74, 222, 128, 0.1); color: #A7F3C0; border: 1px solid rgba(74, 222, 128, 0.3); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.facts div { background: rgba(11, 22, 48, 0.6); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.facts dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.facts dd { margin: 4px 0 0; font-weight: 700; color: #fff; }
.facts dd.good { color: var(--good); }
.facts dd.warn { color: var(--warn); }
.devices { padding-left: 18px; }

/* ---------- Pie ---------- */
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 16px 32px; border-top: 1px solid var(--line); }
.foot p { margin: 8px 0 0; }
.foot a { color: var(--soft); }
.foot img { height: 34px; width: auto; opacity: .9; }

/* ---------- Portada (estilo Netflix) ---------- */
.landing section h2 { font-size: clamp(24px, 3.4vw, 40px); margin: 0 0 12px; }
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 120px 16px 80px; }
.wall {
  position: absolute; inset: -60px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px;
  transform: rotate(-8deg) scale(1.15); opacity: .55; pointer-events: none;
  background: radial-gradient(900px 600px at 50% 30%, var(--blue-2), var(--navy));
}
.wall img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 22, 48, .9) 0%, rgba(11, 22, 48, .35) 35%, rgba(11, 22, 48, .55) 70%, var(--navy) 100%),
    radial-gradient(800px 500px at 50% 50%, rgba(42, 20, 80, .55), rgba(11, 22, 48, .2));
}
.hero-in { position: relative; max-width: 860px; }
.hero h1 { font-size: clamp(30px, 5.6vw, 60px); line-height: 1.08; margin: 0 0 18px; font-weight: 900; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.lead { font-size: clamp(18px, 2.4vw, 24px); margin: 0 0 22px; color: #fff; }
.lead strong { color: var(--yellow); }
.ask { font-size: clamp(16px, 1.9vw, 19px); margin: 0 0 14px; color: var(--soft); }
.start { display: flex; gap: 10px; max-width: 640px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.start input { flex: 1 1 280px; font-size: 17px !important; padding: 17px 18px !important; background: rgba(11, 22, 48, .7) !important; border: 1px solid rgba(201, 212, 242, .45) !important; }

.rows { position: relative; z-index: 1; margin-top: -40px; padding: 0 0 20px; }
.row { padding: 10px 0 18px; }
.row h2 { font-size: clamp(19px, 2.2vw, 24px) !important; margin: 0 0 10px !important; padding: 0 clamp(16px, 4vw, 48px); }
.row .count { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px clamp(16px, 4vw, 48px) 12px; scrollbar-width: thin; scrollbar-color: var(--blue-2) transparent; }
.card-poster { flex: 0 0 auto; width: clamp(118px, 13vw, 170px); margin: 0; scroll-snap-align: start; transition: transform .2s; }
.card-poster img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: var(--blue); display: block; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.card-poster figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-poster:hover { transform: scale(1.06); }
.card-poster.logo { width: clamp(150px, 16vw, 210px); }
.card-poster.logo img { height: auto; aspect-ratio: 16 / 9; object-fit: contain; padding: 14px; background: linear-gradient(135deg, var(--blue), var(--blue-2)); }

.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(20px, 5vw, 60px); align-items: center;
  max-width: 1180px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) clamp(16px, 4vw, 48px);
  border-top: 8px solid #08112a;
}
.feature.reverse .feature-text { order: 2; }
.feature-text p { font-size: clamp(17px, 2vw, 22px); color: var(--soft); margin: 0; }
.feature-art { min-height: 240px; border-radius: 22px; position: relative; overflow: hidden; }
.feature-art.tv {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10;
  background: radial-gradient(circle at 50% 40%, #6FB6F0 0%, #2E78C6 60%, #173E7A 100%);
  border: 10px solid #141d33; border-bottom-width: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .5), 0 0 80px rgba(168, 85, 247, .25);
}
.feature-art.tv img { width: 70%; }
.feature-art.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; background: linear-gradient(135deg, var(--purple-dark), var(--blue)); }
.feature-art.logos img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: rgba(11, 22, 48, .55); border-radius: 10px; padding: 8px; }
.feature-art.posters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.feature-art.posters img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }

.plans-wrap { text-align: center; padding: clamp(40px, 7vw, 80px) 16px; border-top: 8px solid #08112a; background: radial-gradient(900px 500px at 50% 0%, rgba(168, 85, 247, .18), transparent); }
.plans-note { color: var(--muted); margin: 0 auto 8px; max-width: 640px; }
.plans-note strong { color: var(--yellow); }
.plans-note.small { font-size: 14px; margin-top: 18px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; max-width: 820px; margin: 24px auto 0; text-align: left; }
.plan { position: relative; background: rgba(19, 33, 74, .9); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.plan.featured { border: 2px solid var(--purple); box-shadow: 0 0 0 6px rgba(168, 85, 247, .12), 0 24px 60px rgba(0, 0, 0, .35); }
.plan h3 { margin: 0; font-size: 22px; }
.plan .price { font-size: 32px; font-weight: 900; margin: 4px 0 6px; color: var(--yellow); }
.plan ul { margin: 0 0 20px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; color: var(--soft); }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--purple-2); font-weight: 900; }
.plan .button { margin-top: auto; }
.badge { position: absolute; top: -13px; left: 24px; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; }

.faq { max-width: 860px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) 16px; text-align: center; }
.faq details { text-align: left; background: rgba(42, 63, 112, .55); margin: 8px 0; border-radius: 10px; }
.faq summary { cursor: pointer; padding: 20px 24px; font-size: clamp(17px, 2vw, 22px); font-weight: 600; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 30px; line-height: 1; font-weight: 300; }
.faq details[open] summary::after { content: "×"; }
.faq details p { margin: 0; padding: 18px 24px 22px; color: var(--soft); font-size: clamp(16px, 1.8vw, 19px); border-top: 1px solid var(--line); }
.final-cta { text-align: center; padding: 10px 16px 70px; }

@media (max-width: 760px) {
  .feature { grid-template-columns: 1fr; text-align: center; }
  .feature.reverse .feature-text { order: 0; }
  .feature-art.logos { grid-template-columns: repeat(3, 1fr); }
  .top .logo img { height: 38px; }
  .hero { min-height: 80vh; }
}
@media (max-width: 520px) {
  .card { padding: 20px; }
  .wall { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Avisos del panel y reportes */
.notice-box { background: rgba(250, 204, 21, 0.1); border: 1px solid rgba(250, 204, 21, 0.4); border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.notice-box strong { color: #FDE68A; }
.notice-box p { margin: 6px 0 0; }
.notice-box.reply { background: rgba(96, 165, 250, 0.1); border-color: rgba(96, 165, 250, 0.4); }
.notice-box.reply strong { color: #BFDBFE; }
textarea { width: 100%; box-sizing: border-box; font: inherit; color: inherit; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; resize: vertical; }
.reports { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.reports li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.reports li p { margin: 6px 0; overflow-wrap: anywhere; }
.report-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tag.open { background: rgba(250, 204, 21, 0.15); color: #FDE68A; }
.tag.done { background: rgba(74, 222, 128, 0.15); color: #A7F3C0; }
.answer { background: rgba(96, 165, 250, 0.08); border-radius: 10px; padding: 8px 12px; margin-top: 8px; }

/* ---------- Fotos de ambiente (sin carátulas ni logos del catálogo) ---------- */
.wall.photo { transform: none; inset: 0; display: block; opacity: .6; background: url(img/fotos/pantallas.jpg) center / cover no-repeat, var(--navy); }
.rows.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding: 0 clamp(16px, 4vw, 48px) 30px; }
.rows.cards .row { position: relative; min-height: 220px; padding: 0; border-radius: 16px; overflow: hidden; display: flex; align-items: flex-end;
  background: var(--bg) center / cover no-repeat, var(--blue); box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }
.rows.cards .row::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 22, 48, .05) 30%, rgba(11, 22, 48, .92) 100%); }
.rows.cards .row h2 { position: relative; padding: 16px !important; margin: 0 !important; color: #fff; }
.rows.cards .row .count { display: block; margin: 4px 0 0; color: var(--yellow); font-size: 15px; font-weight: 700; }
.rows.cards .strip { display: none; }
.feature-art.photo { display: flex; align-items: flex-end; padding: 22px; min-height: 300px; background: linear-gradient(180deg, rgba(11, 22, 48, 0) 35%, rgba(11, 22, 48, .9) 100%), var(--bg) center / cover no-repeat; box-shadow: 0 10px 26px rgba(0, 0, 0, .4); }
.feature-art.photo span { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
@media (max-width: 900px) { .rows.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rows.cards .row { min-height: 170px; } }
