/* =============================================================================
   Area publica de la plataforma (paginas de conversion enlazadas desde la web).

   Sistema de diseno v3 "Modern Geometric" (aprobado 22-07-2026). Este fichero
   NO define ningun color: los tokens `--wm-*` los inyecta Branding::css_vars()
   en el <head>, antes de esta hoja. Para cambiar la marca no se toca aqui.
   ============================================================================= */

* { box-sizing: border-box; }

body.wm-pub {
    margin: 0;
    background: var(--wm-bg);
    color: var(--wm-ink);
    font-family: var(--wm-font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--wm-primary); }

.wm-pub-wrap { max-width: 1100px; margin: 0 auto; padding: 0 40px; }

/* --- Cabecera y pie ------------------------------------------------------- */
.wm-pub-header { background: var(--wm-surface); border-bottom: 1px solid var(--wm-line-soft); }
.wm-pub-header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 80px; }

.wm-pub-brand { display: block; line-height: 0; }
.wm-pub-brand img { height: 44px; width: auto; display: block; }

.wm-pub-nav { display: flex; align-items: center; gap: 28px; }
.wm-pub-nav a {
    color: var(--wm-ink); text-decoration: none; font-weight: 500; font-size: .95rem;
    padding: 6px 0; border-bottom: 2px solid transparent; transition: color .14s, border-color .14s;
}
.wm-pub-nav a:hover { color: var(--wm-primary); border-bottom-color: var(--wm-primary); }

.wm-pub-main { padding: 56px 40px 80px; }

.wm-pub-footer {
    border-top: 1px solid var(--wm-line-soft); background: var(--wm-surface);
    padding: 28px 0; color: var(--wm-muted); font-size: .88rem;
}
.wm-pub-footer .wm-pub-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wm-pub-footer a { color: var(--wm-muted); text-decoration: none; }
.wm-pub-footer a:hover { color: var(--wm-primary); }

/* --- Tipografia ---------------------------------------------------------- */
.wm-pub h1 { font-size: 2.6rem; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 12px; color: var(--wm-primary); }
.wm-pub h2 { font-size: 1.65rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; margin: 40px 0 16px; color: var(--wm-ink); }
.wm-pub h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; margin: 0 0 8px; color: var(--wm-primary); }
.wm-pub .wm-lead { color: var(--wm-muted); font-size: 1.125rem; margin: 0 0 36px; max-width: 62ch; }
.wm-muted { color: var(--wm-muted); }

/* Eyebrow: etiqueta corta en mayusculas sobre el titular. */
.wm-eyebrow {
    display: block; font-size: .875rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .1em; color: var(--wm-primary); margin: 0 0 10px;
}

/* --- Tarjetas ------------------------------------------------------------ */
.wm-card {
    background: var(--wm-surface); border: 1px solid var(--wm-line-soft);
    border-radius: var(--wm-radius-card); padding: 32px;
}

/* --- Espacios (tipos de stand) ------------------------------------------- */
.wm-spaces { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 10px 0 6px; }
.wm-space {
    border: 2px solid var(--wm-line-soft); border-radius: var(--wm-radius); padding: 18px;
    cursor: pointer; background: var(--wm-surface); display: block;
    transition: border-color .14s, box-shadow .14s, transform .14s;
}
.wm-space:hover { border-color: var(--wm-primary-alt); transform: translateY(-2px); box-shadow: var(--wm-shadow); }
.wm-space input { margin-right: 8px; }
.wm-space.has-sel, .wm-space:has(input:checked) { border-color: var(--wm-primary); box-shadow: 0 0 0 3px var(--wm-tint-2); }
.wm-space-name { font-weight: 600; }
.wm-space-price { color: var(--wm-primary); font-weight: 700; font-size: 1.15rem; margin-top: 6px; }
.wm-space-meta { color: var(--wm-muted); font-size: .85rem; }
.wm-space-desc {
    color: var(--wm-muted); font-size: .8rem; margin-top: 10px; padding-top: 10px;
    border-top: 1px solid var(--wm-line-soft); line-height: 1.45;
}

/* Reclamo comercial bajo el bloque de tarifas: bloque burdeos a sangre con
   remate en melocoton. Es el unico elemento del formulario en color solido y el
   unico titular grande fuera de la cabecera, para que no pase inadvertido. */
.wm-claim {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 28px;
    margin: 32px 0 0; padding: 34px 38px;
    background: linear-gradient(115deg, var(--wm-primary) 0%, var(--wm-primary-alt) 100%);
    border-radius: var(--wm-radius-lg); box-shadow: var(--wm-shadow-lg); color: var(--wm-bg);
}
/* Veladura melocoton en la esquina: da profundidad sin meter una imagen. */
.wm-claim::after {
    content: ''; position: absolute; right: -70px; top: -90px;
    width: 300px; height: 300px; border-radius: var(--wm-radius-pill);
    background: var(--wm-accent); opacity: .12; pointer-events: none;
}
.wm-claim-cuerpo { position: relative; z-index: 1; }
.wm-claim-badge {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 14px; border-radius: var(--wm-radius-pill);
    border: 1px solid var(--wm-accent); color: var(--wm-accent);
    font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em;
}
.wm-claim-titular {
    display: block; margin-top: 12px; color: var(--wm-accent);
    font-size: clamp(1.6rem, 3.4vw, 2.15rem); font-weight: 700; line-height: 1.1;
    text-transform: uppercase; letter-spacing: .01em;
}
.wm-claim-texto { display: block; margin-top: 8px; font-size: 1.02rem; line-height: 1.45; }
.wm-claim-cta {
    position: relative; z-index: 1; flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 9px;
    padding: 15px 26px; border-radius: var(--wm-radius-pill);
    background: var(--wm-accent); color: var(--wm-primary);
    font-weight: 700; font-size: 1rem; letter-spacing: .01em; text-decoration: none;
    box-shadow: var(--wm-shadow); transition: transform .14s, box-shadow .14s;
}
.wm-claim-cta:hover { transform: translateY(-2px); box-shadow: var(--wm-shadow-lg); }

@media (max-width: 760px) {
    .wm-claim { flex-direction: column; align-items: flex-start; gap: 20px; padding: 28px 24px; }
    .wm-claim-cta { width: 100%; justify-content: center; }
}

/* --- Listas de opciones (radio / checkbox) ------------------------------- */
.wm-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 16px; margin: 8px 0 4px; }
.wm-opt { display: flex; align-items: flex-start; gap: 9px; padding: 5px 0; font-size: .93rem; cursor: pointer; }
.wm-opt input { margin-top: 3px; flex: 0 0 auto; }

/* --- Formularios --------------------------------------------------------- */
.wm-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.wm-form-grid .col-2 { grid-column: 1 / -1; }
.wm-field label {
    display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .05em; color: var(--wm-muted); margin-bottom: 6px;
}
.wm-field input, .wm-field select, .wm-field textarea {
    width: 100%; padding: 12px 16px; font: inherit; color: var(--wm-ink);
    background: var(--wm-surface-2); border: 1px solid var(--wm-line-soft);
    border-radius: var(--wm-radius); transition: border-color .14s, box-shadow .14s, background .14s;
}
.wm-field input:focus, .wm-field select:focus, .wm-field textarea:focus {
    outline: none; background: var(--wm-surface);
    border-color: var(--wm-primary); box-shadow: 0 0 0 3px var(--wm-tint-2);
}
.wm-field textarea { min-height: 110px; resize: vertical; }
.wm-req { color: var(--wm-primary); }
.wm-hp { position: absolute; left: -9999px; }   /* honeypot anti-spam */

/* --- Botones ------------------------------------------------------------- */
.wm-btn {
    display: inline-block; background: var(--wm-primary); color: #fff; border: 0;
    border-radius: var(--wm-radius); padding: 16px 32px; font: inherit;
    font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
    cursor: pointer; text-decoration: none; transition: transform .14s, box-shadow .14s, background .14s;
}
.wm-btn:hover { background: var(--wm-primary-alt); transform: translateY(-2px); box-shadow: var(--wm-shadow); }
.wm-btn:active { transform: none; }
.wm-btn-ghost {
    background: transparent; color: var(--wm-primary); border: 2px solid var(--wm-primary); padding: 14px 30px;
}
.wm-btn-ghost:hover { background: var(--wm-tint); color: var(--wm-primary); }
.wm-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* --- Avisos -------------------------------------------------------------- */
.wm-alert {
    border-radius: var(--wm-radius); padding: 14px 18px; margin: 0 0 22px;
    border: 1px solid var(--wm-line-soft); background: var(--wm-surface);
}
.wm-alert-error { border-color: var(--wm-error); background: #fdf3f2; color: #8a2b22; }
.wm-alert-ok { border-color: var(--wm-ok); background: #f1f8f2; color: var(--wm-ok); }
.wm-errors { margin: 0; padding-left: 18px; }

/* --- Confirmacion -------------------------------------------------------- */
.wm-thanks { text-align: center; padding: 48px 0; }
.wm-thanks .wm-check { color: var(--wm-primary); margin-bottom: 8px; }
.wm-thanks h1 { margin-bottom: 16px; }

/* --- Iconos -------------------------------------------------------------- */
.wm-icon { flex: 0 0 auto; vertical-align: -.15em; }

/* --- Movil --------------------------------------------------------------- */
@media (max-width: 860px) {
    .wm-pub-wrap { padding: 0 16px; }
    .wm-pub-main { padding: 36px 16px 56px; }
    .wm-pub h1 { font-size: 1.9rem; }
    .wm-pub h2 { font-size: 1.45rem; }
    .wm-pub .wm-lead { font-size: 1rem; }
    .wm-form-grid { grid-template-columns: 1fr; }
    .wm-card { padding: 24px; }
    .wm-pub-header-in { height: 64px; }
    .wm-pub-brand img { height: 34px; }
    .wm-pub-nav { gap: 16px; }
    .wm-pub-nav a { font-size: .85rem; }
    .wm-pub-footer .wm-pub-wrap { flex-direction: column; text-align: center; gap: 8px; }
}
