:root {
    color-scheme: light;
    --ink: #10294b;
    --muted: #4b607a;
    --blue: #0759cf;
    --sky: #66c8ff;
    --line: #d9e6f5;
    --paper: #f4f8fe;
    font: 16px/1.55 system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: #fff; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; z-index: 30; top: 8px; left: 8px; background: white; padding: 8px; transform: translateY(-160%); }
.skip:focus { transform: none; }
.header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.nav, .links, .brand { display: flex; align-items: center; }
.nav { min-height: 68px; gap: 18px; }
.brand { font-weight: 850; font-size: 23px; letter-spacing: -.07em; }
.brand span { color: var(--blue); }
.brand img { margin-right: 5px; object-fit: contain; }
.links { gap: 3px; margin-left: auto; color: var(--muted); font-size: .9rem; font-weight: 650; }
.links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 13px; border-radius: 10px; }
.links a:hover { background: var(--paper); }
.links a:hover, .footer a:hover { color: var(--blue); }
.menu, .login, #enlarge, .close {
    display: inline-flex; justify-content: center; align-items: center; min-height: 44px;
    padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px;
    background: white; color: var(--ink); font-weight: 700; font-size: .86rem;
}
.menu { display: none; gap: 6px; }
.login { color: var(--blue); background: #edf5ff; border-color: #d6e8ff; }
.hero { padding: clamp(38px, 6vw, 86px) 0 32px; background: radial-gradient(ellipse at 94% 10%, #d7efff 0, transparent 66%), var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); align-items: center; gap: clamp(24px, 5vw, 58px); }
.product { width: min(100%, 550px); justify-self: end; }
#screen-panel {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: center;
    gap: clamp(16px, 4vw, 44px); padding: clamp(12px, 3vw, 28px);
    background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
}
#screen-panel .frame { max-width: 660px; width: 100%; }
h1, h2, p, figure { margin: 0; }
h1, h2 { line-height: 1.06; letter-spacing: -.055em; text-wrap: balance; }
h1 { font-size: clamp(42px, 5.1vw, 74px); }
h1 span { color: var(--blue); }
h2 { font-size: clamp(30px, 4vw, 49px); }
.intro > p { margin-top: 16px; color: var(--muted); max-width: 34ch; }
.intro .btn { margin-top: 24px; }
.intro .offer { margin-top: 9px; font-size: .88rem; }
.offer strong { color: var(--ink); }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px;
    padding: 12px 18px; border: 1px solid transparent; border-radius: 13px; background: var(--blue);
    color: #fff; font-weight: 730; transition: background .18s, transform .18s, box-shadow .18s;
}
.btn:hover { background: #0649ac; box-shadow: 0 6px 16px #0759cf33; transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.frame { overflow: hidden; border: 1px solid #bdd8ef; border-radius: 14px; background: #0d2140; box-shadow: 0 8px 24px #1a467a19; }
.frame-label { display: flex; align-items: center; gap: 8px; padding: 9px 15px; background: #fff; color: var(--muted); font-size: .76rem; font-weight: 650; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.image-button { width: 100%; aspect-ratio: 16/9; position: relative; display: block; overflow: hidden; padding: 0; border: 0; background: #102544; color: white; cursor: zoom-in; }
.image-button:focus-visible { outline-offset: -5px; }
.image-button img { display: block; width: 100%; height: 100%; object-fit: contain; }
.image-button[data-image-state="loading"] img, .image-button[data-image-state="error"] img { opacity: 0; }
.image-button[data-image-state="loading"]::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, #233c60 0 18%, transparent 18%), repeating-linear-gradient(#2d486c 0 8px, transparent 8px 18px) 30% 38% / 38% 42% no-repeat, #182e50;
}
.image-button[data-image-state="loading"]::after {
    content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, #93c9ff39 50%, transparent 80%);
    animation: shimmer 1.2s ease-in-out infinite;
}
.image-button[data-image-state="error"]::after { content: "La captura no pudo cargar"; position: absolute; inset: 0; display: grid; place-items: center; }
.image-button[data-image-state="ready"] img { animation: image-in .24s ease-out both; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes image-in { from { opacity: .25; } to { opacity: 1; } }
@keyframes rise { from { opacity: .55; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.intro { animation: rise .42s ease-out both; }
.reveal-active { animation: rise .38s ease-out both; }
figcaption, .screen-info p { margin-top: 8px; color: var(--muted); font-size: .78rem; }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(24px, 5vw, 56px); gap: 10px; }
.benefits > div { display: grid; grid-template-columns: 33px 1fr; align-items: center; gap: 0 9px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.benefits span { grid-row: span 2; color: var(--blue); border-radius: 10px; background: #e8f4ff; text-align: center; line-height: 33px; }
.benefits small { color: var(--muted); }
.section { padding: clamp(40px, 7vw, 82px) 0; }
.section-head, .screen-info, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-head { margin-bottom: 18px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.tab { min-height: 44px; border: 0; padding: 8px 12px; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 650; transition: color .18s, background .18s; }
.tab[aria-selected="true"] { background: var(--blue); color: white; }
.screen-info { flex-direction: column; align-items: start; gap: 14px; }
.screen-info p { margin: 0; font-size: 1rem; color: var(--ink); }
.pricing, .contact { background: var(--paper); }
.price-card, .contact-grid { display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; gap: 24px; }
.price-card { padding: clamp(22px, 4vw, 48px); border-radius: 24px; color: #fff; background: #10294b; }
.price-card p, .contact p { margin: 8px 0 14px; }
.price-card p { color: #d4e7fe; }
.amount strong { color: white; font-size: clamp(34px, 5vw, 55px); letter-spacing: -.06em; }
.faq { max-width: 740px; }
.faq h2 { margin-bottom: 14px; }
details { border-bottom: 1px solid var(--line); }
summary { min-height: 48px; padding: 12px 0; font-weight: 720; }
details p { padding-bottom: 13px; color: var(--muted); }
.contact-direct { color: var(--blue); font-weight: 750; text-decoration: underline; }
.form-box {
    padding: clamp(18px, 4vw, 28px); border: 1px solid var(--line); border-radius: 20px;
    background: white; box-shadow: 0 10px 30px #1736530c;
}
.form-box h3 { margin: 0 0 14px; font-size: 1.2rem; letter-spacing: -.025em; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-wide { grid-column: 1 / -1; }
.form-box label { display: block; margin-bottom: 5px; font-weight: 650; font-size: .87rem; }
.form-box :is(input, select, textarea) {
    width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #b6cbe3;
    border-radius: 10px; background: #f9fbff; color: var(--ink);
}
.form-box textarea { display: block; resize: vertical; }
.form-box .btn { width: 100%; margin-top: 15px; }
.form-box .form-note { margin: 10px 0 0; color: var(--muted); font-size: .78rem; }
.whatsapp-float {
    position: fixed; z-index: 9; right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px;
    min-height: 48px; padding: 10px 15px; border-radius: 40px; background: #097044; color: #fff;
    font-size: .9rem; font-weight: 750; box-shadow: 0 6px 20px #0a46394d;
    transition: background .18s, transform .18s;
}
.whatsapp-float:hover { background: #075b38; transform: translateY(-2px); }
.footer { padding: 25px 0; font-size: .84rem; color: var(--muted); }
.footer a { margin-right: 12px; }
dialog { max-width: min(1230px, 94vw); border: 0; border-radius: 16px; padding: 13px; }
dialog::backdrop { background: #071529e8; }
dialog img { display: block; width: 100%; max-height: 78vh; object-fit: contain; }
.close { margin: 0 0 8px auto; display: flex; }
@media (max-width: 760px) {
    .wrap { width: calc(100% - 36px); }
    .nav { gap: 8px; }
    .menu { display: inline-flex; margin-left: auto; }
    .links { display: none; position: absolute; inset: 68px 0 auto; padding: 10px 18px; background: #fff; border-bottom: 1px solid var(--line); }
    .links.open { display: grid; grid-template-columns: 1fr 1fr; }
    .product { width: min(100%, 480px); justify-self: center; }
    #screen-panel { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .screen-info p { font-size: .88rem; }
    .hero-grid, .price-card, .contact-grid { grid-template-columns: 1fr; }
    h1 { font-size: clamp(38px, 10vw, 56px); }
    .intro .btn { width: 100%; margin-top: 16px; }
    .benefits { grid-template-columns: 1fr; }
    .section-head { align-items: start; flex-direction: column; }
    .screen-info { align-items: start; }
    #enlarge { flex-shrink: 0; }
    html { scroll-padding-bottom: 80px; }
    .footer { padding-bottom: 90px; }
    .footer-row { align-items: start; flex-direction: column; }
}
@media (max-width: 420px) {
    .nav .brand { font-size: 19px; }
    .nav .brand img { width: 27px; }
    .nav :is(.menu, .login) { padding-inline: 9px; font-size: .8rem; }
    .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
}
