/* =====================================================================
   solar-wizard.css — la página de Solar Wizard para instaladores.

   Va después de styles.css y tema.css, de los que sólo usa la cabecera y
   el pie. El resto es a propósito sobrio: una columna de texto estrecha,
   las capturas reales de la app como protagonistas, numeradas como figuras,
   y el naranja sólo en enlaces y en el botón principal.
   ===================================================================== */

@font-face {
    font-family: 'Space Grotesk';
    src: url('assets/fonts/SpaceGrotesk-VariableFont_wght.ttf') format('truetype');
    font-weight: 300 700;
    font-display: swap;
}

.sw { --ink: #1f1f1f; --mute: #5f5b57; --rule: #e4dfd8; --or: #e8430c;
      color: var(--ink); font-family: 'Satoshi', sans-serif; font-size: 18px; line-height: 1.6; }
.sw a { color: var(--or); text-underline-offset: 3px; }
.sw-col { width: min(720px, calc(100% - 40px)); margin: 0 auto; }
.sw-wide { width: min(1000px, calc(100% - 40px)); margin: 0 auto; }

.sw h1, .sw h2, .sw h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.sw h1 { margin: 0; font-size: clamp(34px, 4.4vw, 50px); line-height: 1.08; max-width: 17em; }
.sw h2 { margin: 0 0 12px; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
.sw h2 span { color: var(--or); margin-right: 6px; }
.sw p { margin: 0 0 14px; }
.sw-kicker { margin: 0 0 18px; font-size: 15px; color: var(--mute); }

/* ---- Portada ---------------------------------------------------------- */
.sw-top { padding-top: clamp(118px, 13vw, 150px); }
.sw-lead { margin: 20px 0 0; max-width: 36em; font-size: 19px; color: #3d3a37; }
.sw-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 28px 0 0; }
.sw-btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff !important;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
}
.sw-btn:hover { background: var(--or); }

/* ---- Figuras (capturas reales) ---------------------------------------- */
.sw-fig { margin: 24px auto 0; }
.sw-fig img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #d8d2ca;
    border-radius: 6px;
    background: #fff;
}
.sw-fig figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--mute); }
.sw-fig figcaption b { color: var(--ink); font-weight: 700; }
.sw-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sw-pair figure { margin: 0; min-width: 0; }

/* ---- Bloques ------------------------------------------------------------ */
.sw-block { padding-top: clamp(52px, 6vw, 72px); }
.sw-rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Cabecera de cada función: número, título y una frase a la izquierda;
   tres cifras reales del proyecto de las capturas a la derecha. */
.sw-feat-head {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 0 28px;
    align-items: end;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--rule);
}
.sw-feat-head .sw-num {
    margin: 0;
    align-self: start;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 44px;
    font-weight: 300;
    line-height: 0.9;
    color: var(--or);
}
.sw-feat-head h2 { margin: 0 0 8px; }
.sw-feat-head p { margin: 0; max-width: 31em; font-size: 17.5px; line-height: 1.5; color: #4a4642; }
.sw-facts { display: flex; margin: 0; }
.sw-facts div { padding: 0 0 2px 20px; margin-left: 20px; border-left: 1px solid var(--rule); }
.sw-facts div:first-child { margin-left: 0; padding-left: 0; border-left: 0; }
.sw-facts dt {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.sw-facts dd { margin: 3px 0 0; font-size: 13px; line-height: 1.3; color: var(--mute); max-width: 9.5em; }
.sw-feat-head + .sw-fig, .sw-feat-head + .sw-pair { margin-top: 22px; }

.sw .sw-also { margin: 18px auto 0; font-size: 15px; color: var(--mute); }

/* La nota de Juan, al final, como una cita. */
.sw-quote { margin: clamp(56px, 7vw, 80px) auto 0; padding: 30px 0 0; border-top: 1px solid var(--rule); }
.sw-quote blockquote { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: clamp(21px, 2.2vw, 26px); font-weight: 400; line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); }
.sw-quote blockquote::before { content: '“'; display: block; height: 0.55em; font-size: 2.6em; line-height: 1; color: var(--or); }
.sw-quote figcaption { margin-top: 16px; font-size: 15px; color: var(--mute); }
.sw-quote figcaption b { color: var(--ink); }

@media (max-width: 900px) {
    .sw-feat-head { grid-template-columns: 48px minmax(0, 1fr); }
    .sw-feat-head .sw-num { font-size: 34px; }
    .sw-facts { grid-column: 1 / -1; margin-top: 18px; }
}
@media (max-width: 520px) {
    .sw-facts dt { font-size: 21px; }
    .sw-facts div { padding-left: 14px; margin-left: 14px; }
}

/* ---- Dron ---------------------------------------------------------------- */
.sw-drone { padding: 24px 26px; border: 1px solid var(--rule); border-left: 4px solid var(--or); background: #fff; }
.sw-drone p { font-size: 17px; }
.sw-small { font-size: 13px !important; line-height: 1.5; color: #8a847e; margin: 0 !important; }

/* ---- Precios ------------------------------------------------------------- */
.sw-prices { width: 100%; border-collapse: collapse; margin: 18px 0 10px; font-size: 17px; }
.sw-prices th, .sw-prices td { padding: 16px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.sw-prices th { width: 58%; padding-right: 18px; font-weight: 400; }
.sw-prices th b { display: block; font-weight: 700; }
.sw-prices th small { display: block; margin-top: 3px; font-size: 14.5px; color: var(--mute); }
.sw-prices td { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 19px; white-space: nowrap; }
.sw-prices td small { display: block; font-family: 'Satoshi', sans-serif; font-weight: 400; font-size: 14px; color: var(--mute); white-space: normal; }

/* ---- Formulario ---------------------------------------------------------- */
.sw-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-top: 22px; }
.sw-form label { display: grid; gap: 5px; font-size: 14.5px; font-weight: 600; }
.sw-form .full { grid-column: 1 / -1; }
.sw-form input, .sw-form select, .sw-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid #cfc8bf;
    border-radius: 5px;
    background: #fff;
    font: 400 16px 'Satoshi', sans-serif;
    color: var(--ink);
}
.sw-form textarea { min-height: 90px; resize: vertical; }
.sw-form input:focus, .sw-form select:focus, .sw-form textarea:focus { outline: 2px solid rgba(232, 67, 12, 0.3); border-color: var(--or); }
.sw-form .sw-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.sw-form .sw-check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--or); }
.sw-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sw-form button { justify-self: start; border: 0; cursor: pointer; font: inherit; }
.sw-msg { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: 15px; }
.sw-msg.ok { color: #13806f; font-weight: 600; }
.sw-msg.err { color: #b4380a; }

.sw-end { padding-bottom: 0; }
.sw-foot.footer2 { margin-top: 56px; }
.sw-foot .foot { width: auto; margin: 40px 0 0; padding-top: 0; border-top: 0; }
.sw-foot .foot-legal { margin: 28px 0 0; }

@media (max-width: 760px) {
    .sw { font-size: 17px; }
    .sw-pair, .sw-form { grid-template-columns: 1fr; }
    .sw-prices th { width: auto; }
    .sw-prices td { font-size: 17px; }
}
.sw-save { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 4px; background: #e3f3ee; color: #13806f; font-family: 'Satoshi', sans-serif; font-size: 13px; font-weight: 700; vertical-align: 2px; }

/* ---- 3D en vivo (secciones 01 y 02) ---------------------------------------
   La foto se ve primero; el visor (13 MB) sólo baja si se pide. */
.sw-3d { position: relative; }
.sw-3d.sw-pair { margin-top: 22px; }
.sw-3d-go {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.82);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font: 700 16px 'Satoshi', sans-serif;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: background .2s, transform .2s;
}
.sw-3d-go span { font-size: 20px; line-height: 1; color: #ff8c42; }
.sw-3d-go:hover { background: var(--or); transform: translate(-50%, -50%) scale(1.03); }
.sw-3d-go:hover span { color: #fff; }
.sw-3d-full {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink) !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.sw-3d img { cursor: pointer; }
.sw-3d.is-live > img, .sw-3d.is-live > figure, .sw-3d.is-live > .sw-3d-go { display: none; }
.sw-3d.is-live { display: block; }
.sw-3d iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid #d8d2ca;
    border-radius: 6px;
    background: #e9ecef;
}
.sw-3d-hint { margin-top: 8px; font-size: 13.5px; color: var(--mute); }

/* ---- Ver las capturas en grande ----------------------------------------- */
.sw-zoom { cursor: zoom-in; }
.sw-lb {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(12, 12, 12, 0.88);
    cursor: zoom-out;
}
.sw-lb.on { display: flex; }
.sw-lb img { max-width: 100%; max-height: 100%; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.sw-lb button {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
@media (max-width: 760px) {
    .sw-3d iframe { aspect-ratio: 4 / 5; }
    .sw-3d-go { padding: 12px 16px; font-size: 14.5px; white-space: nowrap; }
    .sw-3d.sw-pair .sw-3d-go { top: 50%; }
}

/* ---- Marca de Solar Wizard, arriba de la portada ------------------------
   La W rayada pegada al nombre, «solar_wizard» en Space Mono. Fuente y pesos
   en solar-wizard-brand.css (lo escribe solar-wizard-logos/marca.py). */
.sw-brand { display: flex; align-items: center; gap: 3px; margin: 0 0 30px !important; }
.sw-brand img { height: 46px; width: auto; flex: none; }
.sw-brand span { font-family: var(--swb-font, 'Space Mono', monospace); font-weight: var(--swb-w2, 400); font-size: 38px; line-height: 1; letter-spacing: -0.04em; color: var(--ink); white-space: nowrap; }
.sw-brand b { font-weight: var(--swb-w1, 400); }
.sw-brand i { font-style: normal; background: var(--swb-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 520px) {
    .sw-brand img { height: 36px; }
    .sw-brand span { font-size: 29px; }
}

/* ---- Colores de la marca en la página -----------------------------------
   Los tonos del sol del logo (H03, rojo arriba → amarillo abajo) sustituyen
   al naranja de Mistral en esta página. --swb-sun viene de
   solar-wizard-brand.css; aquí van las versiones vertical y de acento. */
.sw {
    --or: #d9480f;                                   /* enlaces: el naranja del sol, legible */
    --sun-v: linear-gradient(180deg, #dc2626 0%, #f97316 45%, #facc15 100%);
    --sun-h: var(--swb-sun, linear-gradient(90deg, #dc2626, #f97316, #facc15));
}
.sw-feat-head .sw-num {
    background: var(--sun-v);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 400;
}
.sw-btn { position: relative; overflow: hidden; }
.sw-btn:hover { background: var(--sun-h); color: #16181b !important; }
.sw-drone { border-left: 0; border-image: none; position: relative; }
.sw-drone::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sun-v); }
.sw-quote blockquote::before { background: var(--sun-h); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sw-3d-go span { color: #fbbf24; }
.sw-3d-go:hover { background: #16181b; }
.sw-3d-go:hover span { color: #facc15; }
.sw-form input:focus, .sw-form select:focus, .sw-form textarea:focus { outline-color: rgba(249, 115, 22, 0.35); border-color: #f97316; }
.sw-form .sw-check input { accent-color: #f97316; }
/* Una franja de sol bajo el bloque de la portada, como el «_» del nombre. */
.sw-top::after { content: ''; display: block; width: 64px; height: 4px; margin-top: 30px; border-radius: 2px; background: var(--sun-h); }
