/* Qubilia · landing pública (entrega 2).
   Línea gráfica: tinta pizarra, latón como acento, fondos marfil y lino. Tipografía Jost en pesos finos.
   Disposición: portada con imagen y textos centrados; el logo cuelga como una placa al centro del menú. */

:root {
    --q-ink: #262B33;
    --q-ivory: #F5F3EF;
    --q-linen: #EBE7E0;
    --q-white: #FFFFFF;
    --q-muted: #5E646D;
    --q-muted-dark: #C9CDD3;
    --q-soft-white: #E6E8EB;
    --q-accent: #B9975B;
    --q-on-accent: #262B33;
    --q-field-line: #BDB7AC;
    --q-font: 'Jost', 'Century Gothic', 'Segoe UI', sans-serif;
    --q-pad: 110px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.q-page {
    margin: 0;
    font-family: var(--q-font);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--q-ink);
    background: var(--q-ivory);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--q-accent); outline-offset: 3px; }

.q-skip { position: absolute; left: -9999px; top: 16px; z-index: 20; padding: 10px 16px; background: var(--q-white); color: var(--q-ink); }
.q-skip:focus { left: 16px; }

.q-wrap { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.q-caps { font-size: 13.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }

/* ---------- Logo ---------- */
.q-brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; }
.q-brand--stacked { flex-direction: column; gap: 8px; }
.q-brand__mark { display: block; flex: none; }
.q-brand__door { stroke: var(--q-accent); }
.q-brand__name { font-weight: 400; letter-spacing: 0.34em; margin-right: -0.34em; line-height: 1; white-space: nowrap; }

/* ---------- Botones ---------- */
.q-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 52px; padding: 0 30px;
    border: 1px solid transparent; border-radius: 2px;
    font-family: inherit; font-size: 13.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
    cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.q-btn--accent { background: var(--q-accent); border-color: var(--q-accent); color: var(--q-on-accent); }
.q-btn--accent:hover { background: var(--q-white); border-color: var(--q-white); color: var(--q-ink); }
.q-btn--ghost { background: transparent; border-color: var(--q-white); color: var(--q-white); }
.q-btn--ghost:hover { background: var(--q-white); color: var(--q-ink); }
.q-btn--dark { background: var(--q-ink); border-color: var(--q-ink); color: var(--q-white); }
.q-btn--dark:hover { background: var(--q-accent); border-color: var(--q-accent); color: var(--q-on-accent); }
.q-btn--block { width: 100%; }
.q-btn[disabled] { opacity: .6; cursor: default; }
.q-form .q-btn--accent:hover { background: var(--q-ink); border-color: var(--q-ink); color: var(--q-white); }

/* ---------- Imágenes de fondo ---------- */
.q-media { position: absolute; inset: 0; overflow: hidden; }
.q-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.q-media::after { content: ''; position: absolute; inset: 0; }
.q-media--hero::after { background: linear-gradient(180deg, rgba(30, 34, 41, .80) 0%, rgba(30, 34, 41, .64) 48%, rgba(30, 34, 41, .84) 100%); }
.q-media--plan img { opacity: .7; }
.q-media--plan::after { background: rgba(38, 43, 51, .62); }
.q-media--half img { object-position: left bottom; }
.q-media--half::after { background: rgba(30, 34, 41, .84); }
.q-media--contact img { object-position: right top; }
.q-media--contact::after { background: rgba(30, 34, 41, .85); }

/* ---------- Portada y menú ---------- */
.q-hero { position: relative; background: var(--q-ink); color: var(--q-white); }

.q-header { position: relative; z-index: 3; }
.q-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; column-gap: 52px; }

.q-nav { display: flex; flex-wrap: wrap; gap: 0 34px; padding-top: 30px; }
.q-nav--left { justify-content: flex-end; }
.q-nav a, .q-menu a, .q-footer__nav a {
    display: inline-flex; align-items: center; min-height: 44px;
    font-size: 13.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--q-white);
    transition: color .2s;
}
.q-nav a:hover, .q-menu a:hover, .q-footer__nav a:hover { color: var(--q-accent); }

.q-plate { display: flex; padding: 22px 30px 20px; background: var(--q-ivory); color: var(--q-ink); text-decoration: none; }

.q-menu-btn {
    display: none; position: absolute; top: 24px; right: 24px;
    min-height: 44px; padding: 0 16px;
    background: transparent; border: 1px solid var(--q-white); border-radius: 2px; color: var(--q-white);
    font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer;
}
.q-menu { display: flex; flex-direction: column; align-items: center; padding: 18px 24px 22px; background: var(--q-ink); }
.q-menu[hidden] { display: none; }

.q-hero__content { display: flex; flex-direction: column; align-items: center; gap: 30px; padding-top: 96px; padding-bottom: 136px; text-align: center; }
.q-hero__content h1 { max-width: 980px; font-size: clamp(38px, 5.4vw, 74px); font-weight: 300; line-height: 1.08; letter-spacing: -0.012em; text-wrap: balance; }
.q-hero__content h1 span { color: var(--q-accent); }
.q-hero__content p { max-width: 660px; font-size: 20px; line-height: 1.6; color: var(--q-soft-white); }
.q-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.q-strip-wrap { z-index: 2; margin-bottom: -34px; }
.q-strip {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 26px;
    padding: 26px 28px; background: var(--q-accent); color: var(--q-on-accent);
    font-size: 14px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; line-height: 1.2;
}
.q-strip li { display: inline-flex; align-items: center; gap: 26px; }
.q-strip li + li::before { content: ''; width: 6px; height: 6px; background: currentColor; opacity: .5; transform: rotate(45deg); }

/* ---------- Secciones ---------- */
.q-section { position: relative; padding: var(--q-pad) 0; }
.q-section--ivory { background: var(--q-ivory); }
.q-section--white { background: var(--q-white); }
.q-section--dark { background: var(--q-ink); color: var(--q-white); }
.q-section--after-strip { padding-top: calc(var(--q-pad) + 34px); }
.q-section--flush { padding-bottom: 0; }

.q-title { max-width: 860px; margin: 0 auto; font-size: clamp(30px, 3.9vw, 52px); font-weight: 300; line-height: 1.12; letter-spacing: -0.01em; text-align: center; text-wrap: balance; }
.q-lead { max-width: 720px; margin: 26px auto 0; font-size: 19px; line-height: 1.6; text-align: center; color: var(--q-muted); }
.q-section--dark .q-lead { color: var(--q-soft-white); }

/* Tres preguntas */
.q-trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px 64px; margin-top: 74px; text-align: center; }
.q-trio h3 { font-size: 25px; font-weight: 400; line-height: 1.2; text-wrap: balance; }
.q-trio p { margin-top: 14px; line-height: 1.6; color: var(--q-muted); }

/* Recorrido */
.q-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr)); gap: 40px 24px; margin-top: 64px; text-align: center; }
.q-steps li { display: flex; flex-direction: column; gap: 12px; }
.q-steps strong { font-size: 29px; font-weight: 300; line-height: 1; }
.q-steps li:last-child strong { color: var(--q-accent); }
.q-steps span { font-size: 16px; line-height: 1.55; color: var(--q-muted-dark); }

/* Mosaico de módulos */
.q-mosaic { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 3px; margin-top: 64px; }
.q-tile { display: flex; flex-direction: column; justify-content: center; gap: 12px; min-height: 250px; padding: 38px 30px; text-align: center; }
.q-tile h3 { font-size: 23px; font-weight: 400; line-height: 1.2; }
.q-tile p { font-size: 16px; line-height: 1.55; }
.q-tile--ink { background: var(--q-ink); color: var(--q-white); }
.q-tile--ink p { color: var(--q-muted-dark); }
.q-tile--linen { background: var(--q-linen); }
.q-tile--linen p { color: var(--q-muted); }
.q-tile--accent { background: var(--q-accent); color: var(--q-on-accent); }

/* Dos equipos */
.q-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(480px, 100%), 1fr)); margin-top: 64px; }
.q-half { position: relative; padding: 88px 32px; }
.q-half--photo { background: var(--q-ink); color: var(--q-white); }
.q-half--accent { background: var(--q-accent); color: var(--q-on-accent); }
.q-half__body { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.q-half h3 { font-size: 38px; font-weight: 300; line-height: 1.1; text-wrap: balance; }
.q-half--photo .q-caps { color: var(--q-muted-dark); }
.q-half ul { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; font-size: 18px; line-height: 1.4; }

/* Canales */
.q-channels { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 28px; max-width: 1000px; margin: 44px auto 0; font-size: clamp(24px, 2.9vw, 38px); font-weight: 300; line-height: 1.15; }
.q-channels li { display: inline-flex; align-items: center; gap: 28px; }
.q-channels li + li::before { content: ''; width: 7px; height: 7px; background: var(--q-accent); transform: rotate(45deg); flex: none; }
.q-channels + .q-lead { margin-top: 44px; }

/* Planes */
.q-switch { display: flex; flex-wrap: wrap; justify-content: center; width: max-content; max-width: 100%; margin: 38px auto 0; border: 1px solid var(--q-ink); background: var(--q-white); }
.q-switch button {
    min-height: 48px; padding: 0 26px; border: 0; border-radius: 0; background: transparent; color: var(--q-ink);
    font-family: inherit; font-size: 13.5px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; cursor: pointer;
}
.q-switch button[aria-pressed="true"] { background: var(--q-ink); color: var(--q-white); }

.q-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); margin-top: 46px; border: 1px solid var(--q-ink); background: var(--q-white); }
.q-plan { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 52px 32px; text-align: center; }
.q-plan h3 { font-size: 28px; font-weight: 400; line-height: 1.1; }
.q-plan__tag { padding: 6px 14px; background: var(--q-accent); color: var(--q-on-accent); font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.q-plan__desc { max-width: 280px; line-height: 1.5; color: var(--q-muted); }
.q-plan__price { display: flex; flex-direction: column; gap: 6px; }
.q-plan__price strong { font-size: 52px; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.q-plan__price span { font-size: 16px; color: var(--q-muted); }
.q-plan__fit { font-size: 16px; font-weight: 500; }
.q-plan ul { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; font-size: 16px; line-height: 1.45; color: var(--q-muted); }
.q-plan__inherit { font-weight: 500; color: var(--q-ink); }
.q-plan--featured { background: var(--q-ink); color: var(--q-white); }
.q-plan--featured .q-plan__desc, .q-plan--featured .q-plan__price span, .q-plan--featured ul { color: var(--q-muted-dark); }
.q-plan--featured .q-plan__inherit { color: var(--q-white); }

.q-note { max-width: 820px; margin: 34px auto 0; font-size: 16px; line-height: 1.55; text-align: center; color: var(--q-muted); }

/* Preguntas */
.q-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: 52px 72px; margin-top: 64px; text-align: center; }
.q-faq h3 { font-size: 24px; font-weight: 400; line-height: 1.25; text-wrap: balance; }
.q-faq p { max-width: 480px; margin: 10px auto 0; line-height: 1.6; color: var(--q-muted); }

/* Contacto */
.q-form { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin: 50px auto 0; padding: 40px; background: var(--q-white); border-radius: 2px; color: var(--q-ink); }
.q-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.q-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.q-field { display: flex; flex-direction: column; gap: 6px; }
.q-field label { font-size: 15px; font-weight: 500; }
.q-field input, .q-field select, .q-field textarea {
    width: 100%; min-height: 50px; padding: 0 14px;
    border: 1px solid var(--q-field-line); border-radius: 2px; background: var(--q-white); color: var(--q-ink);
    font-family: inherit; font-size: 17px;
}
.q-field textarea { padding: 12px 14px; resize: vertical; }
.q-field input:focus, .q-field select:focus, .q-field textarea:focus { border-color: var(--q-ink); }
.q-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--q-muted); cursor: pointer; }
.q-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--q-ink); }
.q-alert { padding: 14px 16px; border-radius: 2px; font-size: 16px; line-height: 1.45; }
.q-alert--ok { background: #E5EFE6; color: #1E4A2A; }
.q-alert--error { background: #F6E3DF; color: #7A261A; }

/* ---------- Pie ---------- */
.q-footer { overflow: hidden; padding-top: 80px; background: var(--q-ink); color: var(--q-white); }
.q-footer__inner { display: flex; flex-direction: column; align-items: center; gap: 26px; text-align: center; }
.q-footer__brand { display: flex; text-decoration: none; color: var(--q-white); }
.q-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 34px; }
.q-footer__inner p { font-size: 15px; color: var(--q-muted-dark); }
.q-footer__inner p a { text-decoration: none; color: var(--q-white); }
.q-footer__inner p a:hover { color: var(--q-accent); }
.q-footer__ghost {
    padding-top: 48px; margin: 0 -0.14em -0.05em 0;
    font-size: clamp(80px, 18vw, 250px); font-weight: 200; line-height: .8; letter-spacing: 0.14em;
    text-align: center; white-space: nowrap; color: #3A414D; user-select: none;
}

/* ---------- Pantallas angostas ---------- */
@media (max-width: 940px) {
    :root { --q-pad: 76px; }
    .q-header__inner { grid-template-columns: 1fr; justify-items: center; }
    .q-nav { display: none; }
    .q-menu-btn { display: inline-flex; align-items: center; }
    .q-hero__content { padding-top: 64px; padding-bottom: 96px; }
    .q-hero__content p { font-size: 18px; }
    .q-strip { gap: 8px 18px; padding: 20px; font-size: 12.5px; letter-spacing: 0.18em; }
    .q-strip li { gap: 18px; }
    .q-trio, .q-steps, .q-mosaic, .q-split, .q-faq { margin-top: 48px; }
    .q-half { padding: 64px 24px; }
    .q-half h3 { font-size: 32px; }
    .q-form { padding: 26px 20px; }
}

@media (max-width: 480px) {
    .q-plate { padding: 18px 22px 16px; }
    .q-menu-btn { top: 18px; right: 16px; padding: 0 12px; }
    .q-btn { padding: 0 22px; }
    .q-plan { padding: 44px 22px; }
    .q-channels li { gap: 18px; }
    .q-channels { gap: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .q-btn, .q-nav a { transition: none; }
}
