:root {
  --navy: #000A56;
  --navy-2: #121C6B;
  --green: #06C47F;
  --green-d: #04955F;
  --green-50: #E5F8F0;
  --ink: #111633;
  --muted: #5A5F7A;
  --line: #DFE1EC;
  --bg: #F5F3EF;
  --card: #FFFFFF;
  --red: #C9363B;
  --amber: #E89A0C;
  --r: 18px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .brand, .tabs button, .kicker, .btn { font-family: Fredoka, Inter, sans-serif; }
a { color: var(--green-d); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a:not([href]) { color: inherit; text-decoration: underline; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Encabezado */
.top { background: var(--navy); color: #fff; padding-bottom: 44px; border-radius: 0 0 32px 32px; }
.bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 24px; color: inherit; text-decoration: none; }
.brand img { border-radius: 9px; }
.brand b { color: var(--green); font-weight: 700; }
nav { display: flex; align-items: center; gap: 18px; }
nav a { color: #fff; text-decoration: none; font-size: 15px; opacity: .85; }
nav a.cta { opacity: 1; background: var(--green); color: var(--navy); font-weight: 600; padding: 8px 16px; border-radius: 999px; }
.hero { padding-top: 34px; }
.kicker { color: var(--green); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
.hero h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.05; margin: 8px 0 12px; font-weight: 700; }
.lead { font-size: 18px; opacity: .85; max-width: 620px; }
.search { margin-top: 26px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 6px 8px 6px 18px; max-width: 620px; }
.search svg { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.search input { border: 0; outline: 0; font: inherit; font-size: 17px; padding: 10px 6px; width: 100%; color: var(--ink); background: transparent; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jump a { color: #fff; text-decoration: none; font-size: 14px; border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 999px; }
.jump a:hover { background: rgba(255,255,255,.1); }

/* Secciones */
.sec { padding: 56px 0 8px; scroll-margin-top: 12px; }
.sec h2 { font-size: clamp(28px, 4vw, 38px); color: var(--navy); line-height: 1.1; margin-bottom: 8px; font-weight: 700; }
.sub { color: var(--muted); margin-bottom: 22px; max-width: 640px; }
.empty { color: var(--muted); font-size: 15px; padding: 16px 0; }

/* Videos */
.tabs { display: inline-flex; background: #fff; border-radius: 999px; padding: 5px; margin: 14px 0 24px; border: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; font-size: 16px; font-weight: 600; color: var(--navy); padding: 10px 20px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; }
.vcard h3 { font-size: 18px; color: var(--navy); margin-top: 10px; line-height: 1.2; font-weight: 600; }
.vcard p { font-size: 14px; color: var(--muted); }
.vthumb { position: relative; display: block; width: 100%; border: 0; padding: 0; cursor: pointer; border-radius: var(--r); overflow: hidden; aspect-ratio: 9 / 16; background: var(--navy); box-shadow: 0 6px 18px rgba(0,10,86,.12); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.vthumb:hover img { transform: scale(1.03); }
.play { position: absolute; left: 12px; bottom: 12px; width: 52px; height: 52px; border-radius: 50%; background: var(--green); display: grid; place-items: center; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.play svg { width: 26px; height: 26px; fill: var(--navy); margin-left: 4px; }
.dur { position: absolute; right: 12px; bottom: 24px; background: rgba(0,10,86,.85); color: #fff; font-size: 13px; padding: 2px 9px; border-radius: 999px; font-weight: 500; }

/* Preguntas frecuentes */
.faq { display: grid; gap: 10px; margin-top: 18px; }
.qa { background: var(--card); border-radius: 14px; border: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 16px 52px 16px 20px; font-weight: 600; color: var(--navy); list-style: none; position: relative; font-size: 17px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--green-d); font-weight: 400; }
.qa[open] summary::after { content: "–"; }
.qa p { padding: 0 20px 18px; color: var(--ink); }

/* Comunidad, calificación y contacto */
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: start; }
.card { background: var(--card); border-radius: var(--r); padding: 24px; border: 1px solid var(--line); }
.card.soft { background: var(--green-50); border-color: transparent; }
.card.navy { background: var(--navy); color: #fff; border: 0; }
.card.navy p { opacity: .9; margin: 8px 0 18px; }
.card h3 { font-size: 22px; color: var(--navy); margin-bottom: 14px; font-weight: 600; }
.card.navy h3 { color: #fff; }
form label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 14px; color: var(--ink); }
form small { color: var(--muted); font-weight: 400; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 16px; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(6,196,127,.18); }
textarea { resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; color: var(--muted) !important; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--green-d); }
.warn { font-size: 13.5px; background: #FDF3DF; color: #7A5206; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }
.btn { display: inline-block; border: 0; cursor: pointer; background: var(--green); color: var(--navy); font-weight: 600; font-size: 17px; padding: 13px 26px; border-radius: 999px; text-decoration: none; }
.btn:hover { background: #05b073; }
.btn:disabled { opacity: .6; cursor: wait; }
.btn.light { background: #fff; color: var(--navy); word-break: break-all; }
.small { font-size: 13px; opacity: .7; }
.msg { margin-top: 12px; font-weight: 500; }
.msg.ok { color: var(--green-d); }
.msg.err { color: var(--red); }
.hp { position: absolute; left: -9999px; }

.qlist { display: grid; gap: 14px; }
.qitem { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.qitem .who { font-size: 13px; color: var(--muted); }
.qitem .qq { font-weight: 600; color: var(--navy); font-size: 17px; margin: 4px 0 10px; }
.qitem .ans, .rev .ans { border-left: 4px solid var(--green); padding-left: 12px; }
.qitem .ans b, .rev .ans b { display: block; font-family: Fredoka; font-size: 13px; color: var(--green-d); text-transform: uppercase; letter-spacing: .05em; }

.stars { border: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; margin-bottom: 16px; }
.stars legend { position: absolute; left: -9999px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { margin: 0; cursor: pointer; }
.stars svg { width: 42px; height: 42px; fill: #E2E4EE; transition: fill .15s; }
.stars label:hover svg, .stars label:hover ~ label svg, .stars input:checked ~ label svg { fill: #F5B400; }
.stars input:focus-visible + label svg { outline: 2px solid var(--green); border-radius: 6px; }
.avg { display: flex; align-items: baseline; gap: 10px; }
.avg strong { font-family: Fredoka; font-size: 54px; color: var(--navy); line-height: 1; }
.avg .s { color: #F5B400; font-size: 24px; letter-spacing: 2px; }
.rev { border-top: 1px solid rgba(0,10,86,.12); padding-top: 12px; margin-top: 12px; font-size: 15px; }
.rev .who { font-size: 13px; color: var(--muted); }

.foot { margin-top: 64px; background: var(--navy); color: #fff; padding: 26px 0; font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot a { color: #fff; }

/* Reproductor */
dialog#player { border: 0; padding: 0; background: transparent; max-width: min(420px, 92vw); width: 100%; margin: auto; }
dialog#player::backdrop { background: rgba(0,6,40,.82); }
dialog#player video { width: 100%; max-height: 82vh; border-radius: var(--r); background: #000; display: block; }
dialog#player .close { position: absolute; top: -46px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 26px; cursor: pointer; }
dialog#player .ptitle { color: #fff; font-family: Fredoka; font-weight: 600; text-align: center; margin-top: 10px; font-size: 18px; }

@media (max-width: 760px) {
  .two, .row { grid-template-columns: 1fr; }
  nav a:not(.cta) { display: none; }
  .vgrid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .vcard h3 { font-size: 16px; }
  .card { padding: 20px; }
  .top { border-radius: 0 0 24px 24px; }
}

.rev .ans { margin-top: 8px; font-size: 14px; }
