:root {
    --ink: #14110e;
    --ink-2: #1c1814;
    --ivory: #f6f1e8;
    --paper: #f7f3ec;
    --gold: #e4d0b0;
    --gold-deep: #b8956c;
    --ruby: #8d3140;
    --muted: #5e574e;
    --muted-light: #d7d0c6;
    --line: rgba(20, 17, 14, 0.14);
    --serif: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: Outfit, "Segoe UI", sans-serif;
    --header: 4.5rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--ivory);
    font-family: var(--sans);
    font-size: 1.0625rem;
    font-weight: 300;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom));
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p,
blockquote {
    margin: 0;
}

h1,
h2,
h3,
blockquote {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

::selection {
    background: var(--ruby);
    color: var(--ivory);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 80;
    background: var(--gold);
    color: var(--ink);
    padding: 0.75rem 1rem;
    border-radius: 999px;
}

.skip:focus {
    top: 1rem;
}

.wrap {
    width: min(1120px, calc(100% - 2.5rem));
    margin-inline: auto;
}

#reparacion,
#mayor,
#encargar,
#contacto {
    scroll-margin-top: calc(var(--header) + 0.75rem);
}

.kicker {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1.1rem;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.kicker-ink {
    color: var(--ruby);
}

.kicker-gem {
    width: 0.55rem;
    height: 0.55rem;
    background: var(--ruby);
    transform: rotate(45deg);
    flex: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: var(--header);
    padding: 0.75rem 1.25rem;
    background:
        linear-gradient(180deg, rgba(14, 11, 10, 0.86), rgba(14, 11, 10, 0.92)),
        url("/assets/images/cita-terciopelo.jpg") center / cover no-repeat;
    border-bottom: 1px solid rgba(228, 208, 176, 0.16);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--ivory);
    font-family: var(--serif);
    font-size: 1.65rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
}

.mark {
    width: 1.55rem;
    height: 1.55rem;
    flex: none;
}

.site-nav {
    display: none;
    gap: 1.4rem;
    margin-left: 0.5rem;
}

.site-nav a {
    color: var(--muted-light);
    font-size: 0.92rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-nav a:hover {
    color: var(--ivory);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3.25rem;
    padding: 0.7rem 1.3rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.btn svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: none;
}

.btn-small {
    min-height: 2.75rem;
    padding: 0.45rem 1rem;
    font-size: 0.92rem;
}

.btn-gold {
    background: var(--gold);
    color: #1a140f;
}

.btn-gold:hover {
    background: #f3e6d2;
}

.btn-ghost {
    border-color: rgba(246, 241, 232, 0.35);
    color: var(--ivory);
    background: transparent;
}

.btn-ghost:hover {
    background: rgba(246, 241, 232, 0.08);
}

.hero {
    display: grid;
    min-height: calc(100vh - var(--header) - 4.75rem);
    min-height: calc(100svh - var(--header) - 4.75rem);
    grid-template-rows: minmax(0, 1fr) auto auto;
    background: url("/assets/images/hero-atelier.jpg") center / cover no-repeat;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
    padding: 1.5rem 1.25rem 1.15rem;
    background:
        linear-gradient(180deg, rgba(16, 13, 11, 0.76) 0%, rgba(16, 13, 11, 0.5) 52%, rgba(16, 13, 11, 0.2) 100%),
        url("/assets/images/hero-atelier.jpg") 62% center / cover no-repeat;
}

h1 {
    max-width: 11ch;
    font-family: var(--serif);
    font-size: clamp(2.65rem, 10vw, 6.4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 0.9;
}

h1 span {
    display: block;
}

.h1-em {
    margin-top: 0.15em;
    color: var(--gold);
    font-style: italic;
    font-weight: 500;
}

.lead,
.prose {
    max-width: 38rem;
    margin-top: 1.4rem;
    font-size: 1.12rem;
    line-height: 1.65;
}

.lead {
    color: var(--muted-light);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.8rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    margin-top: 1.25rem;
    color: var(--muted-light);
    font-size: 0.98rem;
}

.hero-meta a {
    color: var(--ivory);
    text-underline-offset: 0.22em;
}

.panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
    padding: 1rem 1.15rem 0.9rem;
    overflow: hidden;
    text-decoration: none;
}

.panel-repair {
    background:
        linear-gradient(180deg, rgba(16, 12, 14, 0.02) 0%, rgba(16, 12, 14, 0.16) 48%, rgba(16, 12, 14, 0.88) 100%),
        url("/assets/images/taller-oro.jpg") center 42% / cover no-repeat;
    color: var(--ivory);
}

.panel-trade {
    background:
        linear-gradient(180deg, rgba(246, 241, 232, 0.05) 0%, rgba(246, 241, 232, 0.28) 46%, rgba(246, 241, 232, 0.9) 100%),
        url("/assets/images/mayor-lino.jpg") center 38% / cover no-repeat;
    color: var(--ink);
}

.panel-index {
    margin-right: 0.45rem;
    font-family: var(--serif);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
}

.panel-kicker {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.panel-repair .panel-kicker {
    color: var(--gold);
}

.panel-trade .panel-kicker {
    color: var(--ruby);
}

.panel strong {
    display: block;
    max-width: 12ch;
    margin-top: 0.35rem;
    font-family: var(--serif);
    font-size: clamp(1.85rem, 4vw, 3.15rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

.panel-text {
    max-width: 28rem;
    margin-top: 0.35rem;
    font-size: 1.02rem;
    line-height: 1.5;
}

.panel-repair .panel-text {
    color: var(--muted-light);
}

.panel-trade .panel-text {
    color: var(--muted);
}

.panel-more {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    margin-top: 0.45rem;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.panel-more::after {
    content: "→";
    margin-left: 0.55rem;
}

@media (max-width: 959px) {
    .hero {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
    }

    .hero-copy {
        grid-column: 1 / -1;
    }

    .hero-copy .lead {
        margin-top: 0.85rem;
        font-size: 1.02rem;
    }

    .hero-actions {
        margin-top: 1rem;
    }

    .panel {
        min-height: 8.5rem;
        padding: 0.85rem 0.8rem 0.75rem;
    }

    .panel strong {
        font-size: 1.55rem;
    }

    .panel-text,
    .panel-more {
        display: none;
    }
}

.band {
    color: var(--ink);
    padding: 4.5rem 0;
    background-color: var(--paper);
    background-repeat: no-repeat;
    background-size: cover;
}

#reparacion {
    background-image:
        linear-gradient(100deg, rgba(247, 243, 236, 0.94) 0%, rgba(247, 243, 236, 0.88) 56%, rgba(247, 243, 236, 0.62) 100%),
        url("/assets/images/taller-oro.jpg");
    background-position: center, right center;
}

#mayor {
    background-image:
        linear-gradient(100deg, rgba(247, 243, 236, 0.94) 0%, rgba(247, 243, 236, 0.86) 50%, rgba(247, 243, 236, 0.55) 100%),
        url("/assets/images/mayor-lino.jpg");
    background-position: center, center 42%;
}

#encargar {
    background-image:
        linear-gradient(100deg, rgba(247, 243, 236, 0.94) 0%, rgba(247, 243, 236, 0.88) 52%, rgba(247, 243, 236, 0.6) 100%),
        url("/assets/images/papel-marfil.jpg");
    background-position: center, center 40%;
}

.band-actions {
    margin-top: 1.6rem;
}

.split {
    display: grid;
    gap: 2.5rem;
}

h2 {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 6vw, 4.6rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 0.92;
}

.prose {
    color: var(--muted);
}

.prose-light {
    color: var(--muted-light);
}

.work-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.work-list li {
    display: grid;
    grid-template-columns: 3rem 1fr;
    column-gap: 0.85rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
}

.work-list li:last-child {
    border-bottom: 1px solid var(--line);
}

.work-list li::before {
    content: counter(item, decimal-leading-zero);
    counter-increment: item;
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-top: 0.15rem;
    color: var(--ruby);
    font-family: var(--serif);
    font-size: 1.35rem;
}

.work-list {
    counter-reset: item;
}

.work-list h3,
.work-list p {
    grid-column: 2;
}

.work-list h3 {
    font-family: var(--serif);
    font-size: clamp(1.55rem, 2vw, 1.9rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.work-list p {
    margin-top: 0.3rem;
    color: var(--muted);
}

.quote-band {
    background:
        linear-gradient(105deg, rgba(12, 10, 9, 0.68) 0%, rgba(12, 10, 9, 0.38) 56%, rgba(72, 18, 28, 0.22) 100%),
        url("/assets/images/cita-terciopelo.jpg") center 62% / cover no-repeat;
    padding: 5.5rem 0;
}

blockquote p {
    max-width: 16ch;
    font-family: var(--serif);
    font-size: clamp(2.3rem, 5.5vw, 4rem);
    font-style: italic;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.02;
}

.quote-by {
    margin-top: 1.4rem;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.contact {
    background:
        linear-gradient(180deg, rgba(16, 13, 11, 0.72) 0%, rgba(16, 13, 11, 0.58) 100%),
        url("/assets/images/hero-atelier.jpg") 72% 40% / cover no-repeat;
    padding: 5.5rem 0 6rem;
}

.contact-grid {
    display: grid;
    gap: 2.5rem;
}

.form,
.field,
.choices {
    display: grid;
    gap: 0.45rem;
}

.form {
    gap: 1.05rem;
}

.field-row {
    display: grid;
    gap: 1.05rem;
}

.form label,
.choices legend {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.choices {
    border: 0;
    margin: 0;
    padding: 0;
    min-inline-size: 0;
}

.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.form .choice {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.35rem 0.95rem;
    border: 1px solid rgba(228, 208, 176, 0.28);
    border-radius: 999px;
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.98rem;
    font-weight: 400;
    color: var(--ivory);
    cursor: pointer;
}

.choice input {
    width: 1.05rem;
    height: 1.05rem;
    min-height: 0;
    accent-color: var(--ruby);
}

.choice:has(input:checked) {
    border-color: var(--gold);
    background: rgba(228, 208, 176, 0.12);
}

.form input:not([type="radio"]),
.form textarea {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(228, 208, 176, 0.28);
    border-radius: 0.75rem;
    background: rgba(16, 13, 11, 0.72);
    color: var(--ivory);
    font: inherit;
    font-weight: 400;
}

.form textarea {
    min-height: 9rem;
    resize: vertical;
}

.form input:not([type="radio"])::placeholder,
.form textarea::placeholder {
    color: rgba(215, 208, 198, 0.55);
}

.form input:not([type="radio"]):focus-visible,
.form textarea:focus-visible,
.choice input:focus-visible,
.prefix-trigger:focus-visible,
.prefix-search:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.phone-line {
    display: grid;
    grid-template-columns: minmax(10.5rem, 0.95fr) minmax(0, 1.2fr);
    gap: 0.65rem;
    align-items: start;
}

.prefix {
    position: relative;
    min-width: 0;
}

.prefix-native {
    width: 100%;
}

.prefix.is-ready .prefix-native {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    pointer-events: none;
}

.prefix-ui {
    display: none;
}

.prefix.is-ready .prefix-ui {
    display: block;
}

.prefix-trigger {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 3.25rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(228, 208, 176, 0.28);
    border-radius: 0.75rem;
    background: rgba(16, 13, 11, 0.72);
    color: var(--ivory);
    font: inherit;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    text-align: left;
    cursor: pointer;
}

.prefix-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prefix-code {
    flex: none;
    color: var(--gold);
}

.prefix-trigger::after {
    content: "";
    width: 0.42rem;
    height: 0.42rem;
    margin-left: auto;
    border-right: 1.5px solid var(--gold);
    border-bottom: 1.5px solid var(--gold);
    transform: translateY(-0.12rem) rotate(45deg);
    flex: none;
}

.flag {
    width: 1.35rem;
    height: 0.9rem;
    flex: none;
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(246, 241, 232, 0.35);
    background: rgba(246, 241, 232, 0.08);
}

.prefix-panel {
    position: absolute;
    z-index: 40;
    top: calc(100% + 0.35rem);
    left: 0;
    width: min(22rem, calc(100vw - 2.5rem));
    padding: 0.45rem;
    border: 1px solid rgba(228, 208, 176, 0.28);
    border-radius: 0.85rem;
    background: rgba(18, 15, 13, 0.98);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.prefix-panel.is-up {
    top: auto;
    bottom: calc(100% + 0.35rem);
}

.prefix-search {
    min-height: 2.75rem;
    margin-bottom: 0.35rem;
}

.prefix-list {
    max-height: 16rem;
    margin: 0;
    padding: 0;
    overflow: auto;
    list-style: none;
}

.prefix-option[hidden],
.prefix-empty[hidden],
.prefix-panel[hidden] {
    display: none;
}

.prefix-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 2.75rem;
    padding: 0.35rem 0.55rem;
    border-radius: 0.55rem;
    color: var(--ivory);
    cursor: pointer;
}

.prefix-option span:nth-child(2) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.prefix-dial {
    margin-left: auto;
    color: var(--gold);
    flex: none;
}

.prefix-option.is-active,
.prefix-option[aria-selected="true"] {
    background: rgba(228, 208, 176, 0.14);
}

.prefix-empty {
    margin: 0.35rem 0.55rem 0.55rem;
    color: var(--muted-light);
}

.field-error,
.form-alert {
    color: #f3d4d8;
    font-size: 0.95rem;
}

.form-alert {
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(243, 212, 216, 0.45);
    border-radius: 0.75rem;
}

.form-success h3 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 0.95;
}

.form-success p {
    max-width: 34rem;
    margin: 0.9rem 0 1.4rem;
    color: var(--muted-light);
}

.form .btn {
    justify-self: start;
    min-width: 12rem;
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.marcas {
    background: transparent;
    padding: 1.4rem 0 2.2rem;
}

.marcas-fila {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.4rem 2.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
}

.marcas-fila li {
    background: transparent;
}

.marcas-fila img {
    display: block;
    height: 2.7rem;
    width: auto;
    max-width: 8.5rem;
    object-fit: contain;
    background: transparent;
}

.site-footer {
    background:
        linear-gradient(180deg, rgba(14, 11, 10, 0.78), rgba(14, 11, 10, 0.9)),
        url("/assets/images/cita-terciopelo.jpg") center 78% / cover no-repeat;
    color: var(--muted-light);
    border-top: 1px solid rgba(228, 208, 176, 0.16);
    padding: 3rem 0 2.5rem;
    font-size: 0.98rem;
}

.footer-grid {
    display: grid;
    gap: 1.5rem;
}

.footer-brand {
    color: var(--ivory);
    font-family: var(--serif);
    font-size: 2rem;
    line-height: 1;
}

.site-footer nav {
    display: grid;
    gap: 0.55rem;
}

.site-footer a {
    text-underline-offset: 0.2em;
}

.legal {
    color: #b7aea3;
}

.credit {
    margin: 0.45rem 0 0;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
}

.credit a {
    color: #8a8178;
    text-decoration: none;
}

.credit a:hover {
    color: var(--gold);
}

.dock {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.55rem;
    padding-bottom: calc(0.55rem + env(safe-area-inset-bottom));
    background:
        linear-gradient(180deg, rgba(14, 11, 10, 0.9), rgba(14, 11, 10, 0.94)),
        url("/assets/images/cita-terciopelo.jpg") center / cover no-repeat;
    border-top: 1px solid rgba(228, 208, 176, 0.2);
}

.dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    border-radius: 999px;
    background: var(--gold);
    color: #1a140f;
    font-weight: 500;
    text-decoration: none;
}

@media (hover: hover) {
    .panel {
        transition: transform 0.35s ease;
    }

    .panel:hover .panel-more {
        letter-spacing: 0.09em;
    }

    .panel-repair:hover {
        background:
            linear-gradient(180deg, rgba(16, 12, 14, 0) 0%, rgba(16, 12, 14, 0.08) 48%, rgba(16, 12, 14, 0.8) 100%),
            url("/assets/images/taller-oro.jpg") center 42% / cover no-repeat;
    }

    .panel-trade:hover {
        background:
            linear-gradient(180deg, rgba(246, 241, 232, 0) 0%, rgba(246, 241, 232, 0.16) 46%, rgba(246, 241, 232, 0.86) 100%),
            url("/assets/images/mayor-lino.jpg") center 38% / cover no-repeat;
    }
}

@media (min-width: 700px) {
    .field-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 760px) {
    .site-nav {
        display: flex;
    }

    .hero-copy,
    .site-header {
        padding-left: 4vw;
        padding-right: 4vw;
    }

    .panel {
        padding: 1.25rem 1.6rem 1.15rem;
    }
}

@media (min-width: 960px) {
    body {
        padding-bottom: 0;
    }

    .dock {
        display: none;
    }

    .hero {
        grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
        grid-template-rows: 1fr 1fr;
        min-height: calc(100vh - var(--header));
        min-height: calc(100svh - var(--header));
    }

    .hero-copy {
        grid-row: 1 / span 2;
        min-height: 0;
        padding-top: clamp(2.5rem, 6vw, 5rem);
        padding-bottom: clamp(2.5rem, 6vw, 5rem);
    }

    .panel {
        padding: 1.5rem 2rem 1.35rem;
    }

    .panel-text {
        display: block;
    }

    .panel-more {
        display: inline-flex;
    }

    .panel strong {
        font-size: clamp(1.85rem, 4vw, 3.15rem);
    }

    .split,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 0.8fr 1.2fr;
        gap: 4rem;
        align-items: start;
    }

    .footer-grid {
        grid-template-columns: 1.1fr 1fr 1fr;
        align-items: end;
    }

    .split h2 {
        position: sticky;
        top: calc(var(--header) + 1.5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .panel,
    .panel-more {
        transition: none;
    }
}
