/* RELENTLESS — relentless.es
   Tipografías autoalojadas (Archivo / Inter, SIL OFL). Rutas relativas a este archivo. */
@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/archivo-latin-700-normal.woff2) format('woff2')
}

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(../fonts/archivo-latin-800-normal.woff2) format('woff2')
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/inter-latin-400-normal.woff2) format('woff2')
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(../fonts/inter-latin-600-normal.woff2) format('woff2')
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/inter-latin-700-normal.woff2) format('woff2')
}

:root {
    --black: #0A0A0A;
    --soft: #141414;
    --line: #1F1F1F;
    --white: #F5F5F5;
    --pure: #FFFFFF;
    --muted: rgba(245, 245, 245, .62);
    --red: #E31B23;
    /* Rojo para TEXTO pequeño: mismo tono de marca ajustado para cumplir WCAG AA (4.5:1) */
    --red-on-dark: #EE3A41;
    --red-on-light: #C8161E;
    --ink: #0A0A0A;
    --paper: #F5F5F5;
    --ink-muted: rgba(10, 10, 10, .66);
    --ink-line: rgba(10, 10, 10, .14);
    --display: 'Archivo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --wrap: 1180px;
    --pad: clamp(20px, 5vw, 64px);
    --section: clamp(64px, 9vw, 128px);
    --nav-h: 76px;
    --ease: cubic-bezier(.16, 1, .3, 1)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%
}

html.menu-open {
    overflow: hidden
}

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: var(--body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden
}

h1,
h2,
h3,
h4 {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.03;
    margin: 0;
    overflow-wrap: break-word
}

p {
    margin: 0;
    line-height: 1.65
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit;
    cursor: pointer
}

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

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    background: var(--white);
    color: var(--black);
    padding: 12px 18px;
    font-weight: 600;
    border-radius: 2px
}

.skip-link:focus {
    top: 12px
}

.wrap {
    max-width: var(--wrap);
    margin: auto;
    padding-inline: var(--pad)
}

.section {
    padding-block: var(--section)
}

.on-black {
    background: var(--black);
    color: var(--white)
}

.on-paper {
    background: var(--paper);
    color: var(--ink)
}

.dim,
.on-black .dim {
    color: var(--muted)
}

.on-paper .dim {
    color: var(--ink-muted)
}

.lead-text {
    font-size: 1.1rem;
    max-width: 48ch
}

.spaced {
    margin-top: 18px
}

.more {
    margin-top: 28px
}

.eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--red-on-dark);
    margin: 0 0 14px
}

.on-paper .eyebrow {
    color: var(--red-on-light)
}

/* ---------- Botones y enlaces ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 14px 26px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 2px;
    border: 1px solid transparent;
    transition: background 240ms var(--ease), border-color 240ms var(--ease), color 240ms var(--ease);
    white-space: nowrap
}

.btn-primary {
    background: var(--white);
    color: var(--black)
}

.btn-red {
    background: var(--red);
    color: var(--pure)
}

.btn-outline-dark {
    border-color: rgba(245, 245, 245, .28);
    color: var(--white)
}

.btn-block {
    display: flex;
    width: 100%
}

@media (hover: hover) {
    .btn-primary:hover {
        background: var(--red);
        color: var(--pure)
    }

    .btn-red:hover {
        background: var(--white);
        color: var(--black)
    }

    .btn-outline-dark:hover {
        border-color: var(--white)
    }
}

.btn-link {
    display: inline-flex;
    padding: 0 0 2px;
    border-bottom: 1px solid currentColor;
    font-weight: 600;
    align-self: flex-start;
    transition: color 200ms var(--ease)
}

.text-link {
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-underline-offset: 3px;
    font-weight: 600
}

@media (hover: hover) {
    a.btn-link:hover,
    .text-link:hover {
        color: var(--red-on-dark)
    }

    .on-paper a.btn-link:hover,
    .on-paper .text-link:hover {
        color: var(--red-on-light)
    }
}

/* ---------- Cabecera ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 10, .92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line)
}

.navbar-inner {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.logo {
    display: inline-flex;
    padding: 6px 0
}

.logo-image {
    height: 24px;
    width: auto
}

.site-footer .logo-image {
    height: 28px
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 32px
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0
}

.nav-links a {
    display: inline-block;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 1px solid transparent;
    transition: color 200ms var(--ease)
}

.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current=page] {
    color: var(--white)
}

.nav-links a.active,
.nav-links a[aria-current=page] {
    border-bottom-color: var(--red)
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    color: var(--white);
    width: 48px;
    height: 48px;
    margin-right: -12px;
    padding: 0
}

.menu-btn span,
.menu-btn span:before,
.menu-btn span:after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    position: relative;
    margin: auto;
    transition: transform 200ms var(--ease), background 200ms var(--ease)
}

.menu-btn span:before {
    position: absolute;
    top: -7px
}

.menu-btn span:after {
    position: absolute;
    top: 7px
}

.menu-btn[aria-expanded=true] span {
    background: transparent
}

.menu-btn[aria-expanded=true] span:before {
    transform: translateY(7px) rotate(45deg)
}

.menu-btn[aria-expanded=true] span:after {
    transform: translateY(-7px) rotate(-45deg)
}

/* Menú móvil: oculto con visibility para que no sea enfocable ni lo lean los lectores de pantalla cerrado */
.mobile-menu {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0;
    background: var(--black);
    z-index: 49;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    padding: 24px var(--pad) 40px;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 0s linear 260ms
}

.mobile-menu.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 260ms var(--ease), transform 260ms var(--ease), visibility 0s
}

.mobile-links {
    list-style: none;
    margin: 0;
    padding: 0
}

.mobile-links a {
    display: block;
    padding: 16px 0;
    font-family: var(--display);
    font-size: clamp(24px, 7vw, 30px);
    font-weight: 800;
    color: var(--white);
    border-bottom: 1px solid var(--line)
}

.mobile-links a[aria-current=page],
.mobile-links a.active {
    color: var(--red-on-dark)
}

.mobile-menu .btn {
    font-size: 16px;
    min-height: 56px
}

/* ---------- Hero ---------- */
.hero {
    padding-block: clamp(72px, 12vw, 140px)
}

.hero-kicker {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--muted);
    margin-bottom: 24px
}

.hero-kicker .dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
    margin-right: 10px;
    vertical-align: middle
}

.hero h1 {
    font-size: clamp(2.5rem, 6.4vw, 5.4rem);
    max-width: 24ch
}

.accent {
    color: var(--red)
}

.hero-sub,
.page-hero .lead {
    margin-top: 28px;
    max-width: 52ch;
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--muted)
}

.hero-ctas {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap
}

.hero-rule {
    list-style: none;
    margin: 80px 0 0;
    padding: 28px 0 0;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 12px 40px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em
}

.hero-rule li {
    display: flex;
    align-items: center;
    min-height: 28px
}

.hero-rule a {
    display: inline-block;
    padding: 6px 0;
    transition: color 200ms var(--ease)
}

.hero-rule a:hover {
    color: var(--white)
}

.page-hero {
    padding-block: clamp(56px, 9vw, 104px) 56px
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    max-width: 18ch
}

/* ---------- Bloques ---------- */
.head {
    max-width: 640px
}

.head h2 {
    font-size: clamp(1.9rem, 4vw, 3.1rem)
}

.head-lead {
    max-width: 52ch;
    margin-top: 18px
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-top: 56px
}

.problem-list,
.feature-list,
.plain-list,
.steps,
.phase-list {
    list-style: none;
    margin: 0;
    padding: 0
}

.problem-list li {
    padding: 20px 0;
    border-top: 1px solid var(--ink-line);
    display: flex;
    gap: 16px
}

.problem-list li:last-child {
    border-bottom: 1px solid var(--ink-line)
}

.num,
.tag,
.n {
    color: var(--red-on-dark);
    font-weight: 800
}

.on-paper .num,
.on-paper .n {
    color: var(--red-on-light)
}

.proceso-phase,
.step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 24px;
    padding: 32px 0;
    border-bottom: 1px solid var(--ink-line)
}

.phase-list {
    border-top: 1px solid var(--ink-line)
}

.proceso-phase h2,
.step h3 {
    font-size: 1.4rem;
    margin-bottom: 8px
}

.steps {
    margin-top: 48px;
    border-top: 1px solid var(--line)
}

.step {
    border-bottom-color: var(--line)
}

.note {
    margin-top: 32px;
    max-width: 60ch
}

/* Tarjetas de servicio (oscuras, también sobre fondo claro) */
.services-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line)
}

.service-card {
    background: var(--black);
    color: var(--white);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 300px;
    transition: background 240ms var(--ease)
}

.service-card:hover {
    background: var(--soft)
}

.service-card h2,
.service-card h3 {
    font-size: 1.6rem
}

.service-card .card-claim {
    color: var(--white);
    font-weight: 600
}

.service-card .card-detail {
    color: var(--muted);
    flex-grow: 1
}

.service-card:hover .btn-link {
    color: var(--red-on-dark)
}

.extra-row {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid var(--ink-line);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px 40px;
    flex-wrap: wrap
}

.extra-row .btn-link {
    padding-block: 6px
}

.extra-row p {
    max-width: 62ch;
    color: var(--ink-muted)
}

.extra-row strong {
    color: var(--ink)
}

.plain-list li {
    padding: 20px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    line-height: 1.65
}

.plain-list li:last-child {
    border-bottom: 1px solid var(--line)
}

.plain-list strong {
    color: var(--white);
    font-weight: 600
}

.plain-list .text-link {
    color: var(--white);
    margin-left: 4px;
    white-space: nowrap
}

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 32px;
    margin-top: 32px
}

.feature-list.single {
    grid-template-columns: 1fr;
    margin-top: 24px
}

.feature-list li {
    padding: 14px 0 14px 24px;
    border-top: 1px solid var(--ink-line);
    position: relative;
    line-height: 1.5
}

.on-black .feature-list li {
    border-top-color: var(--line)
}

.feature-list li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 25px;
    width: 10px;
    height: 1px;
    background: var(--red)
}

.callout {
    border-left: 2px solid var(--red);
    padding: 20px 0 20px 24px;
    margin-top: 40px;
    max-width: 60ch
}

/* Contacto */
.alt-contact {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--ink-line);
    display: flex;
    gap: 24px 56px;
    flex-wrap: wrap
}

.alt-contact a {
    font-weight: 600;
    display: inline-block;
    padding: 4px 0;
    text-decoration: underline;
    text-decoration-color: var(--red);
    text-underline-offset: 3px
}

.alt-contact .eyebrow {
    margin-bottom: 6px
}

/* FAQ nativo (details/summary): accesible y funciona sin JavaScript */
.faq-item {
    border-top: 1px solid var(--ink-line)
}

.faq-item:last-child {
    border-bottom: 1px solid var(--ink-line)
}

.on-black .faq-item {
    border-color: var(--line)
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3
}

.faq-item summary::-webkit-details-marker {
    display: none
}

.plus {
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 200ms var(--ease)
}

.faq-item[open] .plus {
    transform: rotate(45deg);
    color: var(--red-on-light)
}

.faq-item p {
    padding-bottom: 22px;
    max-width: 60ch;
    color: var(--ink-muted)
}

/* CTA final */
.cta-final {
    border-top: 1px solid var(--line)
}

.cta-final h2 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    max-width: 18ch
}

.cta-final-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px 40px;
    flex-wrap: wrap;
    margin-top: 40px
}

.cta-text {
    max-width: 44ch;
    font-size: 1.05rem
}

/* ---------- Pie ---------- */
.site-footer {
    background: var(--black);
    border-top: 1px solid var(--line);
    padding: 64px 0 32px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px
}

.footer-claim {
    max-width: 32ch;
    margin-top: 16px;
    font-size: 14px
}

.footer-title {
    font: 700 13px var(--body);
    color: var(--muted);
    margin-bottom: 14px
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px
}

.footer-grid li {
    line-height: 1.5
}

.footer-grid ul a {
    display: inline-block;
    padding: 5px 0
}

.footer-grid ul a:hover,
.legal-links a:hover {
    color: var(--red-on-dark)
}

.footer-grid li.dim {
    padding: 5px 0
}

.footer-bottom {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    font-size: 13px;
    color: var(--muted)
}

.legal-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px
}

.legal-links a {
    display: inline-block;
    padding: 6px 0
}

/* ---------- Páginas legales ---------- */
.legal-body {
    max-width: 72ch;
    display: flex;
    flex-direction: column;
    gap: 18px
}

.legal-body h2 {
    font-size: 1.3rem;
    margin-top: 18px
}

.legal-body p,
.legal-body li {
    color: var(--ink-muted);
    line-height: 1.65
}

.legal-body ul {
    margin: 0;
    padding-left: 20px
}

.legal-body strong {
    color: var(--ink)
}

.legal-body .updated {
    margin-top: 24px;
    font-size: 14px
}

/* 404 */
.error-page {
    min-height: calc(100vh - var(--nav-h) - 200px);
    display: flex;
    align-items: center
}

.error-page .wrap {
    width: 100%
}

/* ---------- Animación de entrada (solo si hay JS; el contenido nunca queda oculto sin él) ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms var(--ease), transform 700ms var(--ease)
}

.js .reveal.in {
    opacity: 1;
    transform: none
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .nav-desktop {
        display: none
    }

    .menu-btn {
        display: block
    }

    .mobile-menu {
        display: flex
    }

    .services-grid {
        grid-template-columns: 1fr
    }

    .service-card {
        min-height: 0;
        padding: 32px 28px
    }
}

@media (max-width: 800px) {
    .two-col,
    .problem-grid {
        grid-template-columns: 1fr;
        gap: 32px
    }

    .problem-grid {
        margin-top: 40px
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media (max-width: 760px) {
    .feature-list {
        grid-template-columns: 1fr
    }

    .hero-rule {
        margin-top: 56px;
        gap: 8px 24px
    }
}

@media (max-width: 640px) {
    .proceso-phase,
    .step {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 28px 0
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start
    }

    .hero-ctas .btn,
    .cta-final-row .btn {
        width: 100%
    }

    .cta-final-row {
        gap: 24px
    }
}

@media (max-width: 360px) {
    .btn {
        white-space: normal;
        text-align: center
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important
    }

    .js .reveal {
        opacity: 1;
        transform: none
    }
}

/* Aviso bajo los botones de WhatsApp */
.wa-note {
    margin-top: 14px;
    font-size: 13px;
    color: var(--muted)
}

.on-paper .wa-note {
    color: var(--ink-muted)
}

/* FAQ sobre fondo oscuro */
.on-black .faq-item p {
    color: var(--muted)
}

.on-black .faq-item[open] .plus {
    color: var(--red-on-dark)
}
