/* =========================================================
   Tema "sceau" — VerticeB Hub
   Lenguaje de certificado: marfil, filetes champán, sello
   guilloché, cláusulas numeradas. --gold, --ink y --ivory
   llegan de Ajustes → Marca (ver layout.php).
   ========================================================= */
:root {
    --white: #ffffff;
    --pearl: color-mix(in srgb, var(--ivory) 70%, #ece8de);
    --line: #e7e3da;
    --line-soft: #f0ede6;
    --text: color-mix(in srgb, var(--ink) 70%, #9a9ca0);
    --muted: #a09d96;
    --gold-soft: color-mix(in srgb, var(--gold) 55%, #ffffff);
    --accent: #1A3A5D;

    --font-display: 'Marcellus', 'Trajan Pro', Georgia, serif;
    --font-body: 'Jost', system-ui, sans-serif;

    --wrap: 1160px;
    --header-h: 92px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: var(--header-h); }
body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold-soft); color: var(--ink); }
a { color: inherit; }
img { max-width: 100%; }
strong { font-weight: 500; color: var(--ink); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; color: var(--ink); margin: 0; }
h2 em, h3 em { font-style: normal; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.sr-only { position: absolute; left: -9999px; top: 0; padding: 10px 16px; background: var(--ink); color: #fff; z-index: 3000; }
.sr-only:focus { left: 16px; top: 16px; }

.ornament {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    margin: 0 auto 34px;
    color: var(--gold);
}
.ornament span { width: 70px; height: 1px; background: var(--gold-soft); transform-origin: center; }
.ornament svg { width: 10px; height: 10px; }

.js:not(.js-ready) [data-hero] { visibility: hidden; }

/* ---------- Header ----------
   Opaca (no translúcida) al hacer scroll: con fondo semitransparente y
   desenfoque, las tarjetas y botones oscuros del formulario se
   transparentaban y parecían quedar por encima de la cabecera. */
.site-header {
    position: fixed; inset: 0 0 auto 0;
    z-index: 1000;
    isolation: isolate;
    background: transparent;
    transition: background-color .45s var(--ease), box-shadow .45s var(--ease);
}
.site-header.is-scrolled {
    background: var(--white);
    box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(35, 37, 42, .25);
}
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    height: var(--header-h);
    padding: 0 60px;
}
.lang { display: flex; align-items: center; gap: 2px; }
.lang a {
    font-size: 10.5px; letter-spacing: .24em;
    text-decoration: none; color: var(--muted);
    padding: 6px 8px;
    transition: color .3s;
}
.lang a + a { border-left: 1px solid var(--line); }
.lang a:hover { color: var(--ink); }
.lang a.is-active { color: var(--gold); }
.logo {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    text-decoration: none; color: var(--ink);
}
.logo img { display: block; height: 40px; width: auto; max-width: 240px; object-fit: contain; }
.logo-word {
    font-family: var(--font-display);
    font-size: 19px;
    letter-spacing: .34em;
    text-transform: uppercase;
    line-height: 1;
    padding-left: .34em;
}
.logo-sub { font-size: 8.5px; letter-spacing: .5em; text-transform: uppercase; color: var(--gold); padding-left: .5em; }
.nav { display: flex; justify-content: flex-end; align-items: center; }
.nav a {
    font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
    text-decoration: none; color: var(--ink);
    position: relative; padding: 6px 0;
}
.nav a::after {
    content: ''; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px;
    background: var(--gold); transition: left .5s var(--ease), right .5s var(--ease);
}
.nav a:hover::after { left: 0; right: 0; }

/* ---------- Vertical text ---------- */
.vertical-text {
    position: fixed; top: 50%; z-index: 900;
    writing-mode: vertical-rl;
    font-size: 10px; letter-spacing: .4em; text-transform: uppercase;
    color: var(--ink);
    pointer-events: none; user-select: none;
    display: flex; align-items: center; gap: 16px;
    white-space: nowrap;
}
.vertical-text::before, .vertical-text::after { content: ''; width: 1px; height: 40px; background: var(--gold-soft); }
.vertical-text.left { left: 24px; transform: translateY(-50%) rotate(180deg); }
.vertical-text.right { right: 24px; transform: translateY(-50%); }
.vertical-text .by-line-vertical { color: var(--gold); }

/* ---------- Hero (certificado) ---------- */
.hero {
    position: relative;
    min-height: 100vh; min-height: 100svh;
    padding: 120px 70px 70px;
    display: flex;
    background:
        radial-gradient(ellipse 60% 50% at 50% 40%, #fff 0%, rgba(255,255,255,0) 100%),
        linear-gradient(180deg, var(--white) 0%, var(--ivory) 100%);
}
.frame {
    position: relative;
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 80px 40px;
}
.frame .fl { position: absolute; background: var(--gold-soft); }
.frame .fl.t, .frame .fl.b { height: 1px; left: 0; right: 0; }
.frame .fl.l, .frame .fl.r { width: 1px; top: 0; bottom: 0; }
.frame .fl.t { top: 0; } .frame .fl.b { bottom: 0; }
.frame .fl.l { left: 0; } .frame .fl.r { right: 0; }
.frame .inner .fl { background: var(--line); }
.frame .inner { position: absolute; inset: 9px; pointer-events: none; }
.frame .corner { position: absolute; width: 18px; height: 18px; color: var(--gold); }
.frame .corner.tl { top: -9px; left: -9px; }
.frame .corner.tr { top: -9px; right: -9px; transform: rotate(90deg); }
.frame .corner.br { bottom: -9px; right: -9px; transform: rotate(180deg); }
.frame .corner.bl { bottom: -9px; left: -9px; transform: rotate(270deg); }

.hero-content { position: relative; z-index: 2; max-width: 900px; }
.seal { width: 150px; height: 150px; margin: 0 auto 38px; color: var(--gold); position: relative; }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal .seal-text { font-family: var(--font-body); font-size: 7px; letter-spacing: 2px; fill: var(--gold); text-transform: uppercase; }
.seal .rot { transform-origin: 84px 84px; }

.hero h1 {
    font-size: clamp(42px, 6.2vw, 92px);
    line-height: 1;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 30px;
}
.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(17px, 1.8vw, 23px);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 30px;
}
.hero-lead { max-width: 620px; margin: 0 auto 46px; font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 14px;
    position: relative;
    padding: 19px 44px;
    font-family: var(--font-body);
    font-size: 11.5px; font-weight: 400;
    letter-spacing: .3em; text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--ink);
    cursor: pointer;
    transition: color .5s var(--ease), background .5s var(--ease), border-color .5s;
}
.btn::after {
    content: '';
    position: absolute; inset: 4px;
    border: 1px solid var(--gold-soft);
    opacity: 0;
    transition: opacity .5s var(--ease), inset .5s var(--ease);
    pointer-events: none;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn:hover::after { opacity: .7; inset: 5px; }
.btn.solid { background: var(--ink); color: var(--white); }
.btn.solid:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Statement ---------- */
.preamble { padding: 170px 0 150px; text-align: center; }
.preamble-lead {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.3vw, 30px);
    line-height: 1.55;
    color: var(--ink);
    max-width: 940px;
    margin: 0 auto 44px;
}
.preamble-lead strong { font-weight: 400; color: var(--gold); }
.preamble-body { max-width: 760px; margin: 0 auto; font-size: 17px; }
.preamble-body p { margin: 0 0 18px; }

/* ---------- Numbered clauses (paneles de certificado) ---------- */
.client-section { padding: 70px 0; }
.client-section:has(+ :not(.client-section)) { padding-bottom: 150px; }
.panel { position: relative; background: var(--ivory); padding: 100px 90px 90px; }
.panel::before, .panel::after { content: ''; position: absolute; pointer-events: none; }
.panel::before { inset: 0; border: 1px solid var(--line); }
.panel::after { inset: 10px; border: 1px solid var(--line-soft); }
.panel-head { text-align: center; margin-bottom: 70px; position: relative; z-index: 1; }
.panel-head .numeral {
    display: block;
    font-family: var(--font-display);
    font-size: 15px; letter-spacing: .3em;
    color: var(--gold);
    margin-bottom: 20px;
}
.panel-head h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.15; letter-spacing: .02em; margin-bottom: 28px; }
.panel-head p { max-width: 680px; margin: 0 auto; font-size: 17px; }

.clauses { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; counter-reset: clause; }
.clauses li {
    counter-increment: clause;
    display: grid;
    grid-template-columns: 90px 300px 1fr;
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid var(--line);
    align-items: start;
}
.clauses li:last-child { border-bottom: 1px solid var(--line); }
.clauses li::before {
    content: '§ ' counter(clause, upper-roman);
    font-family: var(--font-display);
    font-size: 15px; letter-spacing: .12em;
    color: var(--gold);
    padding-top: 5px;
}
.clauses li > strong { font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.35; color: var(--ink); hyphens: auto; }
.clauses li > div p { margin: 0 0 16px; overflow-wrap: anywhere; }
.clauses li > div p:last-child { margin-bottom: 0; }
.note { text-align: center; margin: 50px 0 0; font-size: 14px; letter-spacing: .04em; color: var(--muted); position: relative; z-index: 1; }

/* ---------- Two-way bridge ---------- */
.crypto { padding: 170px 0; background: var(--pearl); text-align: center; position: relative; overflow: hidden; }
.crypto-emblem { width: 260px; height: 120px; margin: 0 auto 56px; color: var(--gold); }
.crypto-emblem svg { width: 100%; height: 100%; overflow: visible; }
.crypto-emblem text { font-family: var(--font-display); letter-spacing: 3px; fill: var(--ink); text-transform: uppercase; }
.crypto h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.2; max-width: 860px; margin: 0 auto 36px; }
.crypto p { max-width: 780px; margin: 0 auto 18px; font-size: 17px; }

/* ---------- Closing call to action ---------- */
.cta-final { padding: 170px 0; text-align: center; }
.cta-final h2 { font-size: clamp(32px, 4.2vw, 60px); line-height: 1.18; max-width: 900px; margin: 0 auto 54px; }

/* ---------- Inquiry form ---------- */
.inquiry { padding: 0 0 160px; }
.cta-final + .inquiry, .preamble + .inquiry { padding-top: 0; }
.inquiry .panel { padding: 100px 110px; background: var(--white); }
.inquiry .panel::before { border-color: var(--gold-soft); }
.form-intro { text-align: center; max-width: 620px; margin: 0 auto 64px; position: relative; z-index: 1; }
.form-intro h2 { font-size: clamp(30px, 3.6vw, 48px); margin-bottom: 22px; letter-spacing: .02em; }
.form-intro p { margin: 0; }
.inquiry form { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }

.c-notice { margin: 0 0 36px; padding: 18px 24px; border: 1px solid var(--gold); background: var(--ivory); color: var(--ink); text-align: center; }
.c-notice.is-error { border-color: #b4574b; color: #8a3a30; }
.c-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-group { margin-bottom: 38px; }
.form-label, .form-group > label {
    display: block;
    font-size: 11px; font-weight: 400;
    letter-spacing: .22em; text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 16px;
    line-height: 1.7;
}
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
    display: block; height: 100%;
    padding: 22px 24px 22px 56px;
    border: 1px solid var(--line);
    background: var(--ivory);
    font-size: 14.5px; line-height: 1.55;
    color: var(--text);
    transition: border-color .4s var(--ease), background .4s var(--ease), color .4s;
    position: relative;
}
.choice span::before {
    content: ''; position: absolute; left: 22px; top: 25px;
    width: 15px; height: 15px; border-radius: 50%;
    border: 1px solid var(--gold-soft);
    transition: border-color .4s;
}
.choice span::after {
    content: ''; position: absolute; left: 26px; top: 29px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--gold);
    transform: scale(0); transition: transform .4s var(--ease);
}
.choice:hover span { border-color: var(--gold-soft); }
.choice input:checked + span { border-color: var(--gold); background: var(--white); color: var(--ink); }
.choice input:checked + span::before { border-color: var(--gold); }
.choice input:checked + span::after { transform: scale(1); }
.choice input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 2px; }
.choice.full { grid-column: 1 / -1; }

.radio-group { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-group.stack { flex-direction: column; }
.radio-group label { position: relative; cursor: pointer; }
.radio-group input { position: absolute; opacity: 0; pointer-events: none; }
.radio-group label span {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid var(--line);
    font-size: 14px; color: var(--text);
    transition: all .4s var(--ease);
}
.radio-group.stack label span { display: block; }
.radio-group label:hover span { border-color: var(--gold-soft); }
.radio-group input:checked + span { border-color: var(--ink); color: var(--white); background: var(--ink); }
.radio-group input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 2px; }

.field {
    width: 100%;
    padding: 15px 18px;
    font: inherit; font-size: 15.5px;
    color: var(--ink);
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: 0;
    transition: border-color .4s var(--ease), background .4s;
}
.field:focus { outline: none; border-color: var(--gold); background: var(--white); }
.field::placeholder { color: #bdbab3; }
select.field {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a8956a' stroke-width='1'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 18px center;
    padding-right: 44px;
    cursor: pointer;
}
textarea.field { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }

.dynamic-group { overflow: hidden; }
.dynamic-inner {
    position: relative;
    padding: 40px 40px 6px;
    margin: 10px 0 40px;
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, var(--ivory), var(--white));
}
.dyn-label {
    position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
    padding: 0 14px; background: var(--white);
    font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--gold);
    line-height: 18px; white-space: nowrap;
}
.submit-wrap { text-align: center; margin-top: 10px; }
.submit-button { min-width: 360px; }

/* ---------- 404 ---------- */
.notfound { padding: 220px 0 160px; text-align: center; }
.notfound h1 { font-size: 72px; letter-spacing: .1em; margin-bottom: 12px; }
.notfound p { margin: 0 0 40px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ivory); border-top: 1px solid var(--line); padding: 80px 0 44px; text-align: center; }
.site-footer .logo { margin-bottom: 36px; }
.site-footer .logo img { height: 34px; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 44px; margin-bottom: 44px; }
.footer-links a {
    font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
    color: var(--text); text-decoration: none; transition: color .3s;
}
.footer-links a:hover { color: var(--gold); }
.site-footer p { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: .06em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .header-inner { padding: 0 32px; }
    .clauses li { grid-template-columns: 70px 1fr; }
    .clauses li > div { grid-column: 2; }
    .panel { padding: 80px 50px; }
    .inquiry .panel { padding: 80px 50px; }
}
@media (max-width: 768px) {
    :root { --header-h: 96px; }
    .wrap { padding: 0 18px; }
    .header-inner { grid-template-columns: 1fr auto; height: var(--header-h); padding: 14px 20px; row-gap: 6px; align-content: center; }
    .header-inner .logo { grid-column: 1 / -1; grid-row: 1; }
    .logo img { height: 32px; }
    .logo-word { font-size: 15px; }
    .header-inner > .lang, .header-inner > span { grid-row: 2; }
    .nav { grid-row: 2; }
    .lang a { padding: 4px 6px; }
    .vertical-text { display: none; }
    .hero { padding: 110px 14px 14px; }
    .frame { padding: 60px 18px; }
    .seal { width: 120px; height: 120px; }
    .preamble, .crypto, .cta-final { padding: 110px 0; }
    .panel, .inquiry .panel { padding: 60px 24px; }
    .clauses li { grid-template-columns: 1fr; gap: 12px; }
    .clauses li > div { grid-column: 1; }
    .choice-grid, .form-row { grid-template-columns: 1fr; }
    .dynamic-inner { padding: 36px 20px 4px; }
    .submit-button { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Aviso de Google cuando la administración oculta el icono de reCAPTCHA (vb_recaptcha_notice) */
.inquiry .vb-recaptcha-note { text-align: center; }
