/* Portada (ES y EN) */

:root {
    --accent: #7F5B18;
    --accent-ink: #7A5716;
    --accent-strong: #6B4C13;
    --bg: #FAFAF8;
    --surface: #F4F2EE;
    --surface-2: #EDEAE4;
    --surface-3: #E4E0D8;
    --ink-3: #5C5448;
    --ink-2: #3D352A;
    --ink: #2A231A;
    --ink-strong: #1A1410;
    --line: rgba(127, 91, 24, 0.18);
    --font-brand: 'Cinzel', serif;
    --font-display: 'Cormorant Garamond', serif;
    --font-text: 'DM Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    font-size: 17px;
    background: var(--bg);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── LANG ── */
.lang {
    display: flex;
    gap: 0.4rem;
    margin-left: 1.5rem;
    flex-shrink: 0;
}

.lang a {
    text-decoration: none;
    display: inline-block;
    line-height: 1.5;
    background: none;
    border: 1px solid rgba(127, 91, 24, 0.35);
    color: var(--ink-2);
    padding: 0.2rem 0.55rem;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
    font-family: var(--font-text);
}

.lang a.on {
    border-color: var(--accent);
    color: var(--accent);
}

@media(hover:hover) and (pointer:fine) {
    .lang button:hover {
        border-color: var(--accent);
        color: var(--accent);
    }
}

/* ── NAV ── */
nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 999;
    padding: 0 2.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg);
    box-shadow: 0 8px 20px -16px rgba(26, 20, 16, 0.35);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
}

.nav-brand-text {
    font-family: var(--font-brand);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.18em;
}

.nav-brand-text span {
    color: var(--ink-3);
    font-weight: 400;
    font-size: 0.85em;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2.2rem;
}

nav ul a {
    text-decoration: none;
    color: var(--ink-3);
    font-size: 0.95rem;
    transition: color 0.25s;
}

@media(hover:hover) and (pointer:fine) {
    nav ul a:hover {
        color: var(--accent);
    }
}

nav ul a.nav-cta {
    display: inline-block;
    background: var(--accent);
    color: var(--bg);
    padding: 0.55rem 1.1rem;
}

@media(hover:hover) and (pointer:fine) {
    nav ul a.nav-cta:hover {
        background: var(--accent-ink);
        color: var(--bg);
    }
}

.nav-toggle {
    display: none;
}

/* ── HERO ── */
/* el primer pantallazo dice qué hace 3VIP; el lema queda como firma junto a la moneda */
#hero {
    padding: 64px 0 0;
}

.hero-sign {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: fadeUp 0.6s 0.3s cubic-bezier(0.23, 1, 0.32, 1) both;
    margin: 2.6rem 0 0;
}

.hero-sign img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
}

.hero-motto {
    font-family: var(--font-brand);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    color: var(--accent-ink);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.3vw, 2.75rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--ink-strong);
    text-wrap: balance;
    animation: fadeUp 0.6s 0.06s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.hero-title span {
    display: block;
}

.hero-desc {
    max-width: 34em;
    margin: 1.4rem 0 0;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--ink);
    text-wrap: pretty;
    animation: fadeUp 0.6s 0.12s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.hero-cta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 2.2rem;
    animation: fadeUp 0.6s 0.18s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.hero-note {
    margin-top: 1.2rem;
    font-size: 0.9rem;
    color: var(--ink-3);
    animation: fadeUp 0.6s 0.24s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    padding: 0.9rem 2.2rem;
    font-family: var(--font-text);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 1px solid var(--accent);
    transition: background-color 0.2s, border-color 0.2s, transform 0.16s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    display: inline-block;
}

@media(hover:hover) and (pointer:fine) {
    .btn-primary:hover {
        background: var(--accent-strong);
    }
}

.btn-secondary {
    background: none;
    color: var(--accent-ink);
    padding: 0.9rem 2.2rem;
    font-family: var(--font-text);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 1px solid rgba(127, 91, 24, 0.4);
    transition: background-color 0.2s, border-color 0.2s, transform 0.16s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    display: inline-block;
}

@media(hover:hover) and (pointer:fine) {
    .btn-secondary:hover {
        border-color: var(--accent);
        background: rgba(127, 91, 24, 0.04);
    }
}

/* ── SHARED SECTION STYLES ── */
section {
    padding: 7.5rem 2rem;
    position: relative;
}

.wrap {
    max-width: 1160px;
    margin: 0 auto;
}

.sec-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    font-weight: 600;
    color: var(--ink-strong);
    line-height: 1.1;
    margin-bottom: 1.6rem;
    letter-spacing: -0.01em;
}

.sec-title em {
    color: inherit;
    font-style: normal;
}

.sec-intro {
    font-family: var(--font-text);
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--ink-2);
    max-width: 680px;
}

/* ── SERVICES ── */
#services {
    background: var(--bg);
}

/* ── CLAIMS ── */
#claims {
    background: var(--surface);
}

.claims-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-top: 3rem;
}

.claim-box {
    padding: 1.8rem;
    margin-bottom: 1rem;
    background: var(--bg);
}

.claim-box-label {
    font-family: var(--font-text);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.claim-box-label.bad {
    color: #805050;
}

.claim-box-label.good {
    color: var(--accent);
}

.claim-box blockquote {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.65;
    color: var(--ink-2);
}

.claim-box.good-card {
    background: var(--surface-2);
}

.claim-note {
    font-family: var(--font-text);
    font-size: 0.875rem;
    color: var(--ink-3);
    margin-top: 0.6rem;
}

.claims-p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ink);
    margin-bottom: 1.2rem;
}

.claims-nota {
    font-size: 0.95rem;
    color: var(--ink-3);
}

.claims-p a {
    color: var(--accent-ink);
}

/* ── PRUEBA: las cifras van justo después del hero ── */
#prueba {
    background: var(--surface);
    padding: 3.5rem 2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-n {
    font-family: var(--font-brand);
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 700;
    color: var(--accent-ink);
    line-height: 1;
}

.stat-l {
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--ink-2);
    margin-top: 0.6rem;
}

.stats-nota {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--ink-3);
    max-width: 58ch;
    margin-top: 2rem;
}

/* ── CASOS ── */
#success {
    background: var(--bg);
}

.cases {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.6rem 4rem;
    margin-top: 3.5rem;
}

.case {
}

.case-tag {
    display: inline-block;
    font-family: var(--font-text);
    font-size: 0.875rem;
    color: var(--accent-ink);
    margin-bottom: 0.9rem;
    font-weight: 600;
}

.case-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink-strong);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.case-inst {
    font-family: var(--font-text);
    font-size: 0.875rem;
    color: var(--accent-ink);
    margin-bottom: 0.7rem;
}

.case-body {
    font-family: var(--font-text);
    font-size: 1rem;
    color: var(--ink-2);
    line-height: 1.7;
}

/* ── FOUNDER ── */
#founder {
    background: var(--bg);
}

.founder-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
}

.founder-card {
    position: sticky;
    top: 5rem;
}

.f-avatar {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.f-avatar img {
    flex: 1 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
    position: relative;
    z-index: 1;
}

.f-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--ink-strong);
    margin-top: 1rem;
    font-weight: 600;
}

.f-role {
    font-family: var(--font-text);
    font-size: 0.9rem;
    color: var(--accent-ink);
    margin-top: 0.3rem;
    font-weight: 500;
}

.f-bio h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--ink-strong);
    margin-bottom: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
}

.f-bio p {
    font-family: var(--font-text);
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--ink);
    margin-bottom: 1.2rem;
    max-width: 60ch;
}

/* ── CONTACT ── */
#contact {
    background: var(--bg);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: start;
}

.c-info h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--ink-strong);
    margin-bottom: 0.9rem;
    font-weight: 600;
}

.c-info p {
    font-family: var(--font-text);
    font-size: 1rem;
    color: var(--ink-2);
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.c-detail {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.85rem;
    font-family: var(--font-text);
    font-size: 1rem;
    color: var(--ink);
}

.c-detail .ico {
    color: var(--accent);
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.c-detail a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.25s;
}

@media(hover:hover) and (pointer:fine) {
    .c-detail a:hover {
        color: var(--accent);
    }
}

.c-nda {
    margin-top: 1.5rem;
    padding: 1rem 1.2rem;
    background: var(--surface);
}

.c-nda p {
    font-family: var(--font-text);
    font-size: 0.9rem;
    color: var(--ink-2);
    line-height: 1.6;
}

.c-nda strong {
    color: var(--accent-ink);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.fg {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fg label {
    font-family: var(--font-text);
    font-size: 0.9rem;
    color: var(--ink-2);
    font-weight: 500;
}

.fg input,
.fg textarea,
.fg select {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 0.85rem 1rem;
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 1rem;
    transition: border-color 0.25s;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.fg input:focus,
.fg textarea:focus,
.fg select:focus {
    border-color: var(--accent);
}

.fg select option {
    background: var(--surface);
}

.fg textarea {
    resize: vertical;
    min-height: 110px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.form-ok {
    display: none;
    text-align: center;
    padding: 2rem;
    background: var(--surface);
}

.form-ok h4 {
    font-family: var(--font-display);
    color: var(--accent);
    margin-bottom: 0.4rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-ok p {
    font-family: var(--font-text);
    font-size: 1rem;
    color: var(--ink-2);
}

.modal-box {
    background: var(--surface);
    max-width: 680px;
    width: 100%;
    max-height: 88vh;
    /* en el celular, 88vh contaba la barra del navegador oculta y el final quedaba fuera de vista */
    max-height: 88dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 2.8rem;
    position: relative;
}

/* la X sigue en el mismo lugar, pero el area para tocarla mide 44px */
.modal-close {
    position: absolute;
    top: calc(1rem - 13px);
    right: calc(1.2rem - 13px);
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--ink-3);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

@media(hover:hover) and (pointer:fine) {
    .modal-close:hover {
        color: var(--accent);
    }
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--ink-strong);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.modal-body p {
    font-family: var(--font-text);
    font-size: 0.97rem;
    color: var(--ink-2);
    line-height: 1.85;
}

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

.modal-body .foot-note {
    font-size: 0.875rem;
    color: var(--ink-3);
}

/* ── SERVICIOS: tres líneas ── */
.svc-lineas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.svc-linea {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    padding: 2.2rem 2rem;
}

.svc-linea-tit {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    line-height: 1.15;
    color: var(--ink-strong);
    margin-bottom: 1.4rem;
}

.svc-lista dt {
    font-weight: 600;
    color: var(--ink-strong);
}

.svc-lista dd {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-2);
    margin: 0.35rem 0 1.3rem;
}

.svc-enlaces {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-top: auto;
    padding-top: 0.6rem;
}

.svc-enlaces a,
.f-mas a,
.casos-mas a {
    color: var(--accent-ink);
    text-underline-offset: 3px;
}

@media(hover:hover) and (pointer:fine) {
    .svc-enlaces a:hover,
    .f-mas a:hover,
    .casos-mas a:hover {
        color: var(--ink-strong);
    }
}

.f-mas {
    margin-top: 1.4rem;
    font-weight: 500;
}

.casos-mas {
    margin-top: 2rem;
    font-weight: 500;
}

nav ul a.activo {
    color: var(--accent);
}

/* el aviso de privacidad es un <dialog> nativo */
.modal {
    border: none;
    padding: 0;
    margin: auto;
    background: transparent;
    width: calc(100% - 3rem);
    max-width: 680px;
}

.modal::backdrop {
    background: rgba(26, 20, 16, 0.72);
}

/* ── HERO: texto y dibujo de una patente concedida ── */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    gap: 0;
    align-items: stretch;
    min-height: calc(100svh - 64px);
}

.hero-fig {
    margin: 0;
    background: #fff;
    padding: 1.5rem 2.5rem 6.4rem;
    animation: fadeUp 0.7s 0.12s cubic-bezier(0.23, 1, 0.32, 1) both;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-fig img {
    display: block;
    width: auto;
    height: auto;
    max-height: calc(100svh - 64px - 7.9rem);
    object-fit: contain;
    max-width: 100%;
}

.hero-fig figcaption a {
    color: var(--accent-ink);
    white-space: nowrap;
}

/* ── DIBUJO: la figura del hero, explicada ── */
#dibujo {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.dibujo-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.dibujo-fig {
    margin: 0;
    background: #fff;
    padding: 1.5rem;
    position: sticky;
    top: 88px;
}

.dibujo-fig img {
    display: block;
    width: 100%;
    height: auto;
}

.leyenda {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 2rem;
    margin: 0.4rem 0 2.4rem;
    padding: 1.2rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.leyenda div {
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
}

.leyenda dt {
    font-family: var(--font-brand);
    font-weight: 600;
    color: var(--accent);
    min-width: 1.6rem;
}

.leyenda dd {
    font-size: 0.95rem;
    color: var(--ink-2);
    line-height: 1.5;
}

.dibujo-h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink-strong);
    margin-bottom: 0.9rem;
}

.senales {
    list-style: none;
    margin-bottom: 1.6rem;
}

.senales li {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    padding: 0.9rem 0;
    border-top: 1px solid var(--line);
}

.senales strong {
    color: var(--ink-strong);
}

@media(max-width:520px) {
    .leyenda {
        grid-template-columns: 1fr;
    }
}

.hero-fig figcaption,
.galeria figcaption {
    margin-top: 0.9rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ink-3);
}

.hero-texto {
    align-self: center;
    padding: 4rem clamp(2rem, 3vw, 3rem) 4rem max(2rem, calc((100vw - 1160px) / 2));
}

.hero-fig figcaption {
    position: absolute;
    left: 2.5rem;
    right: 6.5rem;
    bottom: 1rem;
    margin: 0;
}

@media(max-width:900px) {
    .hero-grid {
        min-height: 0;
    }

    .hero-texto {
        padding: 3rem 2rem 2.5rem;
    }

    .hero-fig {
        display: block;
        padding: 1.4rem 1.4rem 1.2rem;
        text-align: center;
    }

    .hero-fig figcaption {
        position: static;
        margin-top: 0.8rem;
        text-align: left;
    }
}

@media(max-width:700px) {
    .hero-texto {
        padding: 2.4rem 1.4rem 2rem;
    }
}

/* ── CALCULADORA ── */
#tasas {
    background: var(--surface);
}

.calc-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 4rem;
    align-items: start;
}

.calc-tabla {
    margin-top: 1.6rem;
    font-weight: 500;
}

.calc-tabla a {
    color: var(--accent-ink);
    text-underline-offset: 3px;
}

.calc {
    display: none;
    background: var(--bg);
    padding: 2.2rem;
}

.js .calc {
    display: grid;
    gap: 1.2rem;
}

.calc-op {
    display: none;
}

.calc-op.on {
    display: grid;
    gap: 1rem;
}

.calc-check {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--ink-2);
    cursor: pointer;
}

.calc-check input {
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    accent-color: var(--accent);
}

.calc-res {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.4rem 1.5rem;
    padding: 1.4rem 0 0.4rem;
}

.calc-l {
    font-size: 0.9rem;
    color: var(--ink-2);
}

.calc-n {
    font-family: var(--font-brand);
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    font-weight: 700;
    color: var(--accent-ink);
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.calc-nota {
    grid-column: 1 / -1;
    margin-top: 0.4rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ink-2);
}

.calc .btn-primary {
    justify-self: start;
}

.calc-fuente {
    font-size: 0.85rem;
    color: var(--ink-3);
}

/* ── TU SECCIÓN: cómo trabajo ── */
.f-puntos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem 2.4rem;
    margin-top: 2rem;
}

.f-puntos dt {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink-strong);
    line-height: 1.25;
}

.f-puntos dd {
    margin-top: 0.35rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--ink-2);
}

/* ── CASOS: dibujos de patentes concedidas y lista sin cajas ── */
.galeria {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2.4rem;
}

.galeria figure {
    margin: 0;
}

.galeria a {
    display: block;
    background: #fff;
    padding: 1rem;
    aspect-ratio: 4 / 3;
    transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}

.galeria img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.galeria figcaption strong {
    display: block;
    font-weight: 600;
    color: var(--ink-strong);
}

.case-tag {
    margin-bottom: 0.5rem;
}

@media(hover:hover) and (pointer:fine) {
    .galeria a:hover {
        transform: translateY(-3px);
    }
}

@media(max-width:900px) {
    .hero-grid,
    .calc-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
    }

    .hero-fig img {
        max-height: 52vh;
        margin: 0 auto;
    }

    .cases,
    .f-puntos {
        grid-template-columns: 1fr;
    }
}

@media(max-width:700px) {
    .galeria {
        grid-template-columns: 1fr;
    }

    .calc {
        padding: 1.6rem 1.2rem;
    }
}

/* la columna del formulario no crece con su contenido: un select o un monto largo
   se acomodan al ancho en vez de salirse de la tarjeta */
.js .calc {
    grid-template-columns: minmax(0, 1fr);
}

/* con 45 clases el monto llega a S/ 24,000.10 y en dos columnas no cabe en 320-420px */
@media(max-width:420px) {
    .calc-res {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ── ANIMATIONS ── */
/* cada bloque entra una sola vez; sus partes se escalonan 70 ms */
.js .reveal > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1), transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.js .reveal.on > * {
    opacity: 1;
    transform: none;
}

.js .reveal.on > :nth-child(2) {
    transition-delay: 70ms;
}

.js .reveal.on > :nth-child(3) {
    transition-delay: 140ms;
}

.js .reveal.on > :nth-child(n+4) {
    transition-delay: 210ms;
}

@media(max-width:900px) {
    .svc-lineas {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes menuIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
}


nav ul a {
    white-space: nowrap;
    font-size: 0.95rem;
}

@media(max-width:1250px) {
    nav {
        padding: 0 1.3rem;
    }

    nav ul {
        gap: 1.4rem;
    }
}

/* por debajo de 950px el menu se abre desde un boton */
@media(max-width:950px) {
    .lang {
        margin-left: auto;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        min-height: 44px;
        margin-left: 0.6rem;
        padding: 0 0.9rem;
        background: var(--surface-2);
        border: none;
        color: var(--ink);
        font-family: var(--font-text);
        font-size: 0.9rem;
        cursor: pointer;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.4rem 1.2rem 1.4rem;
        background: var(--bg);
        box-shadow: 0 14px 24px -14px rgba(26, 20, 16, 0.25);
    }

    nav.open ul {
        display: flex;
        animation: menuIn 0.18s cubic-bezier(0.23, 1, 0.32, 1);
    }

    nav ul a {
        display: block;
        padding: 0.85rem 0;
        font-size: 1.05rem;
    }

    nav ul a.nav-cta {
        display: block;
        margin-top: 0.6rem;
        padding: 0.9rem;
        text-align: center;
    }
}

@media(prefers-reduced-motion:reduce) {
    nav.open ul {
        animation: none;
    }
}

/* compactar el hero en moviles: el CTA principal debe verse sin desplazarse */
@media(max-width:700px) {
    #hero {
        padding: 64px 0 0;
    }

    .hero-sign {
        margin: 2rem 0 0;
    }

    .hero-sign img {
        width: 48px;
        height: 48px;
    }

    .hero-title {
        font-size: 1.65rem;
    }

    .hero-desc {
        font-size: 1.05rem;
        margin-top: 1.1rem;
    }

    #prueba {
        padding: 2.8rem 1.4rem;
    }

    .hero-cta {
        margin-top: 1.6rem;
        gap: 0.6rem;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-secondary {
        width: 100%;
    }
}

/* ── RESPONSIVE ── */
@media(max-width:900px) {
    .claims-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .dibujo-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .dibujo-fig {
        position: static;
        max-width: 420px;
    }

    .founder-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .founder-card {
        position: static;
    }
}

@media(max-width:768px) {
    nav {
        padding: 0 1.2rem;
    }

    section {
        padding: 4.5rem 1.4rem;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 1.8rem 1.2rem;
    }

    .wa-float {
        width: 50px;
        height: 50px;
        bottom: 14px;
        right: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

.wa-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    text-decoration: none;
}

.wa-float svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

/* en escritorio amplio el texto sube un 9%: el contenido rondaba los 13-15px,
   pequeño para un lector que evalua documentos tecnicos */
@media(min-width:1250px) {
    html {
        font-size: 17.5px;
    }
}
