/* Azenza — estilos de la web. Sin estilos en línea: la CSP no los permite. */

@font-face {
    font-family: "Urbanist";
    src: url("/assets/fonts/urbanist-variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Urbanist";
    src: url("/assets/fonts/urbanist-italic-variable.woff2") format("woff2");
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --negro: #0a0a0a;
    --blanco: #ffffff;
    --blanco-logo: #f8f9fa;
    --teal: #003333; /* Solo sobre fondos claros: sobre negro no se ve. */

    --texto: #0a0a0a;
    --texto-suave: #3e4444;
    --texto-tenue: #5a6060;
    --linea: #e6e8e8;
    --linea-input: #cfd3d3;
    --fondo-gris: #f5f6f6;
    --error: #b00020;

    --oscuro-linea: #2e3333;
    --oscuro-texto: #d6d9d9;
    --oscuro-texto-2: #c4c8c8;
    --oscuro-tenue: #a9aeae;

    --ancho: 1200px;
    --gutter: 20px;
}

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

html {
    scroll-padding-top: 72px;
    -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    background: var(--blanco);
    color: var(--texto);
    font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--teal);
}
a:hover {
    color: var(--negro);
}

h1,
h2,
h3,
p,
ul,
figure {
    margin: 0;
}
ul {
    padding: 0;
    list-style: none;
}

input,
textarea,
select,
button {
    font-family: inherit;
}

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

.dark :focus-visible,
.site-footer :focus-visible {
    outline-color: var(--blanco);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Campo trampa anti-spam: fuera de pantalla, no display:none (algunos bots lo detectan). */
.hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--negro);
    color: var(--blanco);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus {
    top: 12px;
    color: var(--blanco);
}

.container {
    max-width: var(--ancho);
    margin: 0 auto;
}

/* ── Botones ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--primary {
    background: var(--teal);
    color: var(--blanco);
}
.btn--primary:hover {
    background: var(--negro);
    color: var(--blanco);
}
.btn--outline {
    border-color: var(--negro);
    color: var(--negro);
    font-weight: 600;
}
.btn--outline:hover {
    background: var(--negro);
    color: var(--blanco);
}
.btn--light {
    background: var(--blanco);
    color: var(--negro);
}
.btn--light:hover {
    background: var(--oscuro-texto);
    color: var(--negro);
}
.btn--sm {
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
}
.btn--block {
    width: 100%;
    height: 54px;
    margin-top: 4px;
}
.btn[disabled] {
    opacity: 0.65;
    cursor: progress;
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--linea);
}
.header-bar {
    max-width: var(--ancho);
    height: 64px;
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: flex;
    align-items: center;
}
.brand img {
    height: 26px;
    width: auto;
}
.nav-desktop {
    display: none;
    align-items: center;
    gap: 32px;
    font-size: 15px;
    font-weight: 500;
}
.nav-desktop a,
.nav-mobile a {
    color: var(--negro);
    text-decoration: none;
}
.nav-desktop a:hover {
    color: var(--teal);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wa-short {
    display: none;
}
.menu-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--linea);
    border-radius: 999px;
    background: var(--blanco);
    cursor: pointer;
}
.menu-toggle span {
    display: block;
    width: 2px;
    height: 16px;
    background: var(--negro);
}
.nav-mobile {
    display: flex;
    flex-direction: column;
    padding: 8px var(--gutter) 16px;
    border-top: 1px solid var(--linea);
    background: var(--blanco);
    font-size: 18px;
    font-weight: 600;
}
.nav-mobile[hidden] {
    display: none;
}
.nav-mobile a {
    padding: 14px 0;
    border-bottom: 1px solid #f0f1f1;
}
.nav-mobile a:last-child {
    border-bottom: 0;
}

@media (min-width: 860px) {
    .nav-desktop {
        display: flex;
    }
    .menu-toggle,
    .nav-mobile {
        display: none;
    }
}
@media (max-width: 419px) {
    .wa-long {
        display: none;
    }
    .wa-short {
        display: inline;
    }
}

/* ── Secciones ───────────────────────────────────────────── */
.section {
    padding: 72px var(--gutter);
}
.section--tint {
    background: var(--fondo-gris);
}
.section--tall {
    padding-top: 80px;
    padding-bottom: 80px;
}
.dark {
    background: var(--negro);
    color: var(--blanco);
}

.eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
}
.dark .eyebrow {
    color: var(--blanco);
    opacity: 0.9;
}

.h2 {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.015em;
    text-wrap: balance;
}
.lead {
    font-size: 17px;
    line-height: 1.55;
    color: var(--texto-suave);
    text-wrap: pretty;
}
.head-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 640px;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    padding: 56px var(--gutter) 72px;
}
.hero-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}
.hero-copy {
    flex: 1 1 440px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hero-photo {
    flex: 1 1 380px;
    min-width: 0;
    max-width: 520px;
}
.hero-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 600px;
    object-fit: cover;
    border-radius: 20px;
    background: var(--fondo-gris);
}
.hero h1 {
    font-size: clamp(34px, 5.4vw, 60px);
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.hero-sub {
    max-width: 600px;
    font-size: clamp(17px, 1.6vw, 20px);
    line-height: 1.5;
    color: var(--texto-suave);
    text-wrap: pretty;
}
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Dolores ─────────────────────────────────────────────── */
.stack-40 {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 40px;
}
.pain-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.pain-title {
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--teal);
    font-size: 15px;
    font-weight: 600;
    color: var(--teal);
}
.pain-card {
    padding: 20px 22px;
    background: var(--blanco);
    border: 1px solid var(--linea);
    border-radius: 14px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    text-wrap: pretty;
}

/* ── Diagnóstico ─────────────────────────────────────────── */
.split {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: flex-start;
}
.split > * {
    min-width: 0;
}
.diag-copy {
    flex: 1 1 440px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.diag-copy h2 {
    font-size: clamp(30px, 4.4vw, 50px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.diag-copy p {
    max-width: 520px;
    text-wrap: pretty;
}
.diag-desc {
    font-size: 18px;
    line-height: 1.55;
    color: var(--oscuro-texto);
}
.diag-key {
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.3;
    font-weight: 700;
}
.diag-copy .btn {
    align-self: flex-start;
    margin-top: 6px;
}
.verdicts {
    flex: 1 1 360px;
    border-top: 1px solid var(--oscuro-linea);
}
.verdicts-title {
    padding: 18px 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--oscuro-tenue);
}
.verdict {
    display: flex;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--oscuro-linea);
}
.verdict-n {
    min-width: 24px;
    padding-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--oscuro-tenue);
}
.verdict h3 {
    margin-bottom: 6px;
    font-size: 22px;
    font-weight: 700;
}
.verdict p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--oscuro-texto-2);
}

/* ── Cómo trabajamos ─────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 20px;
}
.step {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 22px;
    border-top: 2px solid var(--teal);
}
.step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.step-n {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--teal);
}
.step-time {
    padding: 5px 12px;
    border: 1px solid var(--teal);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
}
.step h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}
.step p {
    font-size: 17px;
    line-height: 1.5;
    color: var(--texto-suave);
    text-wrap: pretty;
}
.note {
    padding: 20px 22px;
    background: var(--fondo-gris);
    border-radius: 14px;
    font-size: 17px;
    line-height: 1.5;
    color: var(--texto-suave);
}
.note a {
    font-weight: 600;
}

/* ── Operación propia (Dupes) ────────────────────────────── */
.own {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 56px;
    align-items: center;
}
.own > * {
    min-width: 0;
}
.own-copy {
    flex: 1 1 420px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.own-facts {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 6px;
}
.own-facts li {
    padding-left: 18px;
    position: relative;
    font-size: 18px;
    font-weight: 600;
}
.own-facts li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 2px;
    background: var(--teal);
}
.own-figure {
    flex: 0 1 380px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.own-figure img {
    width: 100%;
    border-radius: 14px;
}
.own-figure figcaption {
    font-size: 14px;
    font-weight: 500;
    color: var(--texto-tenue);
}

/* ── Equipo ──────────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 28px;
}
.member {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.member img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 16px;
    background: var(--fondo-gris);
}
.member h3 {
    margin-bottom: 4px;
    font-size: 22px;
    font-weight: 700;
}
.member p {
    font-size: 15px;
    font-weight: 600;
    color: var(--teal);
}

/* ── Contacto ────────────────────────────────────────────── */
.contact-copy {
    flex: 1 1 340px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-copy .lead {
    max-width: 420px;
}
.contact-copy .btn {
    align-self: flex-start;
}
.form-card {
    flex: 1.4 1 460px;
    padding: clamp(20px, 3vw, 36px);
    background: var(--blanco);
    border: 1px solid var(--linea);
    border-radius: 20px;
}
.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form[hidden] {
    display: none;
}
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 18px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    min-width: 0;
}
.field[hidden] {
    display: none;
}
.opt {
    font-weight: 400;
    color: var(--texto-tenue);
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--linea-input);
    border-radius: 10px;
    background: var(--blanco);
    color: var(--negro);
    font-size: 16px; /* 16px evita el zoom automático en iOS */
    font-weight: 400;
}
.field input:not([type="checkbox"]):not([type="radio"]),
.field select {
    height: 48px;
    padding: 0 14px;
}
.field textarea {
    padding: 12px 14px;
    resize: vertical;
    min-height: 110px;
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
    border-color: var(--teal);
}
.field [aria-invalid="true"] {
    border-color: var(--error);
}
.field-error {
    min-height: 0;
    font-size: 13px;
    font-weight: 500;
    color: var(--error);
}
.field-error:empty {
    display: none;
}

fieldset.field {
    margin: 0;
    padding: 0;
    border: 0;
}
fieldset.field legend {
    padding: 0;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}
.choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.choice {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--linea-input);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
}
.choice input,
.consent input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--teal);
}
.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--texto-suave);
    cursor: pointer;
}
.consent input {
    margin-top: 1px;
    flex-shrink: 0;
}
.consent a {
    font-weight: 600;
}

.form-alert {
    padding: 14px 16px;
    border: 1px solid var(--error);
    border-radius: 12px;
    background: #fdf2f4;
    font-size: 15px;
    line-height: 1.45;
    color: #5f0013;
}
.form-alert[hidden] {
    display: none;
}
.form-alert a {
    color: #5f0013;
    font-weight: 700;
}

.form-done {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 40px 0;
}
.form-done[hidden] {
    display: none;
}
.form-done img {
    width: 40px;
    height: 40px;
}
.form-done h3 {
    font-size: 26px;
    font-weight: 800;
}
.form-done p {
    font-size: 17px;
    line-height: 1.5;
    color: var(--texto-suave);
}
.link-btn {
    align-self: flex-start;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--teal);
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    padding: 56px var(--gutter) 32px;
    background: var(--negro);
    color: var(--blanco-logo);
}
.footer-top {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    align-items: flex-start;
}
.footer-top img {
    width: 44px;
    height: 44px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 32px;
    font-size: 16px;
    font-weight: 500;
}
.site-footer a {
    color: var(--blanco-logo);
    text-decoration: none;
}
.site-footer a:hover {
    color: var(--oscuro-tenue);
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--oscuro-linea);
    font-size: 14px;
    color: var(--oscuro-tenue);
}
.site-footer .footer-bottom a {
    color: var(--oscuro-tenue);
    text-decoration: underline;
}
.site-footer .footer-bottom a:hover {
    color: var(--blanco-logo);
}

/* ── Botón flotante de WhatsApp (solo mobile) ────────────── */
.wa-float {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    padding: 0 20px 0 16px;
    border-radius: 999px;
    background: var(--teal);
    color: var(--blanco);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.wa-float:hover {
    background: var(--negro);
    color: var(--blanco);
}
.wa-float svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@media (min-width: 860px) {
    .wa-float {
        display: none;
    }
}
@media (max-width: 859px) {
    .site-footer {
        padding-bottom: 96px; /* que el botón flotante no tape el pie */
    }
}

/* ── Página de privacidad y 404 ──────────────────────────── */
.doc {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px var(--gutter) 80px;
}
.doc h1 {
    margin-bottom: 8px;
    font-size: clamp(30px, 4.4vw, 44px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.015em;
}
.doc h2 {
    margin: 36px 0 10px;
    font-size: 22px;
    font-weight: 700;
}
.doc p,
.doc li {
    font-size: 17px;
    line-height: 1.6;
    color: var(--texto-suave);
}
.doc p + p {
    margin-top: 12px;
}
.doc ul {
    margin: 10px 0 0;
    padding-left: 22px;
    list-style: disc;
}
.doc li + li {
    margin-top: 6px;
}
.doc .meta {
    font-size: 15px;
    color: var(--texto-tenue);
}
.doc .back {
    display: inline-block;
    margin-bottom: 28px;
    font-weight: 600;
}
.page-404 {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    align-items: flex-start;
}
