/* ==== BUTTONS ==== */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border: 1px solid var(--lv1);
    border-radius: var(--rd1);
    background: transparent;
    color: var(--hw4);
    font-family: var(--ff2);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    cursor: pointer;
}

.btn-ghost:hover {
    color: var(--lv0);
    text-decoration: none;
}

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--lv0);
    font-weight: 500;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp2) var(--sp3);
    margin-top: var(--sp3);
}

/* ==== CHIPS ==== */
.fact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: var(--sp3);
    list-style: none;
}

.fact-chips li {
    padding: 6px 14px;
    border: 1px solid var(--hw6);
    border-radius: var(--rd1);
    background: var(--hw2);
    color: var(--hw4);
    font-size: 0.95rem;
}

/* ==== HERO ==== */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding-top: var(--sp4);
    padding-bottom: var(--sp4);
    background: radial-gradient(ellipse 60% 70% at 78% 30%, var(--hw3) 0%, var(--hw1) 70%);
}

.hero-copy {
    grid-column: 2;
    grid-row: 1;
    max-width: 620px;
    padding-left: 56px;
    padding-right: 24px;
}

.hero-copy h1 {
    font-size: clamp(2rem, 1.3rem + 2.1vw, 3rem);
}

.hero-copy .lead {
    margin-top: var(--sp3);
    color: var(--hw5);
}

.hero-photo {
    grid-column: 1;
    grid-row: 1;
    height: clamp(320px, 58vh, 600px);
    overflow: hidden;
    border-right: 1px solid var(--lv1);
}

.hero-photo > .duo {
    height: 106%;
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==== PHOTOS ==== */
.duo {
    position: relative;
    margin: 0;
    background: var(--hw1);
}

.duo img {
    filter: grayscale(1) contrast(1.08) brightness(0.92);
}

.duo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: color-mix(in oklch, var(--lv1) 55%, var(--hw4));
    mix-blend-mode: multiply;
    pointer-events: none;
}

.photo-cap {
    margin-top: 12px;
    color: var(--hw5);
    font-size: 0.95rem;
}

.fig-plain {
    margin: 0;
}

/* ==== OFFSET CARDS ==== */
.offset-set {
    isolation: isolate;
}

.offset-card {
    position: relative;
    padding: var(--sp3);
    border: 1px solid var(--hw6);
    border-radius: var(--rd1);
    background: var(--hw2);
}

.offset-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid var(--lv1);
    border-radius: var(--rd1);
    transform: translate(var(--of1), var(--of1));
}

.offset-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.offset-card h2 {
    margin-bottom: var(--sp2);
    font-size: 1.55rem;
}

.offset-card address {
    font-style: normal;
}

.spec-list + .spec-table {
    margin-top: var(--sp3);
}

.offset-card p:last-child {
    margin-bottom: 0;
}

/* ==== CITA ==== */
.cita-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: var(--sp4);
    align-items: start;
}

.faq-list {
    border: 1px solid var(--hw6);
    border-radius: var(--rd1);
    background: var(--hw1);
}

.faq-item {
    border-bottom: 1px solid var(--hw6);
}

.faq-item:last-child {
    border-bottom: 0;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp2);
    min-height: 60px;
    padding: 14px 24px;
    font-family: var(--ff1);
    font-size: 1.15rem;
    cursor: pointer;
    list-style: none;
}

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

.faq-item summary::after {
    content: '+';
    flex: none;
    color: var(--lv0);
    font-family: var(--ff2);
    font-size: 1.6rem;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: '\2212';
}

.faq-item.open summary {
    color: var(--lv0);
}

.faq-body {
    padding: 0 24px 20px;
    color: var(--hw5);
}

.faq-body p {
    margin: 0;
}

.spec-card {
    margin-top: var(--sp4);
}

.spec-list {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px var(--sp2);
    margin: 0;
}

.spec-list dt {
    color: var(--hw5);
}

.spec-list dd {
    margin: 0;
}

/* ==== STEPS ==== */
.step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sp3);
    list-style: none;
}

.step-grid li:nth-child(2) {
    margin-top: 48px;
}

.step-grid li:nth-child(3) {
    margin-top: 96px;
}

.step-grid li:nth-child(4) {
    margin-top: 144px;
}

.step-num {
    display: block;
    margin-bottom: var(--sp2);
    color: var(--hw5);
    font-family: var(--ff1);
    font-size: 2.6rem;
    line-height: 1;
}

/* ==== GALLERY ==== */
.coleccion-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--sp4);
    align-items: center;
    margin-bottom: var(--sp4);
}

.coleccion-top .band-head {
    margin-bottom: 0;
}

.lane {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, calc((100% - 2 * var(--sp3)) / 3));
    gap: var(--sp3);
    padding-right: var(--of1);
    padding-bottom: calc(var(--of1) + 18px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--hw6) transparent;
    list-style: none;
}

.lane-card {
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

.lane-art {
    display: grid;
    place-items: center;
    height: 190px;
    margin-bottom: var(--sp2);
    border-bottom: 1px solid var(--hw6);
    color: var(--hw5);
}

.lane-art svg {
    height: 170px;
}

.lane-tag {
    margin-bottom: 6px;
    color: var(--hw5);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lane-price {
    margin-top: auto;
    padding-top: var(--sp2);
    font-family: var(--ff1);
    font-size: 1.2rem;
}

.lane-nav {
    display: none;
    gap: 12px;
    margin-top: var(--sp3);
}

.js-on .lane-nav {
    display: flex;
}

.lane-btn {
    width: 48px;
    padding: 0;
    font-size: 1.3rem;
}

.lane-btn:disabled {
    border-color: var(--hw6);
    color: var(--hw5);
    cursor: default;
}

/* ==== TALLER ==== */
.taller-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: var(--sp4);
    align-items: center;
    margin-bottom: var(--sp4);
}

.taller-photo {
    max-width: 520px;
}

.case-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--sp3);
    list-style: none;
}

.case-steps {
    margin: 0;
}

.case-steps dt {
    margin-top: 12px;
    color: var(--hw5);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.case-steps dd {
    margin: 2px 0 0;
}

/* ==== CTA BAND ==== */
.cta-band {
    padding-top: var(--sp5);
    padding-bottom: var(--sp5);
    background: var(--hw3);
    border-top: 1px solid var(--lv1);
    border-bottom: 1px solid var(--lv1);
}

.cta-band h2 {
    max-width: 780px;
    font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
}

.cta-band p {
    max-width: 680px;
    margin-top: var(--sp2);
}

/* ==== MENU ==== */
.menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 48px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--hw6);
    border-radius: var(--rd1);
    background: transparent;
    color: var(--hw4);
    font-family: var(--ff2);
    font-size: 1rem;
    cursor: pointer;
}

.js-on .menu-button {
    display: inline-flex;
}

.menu-lines {
    position: relative;
    width: 20px;
    height: 2px;
    background: currentColor;
}

.menu-lines::before,
.menu-lines::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
}

.menu-lines::before {
    top: -6px;
}

.menu-lines::after {
    top: 6px;
}

.menu-button.open .menu-lines {
    background: transparent;
}

.menu-button.open .menu-lines::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-button.open .menu-lines::after {
    top: 0;
    transform: rotate(-45deg);
}

.menu-panel {
    padding-bottom: var(--sp2);
}

.menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--sp3);
    list-style: none;
}

.menu-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--hw4);
    text-decoration: none;
}

.menu-list a:hover {
    color: var(--lv0);
}

.menu-note {
    display: none;
}

.js-on .menu-panel {
    position: fixed;
    top: var(--hd1);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 210;
    padding-top: var(--sp4);
    padding-bottom: var(--sp4);
    overflow-y: auto;
    background: var(--hw1);
    border-top: 1px solid var(--hw6);
    visibility: hidden;
}

.js-on .menu-panel.open {
    visibility: visible;
}

.js-on .menu-list {
    display: grid;
    gap: 6px;
    max-width: 720px;
    counter-reset: menu;
}

.js-on .menu-list a {
    gap: 18px;
    font-family: var(--ff1);
    font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem);
}

.js-on .menu-list a::before {
    counter-increment: menu;
    content: '0' counter(menu);
    color: var(--hw5);
    font-family: var(--ff2);
    font-size: 0.9rem;
}

.js-on .menu-note {
    display: block;
    max-width: 720px;
    margin-top: var(--sp4);
    padding-top: var(--sp3);
    border-top: 1px solid var(--hw6);
    color: var(--hw5);
}

/* ==== CONSENT ==== */
.consent-tray {
    position: fixed;
    bottom: 16px;
    left: 16px;
    z-index: 150;
    display: none;
    width: min(360px, calc(100% - 32px));
    padding: 16px 18px;
    border: 1px solid var(--lv1);
    border-radius: var(--rd1);
    background: var(--hw2);
}

.consent-tray.shown {
    display: block;
}

.tray-text {
    margin: 0 0 12px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tray-actions {
    display: flex;
    gap: 10px;
}

.tray-actions .btn-ghost {
    flex: 1;
    min-height: 44px;
    padding: 0 12px;
}

/* ==== FORM ==== */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
        'notes form'
        'notes data';
    gap: var(--sp4) var(--sp4);
    align-items: start;
}

.form-card {
    grid-area: form;
}

.notes-card {
    grid-area: notes;
}

.data-card {
    grid-area: data;
}

.notes-list {
    display: grid;
    gap: 12px;
    padding-left: 20px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.field input,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--hw6);
    border-radius: var(--rd1);
    background: var(--hw1);
    color: var(--hw4);
    font-family: var(--ff2);
    font-size: 1rem;
}

.field textarea {
    min-height: 120px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--lv1);
    outline: none;
}

.field-error {
    margin: 6px 0 0;
    color: var(--hw4);
    font-size: 0.95rem;
}

.field-error::before {
    content: '\2192\00a0';
    color: var(--lv0);
}

.check-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-height: 44px;
    font-size: 1rem;
}

.check-row input {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 3px 0 0;
    accent-color: var(--lv1);
}

.form-status {
    margin: var(--sp2) 0 0;
}

.form-after {
    margin: var(--sp3) 0 0;
    padding-top: var(--sp2);
    border-top: 1px solid var(--hw6);
    font-size: 1rem;
}

/* ==== TABLES ==== */
.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table caption {
    margin-bottom: 12px;
    color: var(--hw5);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-align: left;
    text-transform: uppercase;
}

.spec-table th,
.spec-table td {
    padding: 12px 14px 12px 0;
    border-bottom: 1px solid var(--hw6);
    text-align: left;
    vertical-align: top;
}

.spec-table th {
    color: var(--hw5);
    font-weight: 400;
}

.pair-table td {
    overflow-wrap: anywhere;
}

.table-gap {
    margin-top: var(--sp3);
}

/* ==== LEGAL ==== */
.legal-layout {
    display: grid;
    grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
    gap: var(--sp4);
    align-items: start;
}

.toc-card {
    position: sticky;
    top: calc(var(--hd1) + var(--sp3));
    padding: var(--sp3) 24px;
    border: 1px solid var(--hw6);
    border-radius: var(--rd1);
    background: var(--hw2);
}

.toc-card ol {
    display: grid;
    gap: 2px;
    list-style: none;
}

.toc-card a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.legal-body section {
    margin-bottom: 48px;
}

.legal-body section:last-child {
    margin-bottom: 0;
}

.legal-body h2 {
    margin-bottom: var(--sp2);
    font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.8rem);
}

.card-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp3);
    list-style: none;
}

.reset-row {
    display: none;
    margin-top: var(--sp3);
}

.js-on .reset-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp2);
}

.revision {
    margin-top: var(--sp4);
    color: var(--hw5);
    font-size: 0.95rem;
}

/* ==== SERVICE PAGES ==== */
.next-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp3);
    margin-bottom: var(--sp4);
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1100px) {
    .step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step-grid li:nth-child(n) {
        margin-top: 0;
    }

    .step-grid li:nth-child(even) {
        margin-top: 48px;
    }

    .case-list {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 0;
    }

    .hero-copy {
        grid-column: 1;
        grid-row: 1;
        max-width: none;
        padding: 48px 20px 40px;
    }

    .hero-photo {
        grid-column: 1;
        grid-row: 2;
        height: clamp(260px, 50vh, 460px);
        border-right: 0;
        border-top: 1px solid var(--lv1);
    }

    .cita-grid,
    .coleccion-top,
    .taller-grid,
    .legal-layout,
    .next-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            'form'
            'notes'
            'data';
    }

    .toc-card {
        position: static;
    }
}

@media (max-width: 700px) {
    .lane {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: minmax(0, 1fr);
        overflow-x: visible;
        padding-bottom: var(--of1);
    }

    .js-on .lane-nav {
        display: none;
    }

    .step-grid,
    .card-pair {
        grid-template-columns: minmax(0, 1fr);
    }

    .step-grid li:nth-child(even) {
        margin-top: 0;
    }

    .offset-card {
        padding: 24px 20px;
    }

    .consent-tray {
        bottom: 10px;
        left: 10px;
        width: calc(100% - 20px);
        padding: 12px 14px;
    }

    .tray-text {
        font-size: 0.9rem;
    }

    .field textarea {
        min-height: 96px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lane {
        scroll-behavior: auto;
    }
}
