/* Página comercial de BoletaPlus (boletaplus.cl). Proyecto aparte del sistema (app.boletaplus.cl). */
:root { --azul: #1660E8; --azul-2: #0B4FD1; --navy: #0B1F44; --texto: #3B4A63; --suave: #6B7A90; --borde: #E3EAF4; --r: 14px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--texto); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--azul); }
.caja { width: min(1240px, 100% - 48px); margin: 0 auto; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Encabezado */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.top-in { display: flex; align-items: center; gap: 18px; height: 84px; }
.marca img { height: 46px; width: auto; }
.marca-de { border-left: 1.5px solid #C9D3E3; padding-left: 16px; font-size: 13px; line-height: 1.3; color: var(--navy); }
.marca-de b { font-weight: 600; }
.menu { margin-left: auto; display: flex; gap: 6px; }
.menu a { padding: 10px 18px; font-weight: 600; font-size: 16px; color: var(--navy); text-decoration: none; position: relative; }
.menu a.on::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--azul); }
.menu a:hover { color: var(--azul); }
.btn-borde { display: inline-flex; align-items: center; gap: 10px; padding: 11px 26px; border: 1.5px solid var(--navy); border-radius: 12px; color: var(--navy); font-weight: 600; font-size: 16px; text-decoration: none; margin-left: 12px; }
.btn-borde:hover { background: var(--navy); color: #fff; }

/* Portada */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #F7FAFF 0%, #fff 100%); }
.hero-in { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: 24px; min-height: calc(100vh - 84px); max-height: 860px; padding: 24px 0 40px; }
.hero h1 { font-family: Montserrat, Inter, sans-serif; font-weight: 800; font-size: clamp(38px, 4.6vw, 66px); line-height: 1.04; letter-spacing: -1.5px; color: var(--navy); margin: 0 0 22px; }
.hero h1 span { display: block; color: var(--azul); }
.sub { font-size: clamp(18px, 1.7vw, 24px); line-height: 1.45; margin: 0 0 32px; max-width: 30ch; }
.btn { display: inline-flex; align-items: center; gap: 14px; padding: 18px 40px; border-radius: 16px; background: var(--azul); color: #fff; font-weight: 600; font-size: 19px; text-decoration: none; box-shadow: 0 10px 24px rgba(22,96,232,.28); transition: transform .15s, background .15s; }
.btn:hover { background: var(--azul-2); transform: translateY(-1px); }
.sellos { list-style: none; display: flex; padding: 0; margin: 40px 0 0; }
.sellos li { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 30px; font-size: 16px; font-weight: 500; color: var(--navy); }
.sellos li:first-child { padding-left: 18px; }
.sellos li + li { border-left: 1.5px solid #D5DDEA; }
.sellos svg { width: 36px; height: 36px; color: var(--azul); stroke-width: 1.6; }

/* Foto con las pantallas reales encima */
.hero-foto { position: relative; align-self: stretch; min-height: 520px; }
.hero-foto .personas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 30%; border-radius: 0 0 0 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%); mask-image: linear-gradient(90deg, transparent 0, #000 14%); }
.onda { display: none; }
.notebook { position: absolute; right: -3%; bottom: 5.5%; width: 79%; margin: 0; filter: drop-shadow(0 24px 40px rgba(11,31,68,.35)); }
.nb-pantalla { background: #0E1525; border-radius: 14px 14px 0 0; padding: 2.2% 2.2% 3%; }
.nb-pantalla img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 3px; }
.nb-base { height: 14px; margin: 0 -6%; background: linear-gradient(180deg, #D9DEE7, #A9B1BF); border-radius: 0 0 14px 14px; position: relative; }
.nb-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; transform: translateX(-50%); background: #B6BDC9; border-radius: 0 0 6px 6px; }
.telefono { position: absolute; left: 8.5%; bottom: 2%; width: 24%; margin: 0; background: #0E1525; border-radius: 26px; padding: 2.4% 2% ; filter: drop-shadow(0 22px 34px rgba(11,31,68,.4)); }
.tel-pantalla { border-radius: 18px; overflow: hidden; background: #fff; }
.tel-pantalla img { width: 100%; aspect-ratio: 375 / 760; object-fit: cover; object-position: top; }

/* Secciones */
.seccion { padding: 90px 0; }
.antetitulo { color: var(--azul); font-weight: 700; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; margin: 0 0 10px; }
.seccion h2 { font-family: Montserrat, Inter, sans-serif; font-size: clamp(28px, 3vw, 40px); line-height: 1.15; color: var(--navy); margin: 0 0 36px; max-width: 22ch; }
.grilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; }
.grilla article { border: 1px solid var(--borde); border-radius: var(--r); padding: 24px; background: #fff; box-shadow: 0 2px 8px rgba(11,31,68,.04); }
.grilla h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.grilla p { margin: 0; line-height: 1.55; font-size: 15px; }
.btn-sec { padding: 14px 30px; font-size: 16px; }
.seccion-azul { background: var(--navy); color: #D3DDF0; }
.seccion-azul h2 { color: #fff; }
.seccion-azul .antetitulo { color: #7FB0FF; }
.empresa { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.empresa p { font-size: 17px; line-height: 1.6; margin: 0; }
.contacto { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: var(--r); padding: 28px; display: grid; gap: 8px; }
.contacto b { color: #fff; font-size: 20px; }
.contacto a { color: #9CC2FF; font-size: 17px; font-weight: 600; }
.pie { border-top: 1px solid var(--borde); padding: 26px 0; font-size: 14px; color: var(--suave); }
.pie-in { display: flex; align-items: center; gap: 20px; }
.pie-in a { margin-left: auto; font-weight: 600; text-decoration: none; }

/* Tablet */
@media (max-width: 1100px) {
  .marca-de { display: none; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; max-height: none; }
  .hero-foto { min-height: 0; aspect-ratio: 1112 / 823; }
  .grilla { grid-template-columns: 1fr 1fr; }
}
/* Celular */
@media (max-width: 700px) {
  .caja { width: calc(100% - 32px); }
  .top-in { height: 66px; gap: 10px; }
  .marca img { height: 34px; }
  .menu { display: none; }
  .btn-borde { margin-left: auto; padding: 8px 14px; font-size: 14px; }
  .btn-borde svg { width: 18px; height: 18px; }
  .hero-in { padding: 28px 0 24px; gap: 28px; }
  .hero h1 { letter-spacing: -1px; }
  .sub { margin-bottom: 24px; }
  .btn { padding: 16px 28px; font-size: 17px; width: 100%; justify-content: center; }
  .sellos { margin-top: 28px; justify-content: space-between; }
  .sellos li { padding: 0 12px; font-size: 14px; }
  .sellos li:first-child { padding-left: 0; }
  .hero-foto { aspect-ratio: 4 / 4.2; margin: 0 -16px; }
  .hero-foto .personas { border-radius: 0; -webkit-mask-image: none; mask-image: none; object-position: 40% 20%; }
  .notebook { width: 82%; right: -8%; bottom: 4%; }
  .telefono { width: 28%; left: 4%; border-radius: 18px; }
  .tel-pantalla { border-radius: 12px; }
  .seccion { padding: 60px 0; }
  .grilla, .empresa { grid-template-columns: 1fr; }
  .pie-in { flex-wrap: wrap; }
}

/* Ajustes del agente de diseño gráfico (v2): marcos más finos y reales, título en 3 líneas parejas, en celular un solo equipo grande */
.hero h1 { font-size: clamp(36px, 4.2vw, 60px); }
.hero-in { min-height: min(760px, calc(100vh - 84px)); }
.sellos { margin-top: 32px; }
.nb-pantalla { padding: 1.4% 1.4% 2%; border: 1px solid #2A3550; position: relative; }
.nb-pantalla::before { content: ""; position: absolute; top: .55%; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #3A4560; }
.nb-base { height: 10px; }
.telefono { border-radius: 28px; padding: 1.6%; }
.telefono::before { content: ""; position: absolute; top: 3.2%; left: 50%; width: 26%; height: 2.2%; transform: translateX(-50%); border-radius: 20px; background: #0E1525; z-index: 2; }
.telefono { position: absolute; }
.tel-pantalla { border-radius: 22px; }
@media (max-width: 700px) {
  .menu { display: flex; margin-left: auto; gap: 0; }
  .menu a { padding: 8px 8px; font-size: 14px; }
  .menu a:not([href="#producto"]) { display: none; }
  .menu a.on::after { display: none; }
  .btn-borde { margin-left: 4px; }
  .hero-foto { aspect-ratio: 4 / 4.6; }
  .notebook { display: none; }
  .telefono { width: 50%; left: 50%; transform: translateX(-50%); bottom: -14%; border-radius: 26px; }
  .hero-foto { overflow: hidden; }
  .sellos li { padding: 0 8px; }
}
/* Celular: solo las caras (sin los equipos de la foto) y debajo el teléfono con BoletaPlus real */
@media (max-width: 700px) {
  .hero-foto { aspect-ratio: auto; overflow: visible; margin: 0 -16px; padding-bottom: 8px; }
  .hero-foto .personas { position: static; width: 100%; height: auto; aspect-ratio: 900 / 350; object-fit: cover; }
  .telefono { position: relative; left: auto; bottom: auto; transform: none; width: 64%; margin: -18% auto 0; }
}
.telefono::before { top: 1.1%; height: 1.5%; width: 22%; }
.tel-pantalla { margin-top: 3.2%; }
@media (max-width: 700px) { .telefono { margin-top: -5%; } }

/* v3 · Igual a la imagen de ChatGPT (Sergio: «no cambies nada, solo los logos»): la foto completa, sin equipos encima */
.hero-foto .personas { object-fit: cover; object-position: 60% 50%; }
@media (max-width: 700px) {
  .hero-foto { aspect-ratio: 1022 / 823; overflow: hidden; }
  .hero-foto .personas { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 60% 50%; }
}
@media (min-width: 1101px) {
  .hero-in { padding: 0; align-items: stretch; }
  .hero-txt { align-self: center; padding: 40px 0; }
  .hero-foto { margin-right: calc((100vw - min(1240px, 100vw - 48px)) / -2); }
  .hero-foto .personas { border-radius: 0; object-position: 55% 40%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%); mask-image: linear-gradient(90deg, transparent 0, #000 18%); }
}

/* v4 · Como la imagen 2 de ChatGPT: la foto completa de fondo (con la taza, la planta y la libreta), el texto encima a la izquierda */
@media (min-width: 1101px) {
  .hero { background: linear-gradient(90deg, rgba(247,250,255,.97) 0%, rgba(247,250,255,.9) 26%, rgba(247,250,255,0) 42%), url("hero-fondo.jpg?v=3") 100% 100% / cover no-repeat; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; max-height: none; aspect-ratio: 1672 / 820; max-height: 860px; padding: 0; align-items: center; }
  .hero-txt { max-width: 640px; padding: 0 0 40px; }
  .hero-foto { display: none; }
  .top { background: rgba(255,255,255,.96); }
}
@media (min-width: 1101px) {
  .caja { width: min(1500px, 100% - 112px); }
  .hero { background-position: right top; }
  .hero-in { aspect-ratio: auto; max-height: none; min-height: calc(100vw * 820 / 1672); }
  .hero-txt { max-width: 34vw; }
  .hero h1 { font-size: clamp(40px, 4.3vw, 76px); }
  .sub { font-size: clamp(18px, 1.55vw, 26px); }
}
@media (min-width: 1101px) {
  .hero { background-image: linear-gradient(90deg, rgba(247,250,255,.88) 0%, rgba(247,250,255,.55) 24%, rgba(247,250,255,0) 38%), url("hero-fondo.jpg?v=3"); }
  .hero h1 span { white-space: nowrap; }
  .hero-txt { max-width: 42vw; }
}
@media (min-width: 1101px) { .hero { background-image: linear-gradient(90deg, rgba(247,250,255,.9) 0%, rgba(247,250,255,.78) 27%, rgba(247,250,255,0) 39%), url("hero-fondo.jpg?v=3"); } }
