/* Landing pública: mundo "peltre de picantería" (fierro enlozado blanco con filo cobalto). */

@font-face {
    font-family: 'Big Shoulders Display';
    src: url('/assets/fonts/landing/big-shoulders-display-latin.woff2') format('woff2');
    font-weight: 700 900;
    font-display: swap;
}

@font-face {
    font-family: 'Schibsted Grotesk';
    src: url('/assets/fonts/landing/schibsted-grotesk-latin.woff2') format('woff2');
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --ground: #e4e9f0;
    --enamel: #fbfcfd;
    --enamel-shade: #eef2f7;
    --cobalt: #1e3a9a;
    --cobalt-light: #3a5ad0;
    --cobalt-deep: #142a73;
    --iron: #10151f;
    --ink: #141a28;
    --text: #3a4459;
    --chili: #c8361f;
    --chili-deep: #a82a16;
    --rule: rgba(30, 58, 154, 0.2);
    --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
    --body: 'Schibsted Grotesk', system-ui, sans-serif;
    --rim: 7px;
    --plate-radius: 26px;
    --section-space: clamp(3.5rem, 8vw, 7rem);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--cobalt) var(--ground);
    -webkit-text-size-adjust: 100%;
}

body.peltre {
    margin: 0;
    background: var(--ground);
    color: var(--text);
    font: 400 1.0625rem/1.6 var(--body);
    caret-color: var(--cobalt);
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--cobalt); color: #fff; }

:focus-visible {
    outline: 3px solid var(--chili);
    outline-offset: 3px;
    border-radius: 6px;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, ul, figure { margin: 0; }

a { color: var(--cobalt); text-underline-offset: 0.22em; text-decoration-thickness: 2px; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.wrap {
    width: min(100% - 2.5rem, 1240px);
    margin-inline: auto;
}

/* ---------- Material: plato enlozado ---------- */

.plate {
    position: relative;
    border: var(--rim) solid transparent;
    border-radius: var(--plate-radius);
    background:
        linear-gradient(175deg, #fff 0%, var(--enamel) 40%, var(--enamel-shade) 100%) padding-box,
        linear-gradient(155deg, var(--cobalt-light) 0%, var(--cobalt) 35%, var(--cobalt-deep) 100%) border-box;
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.9),
        inset 0 0 0 1px rgba(20, 42, 115, 0.12),
        0 2px 3px rgba(16, 21, 31, 0.1),
        0 24px 40px -24px rgba(16, 21, 31, 0.45);
}

.chip-a::after, .chip-b::after {
    content: '';
    position: absolute;
    pointer-events: none;
    background: no-repeat center / contain;
}

.chip-a::after {
    width: 38px;
    height: 28px;
    top: calc(var(--rim) * -1 - 4px);
    right: 14%;
    background-image: url('/assets/img/landing/chip-a.svg');
}

.chip-b::after {
    width: 26px;
    height: 26px;
    bottom: calc(var(--rim) * -1 - 6px);
    left: 11%;
    background-image: url('/assets/img/landing/chip-b.svg');
}

.rivet {
    position: absolute;
    top: 14px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff 0, #c3cad8 40%, #6d7891 75%, #3b4458 100%);
    box-shadow: 0 1px 1px rgba(16, 21, 31, 0.35);
}

.rivet--tl { left: 14px; }
.rivet--tr { right: 14px; }

.tag {
    position: absolute;
    z-index: 2;
    top: -19px;
    left: clamp(1rem, 3vw, 2rem);
    padding: 0.5rem 1.75rem 0.45rem;
    border-radius: 8px;
    background:
        radial-gradient(circle at 10px 50%, #dfe4ee 0 2.5px, transparent 3px),
        radial-gradient(circle at calc(100% - 10px) 50%, #dfe4ee 0 2.5px, transparent 3px),
        var(--cobalt);
    box-shadow:
        inset 0 0 0 4px var(--cobalt),
        inset 0 0 0 5.5px rgba(255, 255, 255, 0.85),
        0 8px 14px -8px rgba(16, 21, 31, 0.55);
    color: #fff;
    font: 800 0.95rem/1.1 var(--display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transform-origin: 50% 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Botones ---------- */

.btn-enamel {
    --btn-bg: var(--chili);
    --btn-bg-hover: var(--chili-deep);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    overflow: hidden;
    padding: 0.95rem 1.65rem 0.9rem;
    border-radius: 12px;
    background: var(--btn-bg);
    box-shadow:
        inset 0 0 0 3px var(--btn-bg),
        inset 0 0 0 5px rgba(255, 255, 255, 0.85),
        0 12px 20px -12px rgba(16, 21, 31, 0.7);
    color: #fff;
    font: 800 1.2rem/1 var(--display);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}

.btn-enamel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
    transform: translateX(-110%);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-enamel:hover {
    background: var(--btn-bg-hover);
    box-shadow:
        inset 0 0 0 3px var(--btn-bg-hover),
        inset 0 0 0 5px rgba(255, 255, 255, 0.85),
        0 16px 24px -12px rgba(16, 21, 31, 0.7);
    color: #fff;
    transform: translateY(-2px);
}

.btn-enamel:hover::before { transform: translateX(110%); }
.btn-enamel:active { transform: translateY(0); }
.btn-enamel .fa-whatsapp { font-size: 1.35em; }

.btn-enamel--cobalt { --btn-bg: var(--cobalt); --btn-bg-hover: var(--cobalt-deep); }

.btn-enamel--small {
    padding: 0.7rem 1.2rem 0.65rem;
    font-size: 1.05rem;
}

.link-plain {
    font-weight: 700;
    color: var(--cobalt);
}

/* ---------- Navegación: letrero de peltre moteado ---------- */

.site-nav {
    position: relative;
    z-index: 50;
    padding-top: 1rem;
}

.site-nav.is-sticky { position: sticky; top: 0; }

.nav-plate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding: 0.75rem 0.85rem 0.75rem 1.5rem;
    border-radius: 16px;
    background: var(--cobalt) url('/assets/img/landing/speckle.svg') 0 0 / 260px;
    box-shadow:
        inset 0 0 0 5px var(--cobalt),
        inset 0 0 0 7px rgba(255, 255, 255, 0.88),
        0 14px 26px -18px rgba(16, 21, 31, 0.7);
}

.nav-brand { display: flex; align-items: center; color: #fff; font: 900 1.6rem/1 var(--display); text-decoration: none; }
.nav-brand img { height: 36px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    list-style: none;
}

.nav-links a:not(.btn-enamel) {
    display: block;
    padding: 0.55rem 0.9rem;
    color: #fff;
    font: 700 1.1rem/1 var(--display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.nav-links a:not(.btn-enamel):hover {
    text-decoration: underline;
    text-underline-offset: 0.4em;
}

.nav-links li:last-child { margin-left: 0.5rem; }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

/* ---------- Hero: el letrero ---------- */

.hero { padding-block: clamp(2rem, 5vw, 3.5rem) var(--section-space); }

.sign {
    padding: clamp(2.25rem, 5vw, 4rem) clamp(1.25rem, 4.5vw, 3.75rem) 0;
    overflow: hidden;
}

.sign-copy {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: end;
}

.sign-title {
    color: var(--cobalt);
    font: 900 clamp(3rem, 7vw, 6rem)/0.9 var(--display);
    letter-spacing: -0.005em;
    text-transform: uppercase;
    text-wrap: balance;
}

.sign-aside { display: grid; gap: 1.5rem; padding-bottom: 0.4rem; }
.sign-aside p { font-size: 1.15rem; color: var(--text); max-width: 34rem; }
.sign-aside .points li { grid-template-columns: 1fr; gap: 0.15rem; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }

.sign-screen {
    position: relative;
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.sign-screen img {
    width: 100%;
    max-height: clamp(220px, 40vw, 540px);
    object-fit: cover;
    object-position: top;
    border: 8px solid var(--iron);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    background: var(--iron);
}

@media (prefers-reduced-motion: no-preference) {
    .sign {
        transform-origin: 50% -40px;
        animation: sign-hang 1.4s cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes sign-hang {
        0% { transform: rotate(-1.6deg) translateY(-12px); }
        45% { transform: rotate(0.45deg); }
        75% { transform: rotate(-0.12deg); }
        100% { transform: none; }
    }

    .tray:hover .tag { transform: rotate(-2.5deg); }
}

/* ---------- Funciones ---------- */

.feature { padding-block: 0 var(--section-space); }

.feature + .feature > .wrap {
    padding-top: var(--section-space);
    border-top: 1px solid var(--rule);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.feature-copy { grid-column: 1 / span 5; }
.feature .tray { grid-column: 6 / -1; }
.feature--medium .feature-copy { grid-column: 1 / span 6; }
.feature--medium .tray { grid-column: 7 / -1; }
.feature--small .feature-copy { grid-column: 1 / span 7; }
.feature--small .tray { grid-column: 8 / -1; }

.feature--media-first .tray { grid-column: 1 / span 7; grid-row: 1; }
.feature--media-first .feature-copy { grid-column: 8 / -1; grid-row: 1; }
.feature--media-first.feature--medium .tray { grid-column: 1 / span 6; }
.feature--media-first.feature--medium .feature-copy { grid-column: 7 / -1; }
.feature--media-first.feature--small .tray { grid-column: 1 / span 5; }
.feature--media-first.feature--small .feature-copy { grid-column: 6 / -1; }

.feature--center .feature-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.feature--center .feature-copy, .feature--center .tray { grid-column: 1; }
.feature--center .feature-copy { max-width: 46rem; }
.feature--center .tray { width: min(100%, 60rem); }
.feature--center .lede { margin-inline: auto; }
.feature--center .points { text-align: left; }

.feature h2, .faq h2 {
    margin-bottom: 1.25rem;
    color: var(--ink);
    font: 900 clamp(2.25rem, 4.2vw, 3.6rem)/0.95 var(--display);
    text-transform: uppercase;
    text-wrap: balance;
}

.lede { max-width: 38rem; font-size: 1.125rem; }

.points {
    margin: 1.75rem 0 2rem;
    padding: 0;
    list-style: none;
    border-top: 2px solid var(--cobalt);
}

.sign-aside .points { margin: 0; }

.points li {
    display: grid;
    grid-template-columns: minmax(8rem, 10.5rem) minmax(0, 1fr);
    gap: 0.25rem 1.25rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--rule);
}

.points strong {
    color: var(--cobalt);
    font: 800 1.2rem/1.25 var(--display);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.points li:not(:has(strong)) span { grid-column: 1 / -1; }

.tray { padding: clamp(1rem, 2.4vw, 2rem); }
.tray img { width: 100%; border-radius: 12px; }

/* ---------- Preguntas frecuentes ---------- */

.faq { padding-block: var(--section-space); border-top: 1px solid var(--rule); }

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.faq-head { display: grid; gap: 1.5rem; justify-items: start; position: sticky; top: 2rem; }
.faq-head h2 { margin: 0; }

.faq-list { padding: 0.5rem clamp(1.25rem, 3vw, 2.25rem); }

.faq-list details + details { border-top: 1px solid var(--rule); }

.faq-list summary {
    position: relative;
    padding: 1.4rem 2.75rem 1.4rem 0;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--cobalt); }

.faq-sign {
    position: absolute;
    top: 50%;
    right: 0;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border-radius: 50%;
    background: var(--cobalt);
}

.faq-sign::before, .faq-sign::after {
    content: '';
    position: absolute;
    top: 13px;
    left: 8px;
    width: 12px;
    height: 2px;
    background: #fff;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-sign::after { transform: rotate(90deg); }
details[open] .faq-sign::after { transform: rotate(0deg); }

.faq-list details p { max-width: 62ch; padding-bottom: 1.5rem; }

/* ---------- Cierre y pie ---------- */

.site-foot { padding-top: var(--section-space); }

.close-call {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 1.25rem;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem);
    border-radius: var(--plate-radius);
    background: var(--cobalt) url('/assets/img/landing/speckle.svg') 0 0 / 260px;
    box-shadow:
        inset 0 0 0 9px var(--cobalt),
        inset 0 0 0 11px rgba(255, 255, 255, 0.88),
        0 30px 40px -28px rgba(16, 21, 31, 0.8);
    text-align: center;
    color: #dfe6f7;
}

.close-call h2 {
    max-width: 18ch;
    color: #fff;
    font: 900 clamp(2.4rem, 5vw, 4.25rem)/0.95 var(--display);
    text-transform: uppercase;
    text-wrap: balance;
}

.close-call p { font-size: 1.15rem; }

.foot-band {
    margin-top: calc(var(--section-space) * -0.75);
    padding: calc(var(--section-space) * 0.75 + 3.5rem) 0 2rem;
    background: var(--iron);
    color: #b9c2d3;
}

.foot-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) repeat(2, minmax(0, 3fr));
    gap: 2.5rem;
}

.foot-brand { display: grid; gap: 1.1rem; justify-items: start; }
.foot-brand img { height: 34px; width: auto; }
.foot-brand span { color: #fff; font: 900 1.6rem/1 var(--display); }
.foot-brand p { max-width: 34ch; }

.socials { display: flex; gap: 0.6rem; }

.socials a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s;
}

.socials a:hover { background: var(--cobalt); }

.foot-col h3 {
    margin-bottom: 1rem;
    color: #fff;
    font: 800 1.1rem/1 var(--display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.foot-col ul { display: grid; gap: 0.6rem; padding: 0; list-style: none; }
.foot-col a { color: #b9c2d3; text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; }

.foot-legal {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.wa-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.2rem 0.75rem 0.95rem;
    border-radius: 999px;
    background: #157a42;
    box-shadow:
        inset 0 0 0 3px #157a42,
        inset 0 0 0 5px rgba(255, 255, 255, 0.85),
        0 14px 24px -12px rgba(16, 21, 31, 0.7);
    color: #fff;
    font: 800 1.05rem/1 var(--display);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
}

.wa-float i { font-size: 1.6rem; }
.wa-float:hover { background: #0f6334; color: #fff; box-shadow: inset 0 0 0 3px #0f6334, inset 0 0 0 5px rgba(255, 255, 255, 0.85), 0 14px 24px -12px rgba(16, 21, 31, 0.7); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .sign-copy, .faq-grid { grid-template-columns: minmax(0, 1fr); }
    .faq-head { position: static; }
    .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .foot-brand { grid-column: 1 / -1; }

    .feature-grid { grid-template-columns: minmax(0, 1fr); }
    .feature .feature-copy, .feature .tray,
    .feature--media-first .feature-copy, .feature--media-first .tray { grid-column: 1; grid-row: auto; }
    .feature .tray { order: -1; }
}

@media (max-width: 860px) {
    .nav-toggle { display: grid; place-items: center; }
    .nav-links { display: none; width: 100%; flex-direction: column; align-items: stretch; padding: 0.5rem 0.5rem 0.75rem; }
    .nav-links.is-open { display: flex; }
    .nav-links li:last-child { margin: 0.5rem 0 0; }
    .nav-links .btn-enamel { justify-content: center; width: 100%; }
}

@media (max-width: 560px) {
    :root { --rim: 5px; --plate-radius: 20px; }
    .wrap { width: min(100% - 1.5rem, 1240px); }
    .sign-title { font-size: clamp(2.6rem, 13vw, 3.4rem); }
    .points li { grid-template-columns: minmax(0, 1fr); }
    .btn-enamel { width: 100%; justify-content: center; }
    .foot-grid { grid-template-columns: minmax(0, 1fr); }
    .wa-float span { display: none; }
    .wa-float { padding: 0.85rem; }
}
