/* =========================================================
   LLAVE MAESTRA CERRAJERÍA — Hoja de estilos
   Paleta tomada del logo: negro, oro y plata.
   ========================================================= */
:root {
    --black: #000000;
    --carbon: #141414;
    --graphite: #1E1E1E;
    --gold: #EDB928;
    --gold-deep: #B07A12;
    --brass: #F7DA7E;
    --silver: #DADDE1;
    --steel: #8E949C;
    --paper: #ECEDEF;
    --white: #FFFFFF;
    --ink: #121212;
    --wa: #25D366;
    --wa-deep: #128C4A;

    --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --wide: 125%;
    --narrow: 85%;

    --wrap: 1240px;
    --gutter: clamp(1.1rem, 4vw, 2.5rem);
    --header-h: 76px;
    --radius-lg: 28px;
    --radius: 14px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
    line-height: 1.6;
    color: var(--white);
    background: var(--black);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip {
    position: absolute; left: 1rem; top: -60px; z-index: 200;
    background: var(--gold); color: var(--black); padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
    text-decoration: none; transition: top .2s;
}
.skip:focus { top: 1rem; }

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

/* ---------- Botones ---------- */
.btn {
    --bg: var(--gold); --fg: var(--black);
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    min-height: 48px; padding: .75rem 1.35rem;
    border: 1.5px solid transparent; border-radius: 999px;
    background: var(--bg); color: var(--fg);
    font-weight: 700; font-size: .98rem; text-decoration: none; white-space: nowrap;
    cursor: pointer; transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold { --bg: var(--gold); --fg: var(--black); }
.btn--gold:hover { --bg: var(--brass); }
.btn--wa { --bg: var(--wa); --fg: #04210f; }
.btn--wa:hover { --bg: #3BE07A; box-shadow: 0 10px 28px -10px rgba(37, 211, 102, .7); }
.btn--line { --bg: transparent; --fg: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn--line:hover { border-color: var(--gold); --fg: var(--gold); }
.btn--dark { --bg: var(--ink); --fg: var(--white); }
.btn--dark:hover { --bg: #2a2a2a; }
.btn--sm { min-height: 42px; padding: .55rem 1.05rem; font-size: .92rem; }
.btn--lg { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

.chip {
    display: inline-flex; align-items: center; min-height: 42px; padding: .5rem 1rem;
    border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .28); background: transparent;
    color: var(--white); font-weight: 600; font-size: .92rem; cursor: pointer;
    transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--gold); color: var(--gold); }
.chip--gold { background: var(--gold); border-color: var(--gold); color: var(--black); }
.chip--gold:hover { background: var(--brass); border-color: var(--brass); color: var(--black); }
.chip:disabled { opacity: .45; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto; z-index: 100;
    padding-top: env(safe-area-inset-top, 0px);
    transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-solid {
    background: rgba(0, 0, 0, .86);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 1px 0 rgba(237, 185, 40, .25);
}
.site-header__in { height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; }
.brand__mark { width: 40px; height: auto; transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-stretch: var(--wide); font-weight: 900; font-size: 1.12rem; letter-spacing: -.01em; text-transform: uppercase; }
.brand__llave { color: var(--silver); }
.brand__maestra { color: var(--gold); }
.brand__sub { margin-top: 4px; font-size: .62rem; letter-spacing: .5em; color: var(--silver); text-transform: uppercase; padding-left: 2px; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(.9rem, 1.6vw, 1.8rem); }
.nav__list a {
    position: relative; text-decoration: none; font-weight: 500; font-size: .95rem; color: rgba(255, 255, 255, .82);
    padding: .4rem 0; transition: color .2s;
}
.nav__list a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold);
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list a:hover, .nav__list a.is-active { color: var(--white); }
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.nav__mobile-extra { display: none; }

.site-header__actions { display: flex; align-items: center; gap: .7rem; }
.burger { display: none; width: 46px; height: 46px; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: calc(var(--header-h) + clamp(2rem, 6vw, 4.5rem)) 0 clamp(2rem, 4vw, 3rem);
    background: var(--black);
}
.hero__glow {
    position: absolute; width: 900px; height: 900px; right: -260px; top: -200px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(237, 185, 40, .16), transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }

.hero__place { display: inline-flex; align-items: center; gap: .45rem; color: var(--silver); font-size: .95rem; margin-bottom: 1.4rem; }
.hero__place svg { width: 18px; height: 18px; color: var(--gold); }
.hero__title {
    font-stretch: var(--wide); font-weight: 850; letter-spacing: -.025em;
    font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.2rem); line-height: 1.02;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 48%, var(--silver) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    max-width: 15ch;
}
.hero__lead { margin-top: 1.5rem; max-width: 46ch; color: rgba(255, 255, 255, .78); font-size: clamp(1.02rem, .98rem + .3vw, 1.18rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

/* Cilindro */
.cyl { margin: 0; }
.cyl__stage {
    position: relative; border-radius: var(--radius-lg); padding: clamp(.8rem, 2vw, 1.4rem);
    background: linear-gradient(160deg, #181818, #050505 60%);
    border: 1px solid rgba(237, 185, 40, .22);
    box-shadow: 0 40px 80px -40px rgba(237, 185, 40, .25), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.cyl__svg { width: 100%; height: auto; overflow: visible; }
.cyl__shear { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 8 7; opacity: .55; transition: opacity .3s, stroke-width .3s, filter .3s; }
.cyl__legend { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .35rem; font-size: .85rem; font-weight: 600; color: var(--gold); }
.cyl__legend i { width: 26px; height: 0; border-top: 2px dashed var(--gold); }
.cyl__spring { fill: none; stroke: #6f757d; stroke-width: 2.2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.cyl__driver, .cyl__keypin { transition: filter .3s; }
.cyl__blade { stroke: #8a5b06; stroke-width: 2; stroke-linejoin: round; }

.cyl.is-aligned .cyl__shear { opacity: 1; stroke-width: 4; stroke-dasharray: none; filter: drop-shadow(0 0 8px rgba(237, 185, 40, .9)); }
.cyl.is-open .cyl__plug { filter: brightness(1.25) drop-shadow(0 0 14px rgba(237, 185, 40, .6)); }
.cyl.is-jammed .cyl__stack.is-blocking .cyl__driver,
.cyl.is-jammed .cyl__stack.is-blocking .cyl__keypin { filter: drop-shadow(0 0 6px rgba(255, 255, 255, .95)) brightness(1.15); }

.cyl__front {
    position: absolute; right: clamp(.8rem, 2vw, 1.4rem); top: clamp(.8rem, 2vw, 1.4rem);
    display: flex; align-items: center; gap: .65rem;
}
.cyl__dial { width: clamp(46px, 7vw, 64px); aspect-ratio: 1; transition: transform .1s linear; }
.cyl__dial svg { width: 100%; height: 100%; }
.cyl__state {
    font-weight: 700; font-size: .85rem; padding: .3rem .7rem; border-radius: 999px;
    background: rgba(255, 255, 255, .08); color: var(--silver); border: 1px solid rgba(255, 255, 255, .15);
    transition: background-color .3s, color .3s, border-color .3s;
}
.cyl.is-open .cyl__state { background: var(--gold); color: var(--black); border-color: var(--gold); }
.cyl.is-jammed .cyl__dial { animation: jam .5s var(--ease); }
@keyframes jam { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(12deg); } 50% { transform: rotate(-7deg); } 75% { transform: rotate(4deg); } }

.cyl__caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.cyl__info { flex: 1 1 260px; }
.cyl__status { color: rgba(255, 255, 255, .72); font-size: .95rem; max-width: 52ch; min-height: 3em; }
.cyl__buttons { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Fila de íconos (como en el logo) */
.badges {
    display: grid; grid-template-columns: repeat(5, 1fr);
    margin-top: clamp(2.5rem, 6vw, 4.5rem); padding-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.badges li {
    display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center;
    padding: .2rem .8rem; font-weight: 600; font-size: .9rem; letter-spacing: .02em; color: var(--silver);
}
.badges li + li { border-left: 1px solid rgba(255, 255, 255, .16); }
.badges svg { width: 34px; height: 34px; color: var(--gold); }

/* ---------- Encabezados de sección ---------- */
.sec-head { max-width: 680px; margin: 0 auto clamp(2rem, 4vw, 3.2rem); text-align: center; }
.sec-head--left { margin-left: 0; text-align: left; }
.sec-title { font-stretch: var(--wide); font-weight: 850; letter-spacing: -.02em; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); }
.sec-lead { margin-top: .9rem; font-size: clamp(1rem, .96rem + .25vw, 1.12rem); color: rgba(255, 255, 255, .7); }

/* ---------- Servicios ---------- */
.services { background: var(--paper); color: var(--ink); padding: clamp(4rem, 8vw, 7rem) 0; }
.services .sec-lead { color: #4a4f56; }
.services__box {
    display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem);
    background: var(--white); border-radius: var(--radius-lg); padding: clamp(1rem, 2.5vw, 2rem);
    box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .35);
}
.services__tabs { display: flex; flex-direction: column; gap: .3rem; }
.services__tab {
    position: relative; text-align: left; border: 0; background: transparent; cursor: pointer;
    padding: .95rem 1rem .95rem 1.3rem; border-radius: 12px; font-weight: 600; font-size: 1.02rem; color: #3b3f45;
    transition: background-color .2s, color .2s;
}
.services__tab::before {
    content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 4px; border-radius: 4px;
    background: var(--gold); transform: scaleY(0); transition: transform .3s var(--ease);
}
.services__tab:hover { background: #F4F5F6; color: var(--ink); }
.services__tab[aria-selected="true"] { background: var(--ink); color: var(--white); }
.services__tab[aria-selected="true"]::before { transform: scaleY(1); }

.services__panel { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.2rem, 3vw, 2.6rem); align-items: center; }
.services__panel[hidden] { display: none; }
.services__panel:not([hidden]) { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.services__media { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--black); }
.services__media img { width: 100%; height: 100%; object-fit: cover; }
.services__car { width: 100%; height: 100%; display: grid; place-items: center; padding: 12%; background: radial-gradient(circle at 50% 40%, #222, #000 70%); }
.services__car svg { width: 100%; height: 100%; }
.services__title { font-stretch: var(--wide); font-weight: 800; font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.2rem); letter-spacing: -.015em; margin-bottom: 1rem; }
.services__body > p { color: #3b3f45; max-width: 50ch; }
.services__points { margin: 1.4rem 0 1.8rem; display: grid; gap: .7rem; }
.services__points li { position: relative; padding-left: 1.9rem; color: var(--ink); font-weight: 500; }
.services__points li::before {
    content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%;
    background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.services__cta { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Proceso ---------- */
.process { padding: clamp(4rem, 8vw, 7rem) 0; background: linear-gradient(180deg, #000 0%, #0f0f0f 100%); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.6rem); counter-reset: s; position: relative; }
.steps::before {
    content: ""; position: absolute; left: 6%; right: 6%; top: 30px; height: 2px;
    background: linear-gradient(90deg, var(--gold), rgba(237, 185, 40, .15));
}
.step { position: relative; padding-top: 0; }
.step__n {
    position: relative; z-index: 1; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
    background: var(--black); border: 2px solid var(--gold); color: var(--gold);
    font-stretch: var(--wide); font-weight: 900; font-size: 1.5rem; margin-bottom: 1.3rem;
}
.step h3 { font-stretch: 110%; font-weight: 750; font-size: 1.22rem; margin-bottom: .5rem; }
.step p { color: rgba(255, 255, 255, .7); font-size: .98rem; max-width: 32ch; }

/* ---------- Galería ---------- */
.works { padding: clamp(4rem, 8vw, 7rem) 0; background: #0f0f0f; overflow: hidden; }
.works__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.5rem, 3vw, 2.4rem); }
.works__head .sec-head { margin-bottom: 0; }
.works__nav { display: flex; gap: .5rem; flex: none; }
.round-btn {
    width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .25); background: transparent;
    display: grid; place-items: center; cursor: pointer; color: var(--white); transition: border-color .2s, color .2s, background-color .2s;
}
.round-btn svg { width: 22px; height: 22px; }
.round-btn:hover { border-color: var(--gold); color: var(--black); background: var(--gold); }

.strip {
    display: grid; grid-auto-flow: column; grid-auto-columns: clamp(220px, 24vw, 300px); gap: clamp(.8rem, 1.6vw, 1.3rem);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
    padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 1rem;
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
    scrollbar-width: thin; scrollbar-color: var(--gold) transparent;
}
.strip__item { scroll-snap-align: start; }
.strip__btn {
    display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; border-radius: 20px; overflow: hidden;
    aspect-ratio: 3 / 4.4; background: #1b1b1b; position: relative;
}
.strip__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.strip__btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: box-shadow .3s; }
.strip__btn:hover img { transform: scale(1.05); }
.strip__btn:hover::after { box-shadow: inset 0 0 0 2px var(--gold); }
.strip__cap { margin-top: .75rem; font-weight: 600; color: var(--silver); font-size: .95rem; }

/* ---------- Cobertura ---------- */
.coverage { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--black); }
.coverage__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.districts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.8rem; }
.districts li { padding: .45rem .95rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); font-size: .93rem; color: var(--silver); }
.districts li:first-child { border-color: var(--gold); background: var(--gold); color: var(--black); font-weight: 700; }
.coverage__note { margin-top: 1.5rem; color: rgba(255, 255, 255, .7); }
.coverage__note a { color: var(--gold); font-weight: 600; text-underline-offset: 3px; }
.coverage__map { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid rgba(237, 185, 40, .25); background: #111; }
.coverage__map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) sepia(.15); }

/* ---------- FAQ ---------- */
.faq { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--paper); color: var(--ink); }
.faq .sec-lead { color: #4a4f56; }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.faq__list { display: grid; gap: .7rem; }
.qa { background: var(--white); border-radius: 16px; border: 1px solid #DCDEE2; transition: border-color .2s, box-shadow .2s; }
.qa[open] { border-color: var(--gold); box-shadow: 0 16px 36px -26px rgba(0, 0, 0, .4); }
.qa summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    padding: 1.15rem 1.3rem; font-weight: 700; font-size: 1.04rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
    content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23EDB928' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 60% no-repeat;
    transition: transform .3s var(--ease);
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa__a { padding: 0 1.3rem 1.25rem; color: #3b3f45; max-width: 62ch; }

/* ---------- Contacto ---------- */
.contact {
    position: relative; padding: clamp(4rem, 8vw, 7rem) 0; overflow: hidden;
    background: radial-gradient(900px 500px at 10% 0%, rgba(237, 185, 40, .16), transparent 60%), var(--black);
}
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.contact__title {
    font-stretch: var(--wide); font-weight: 900; letter-spacing: -.03em; line-height: .95;
    font-size: clamp(2.8rem, 1.5rem + 5.5vw, 6rem); color: var(--gold);
}
.contact__lead { margin-top: 1.2rem; font-size: 1.12rem; color: rgba(255, 255, 255, .78); max-width: 40ch; }
.contact__direct { margin-top: 2.2rem; display: grid; gap: .3rem; }
.contact__line {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 0; text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.contact__line svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.contact__line span { display: flex; flex-direction: column; font-weight: 700; font-size: 1.15rem; }
.contact__line small { font-weight: 500; font-size: .85rem; color: var(--steel); }
a.contact__line:hover span { color: var(--gold); }

.wa-form { background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1rem; box-shadow: 0 40px 80px -40px rgba(237, 185, 40, .35); }
.wa-form__title { font-stretch: 110%; font-weight: 800; font-size: 1.4rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field label span { font-weight: 400; color: #6b7078; }
.field input, .field select, .field textarea {
    width: 100%; min-height: 50px; padding: .75rem .95rem; border-radius: 12px; border: 1.5px solid #D3D6DB; background: #FAFAFB;
    transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 4px rgba(237, 185, 40, .25); }
.field input[aria-invalid="true"] { border-color: #C0392B; }
.wa-form__error { color: #B3261E; font-weight: 600; font-size: .92rem; }

/* ---------- Footer ---------- */
.site-footer { background: #0b0b0b; border-top: 1px solid rgba(237, 185, 40, .3); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr; gap: clamp(2rem, 4vw, 4rem); padding-bottom: 3rem; }
.site-footer__brand img { width: 230px; margin-bottom: 1.2rem; }
.site-footer__brand p { color: rgba(255, 255, 255, .65); max-width: 36ch; font-size: .97rem; }
.site-footer__h { font-stretch: 110%; font-weight: 800; font-size: 1.05rem; margin-bottom: 1.2rem; color: var(--gold); }
.site-footer__list { display: grid; gap: .6rem; }
.site-footer__list a { text-decoration: none; color: rgba(255, 255, 255, .75); transition: color .2s; }
.site-footer__list a:hover { color: var(--gold); }
.site-footer__contact { display: grid; gap: 1rem; }
.site-footer__contact li { display: flex; gap: .75rem; align-items: flex-start; color: rgba(255, 255, 255, .78); }
.site-footer__contact svg { width: 20px; height: 20px; color: var(--gold); flex: none; margin-top: 3px; }
.site-footer__contact a { text-decoration: none; }
.site-footer__contact a:hover { color: var(--gold); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.3rem 0 calc(1.3rem + env(safe-area-inset-bottom, 0px)); }
.site-footer__bottom p { color: var(--steel); font-size: .88rem; }

/* ---------- Flotantes ---------- */
.float-actions {
    position: fixed; z-index: 90; right: clamp(14px, 2.5vw, 28px);
    bottom: calc(clamp(14px, 2.5vw, 28px) + env(safe-area-inset-bottom, 0px));
    display: flex; flex-direction: column; align-items: flex-end; gap: .7rem;
}
.float-wa, .float-call { position: relative; display: grid; place-items: center; border-radius: 50%; text-decoration: none; transition: transform .25s var(--ease); }
.float-wa { width: 62px; height: 62px; background: var(--wa); color: var(--white); box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .8); }
.float-wa::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa);
    animation: ring 2.4s var(--ease) infinite;
}
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.float-wa svg { width: 32px; height: 32px; }
.float-call { width: 50px; height: 50px; background: var(--gold); color: var(--black); box-shadow: 0 12px 26px -10px rgba(237, 185, 40, .8); display: none; }
.float-call svg { width: 22px; height: 22px; }
.float-wa:hover, .float-call:hover { transform: scale(1.08); }
.float-wa__tip {
    position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%); opacity: 0; pointer-events: none;
    white-space: nowrap; background: var(--white); color: var(--ink); font-weight: 700; font-size: .9rem;
    padding: .55rem .9rem; border-radius: 10px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
    transition: opacity .3s, transform .3s var(--ease);
}
.float-wa__tip::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; background: var(--white); transform: translateY(-50%) rotate(45deg); }
.float-wa:hover .float-wa__tip, .float-wa.show-tip .float-wa__tip { opacity: 1; transform: translate(0, -50%); }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: var(--white); }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; gap: .8rem; justify-items: center; padding: 4rem 4.5rem; }
.lightbox img { max-height: 78vh; max-width: min(90vw, 700px); width: auto; border-radius: 18px; }
.lightbox figcaption { font-weight: 600; color: var(--silver); }
.lightbox__close { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 18px; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); background: transparent; color: var(--white); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox__arrow { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .4); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.lightbox__arrow svg { width: 22px; height: 22px; }
.lightbox__arrow--prev { left: 14px; }
.lightbox__arrow--next { right: 14px; }
.lightbox__close:hover, .lightbox__arrow:hover { border-color: var(--gold); color: var(--gold); }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Escritorio grande */
@media (min-width: 1600px) {
    :root { --wrap: 1400px; }
    .hero__title { font-size: 5rem; }
}

/* Laptop */
@media (max-width: 1180px) {
    .nav__list { gap: 1rem; }
    .nav__list a { font-size: .9rem; }
    .services__box { grid-template-columns: 220px minmax(0, 1fr); }
}

/* Tablet horizontal y menú móvil */
@media (max-width: 1024px) {
    .burger { display: block; }
    .nav {
        position: fixed; inset: 0; z-index: -1; margin: 0;
        padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
        background: var(--black); display: flex; flex-direction: column; justify-content: space-between;
        opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
        overflow-y: auto;
    }
    .nav.is-open { opacity: 1; visibility: visible; }
    .nav__list { flex-direction: column; gap: .2rem; }
    .nav__list li { opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .4s var(--ease); }
    .nav.is-open .nav__list li { opacity: 1; transform: none; }
    .nav.is-open .nav__list li:nth-child(2) { transition-delay: .04s; }
    .nav.is-open .nav__list li:nth-child(3) { transition-delay: .08s; }
    .nav.is-open .nav__list li:nth-child(4) { transition-delay: .12s; }
    .nav.is-open .nav__list li:nth-child(5) { transition-delay: .16s; }
    .nav.is-open .nav__list li:nth-child(6) { transition-delay: .2s; }
    .nav__list a { display: block; font-stretch: var(--wide); font-weight: 800; font-size: clamp(1.7rem, 6vw, 2.4rem); padding: .55rem 0; color: var(--white); }
    .nav__list a::after { display: none; }
    .nav__list a:hover { color: var(--gold); }
    .nav__mobile-extra { display: grid; gap: 1rem; margin-top: 2rem; }
    .nav__addr { color: var(--steel); font-size: .95rem; }
    body.menu-open { overflow: hidden; }
    body.menu-open .float-actions { display: none; }
    .site-header.menu-on { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transition: none; }

    .hero__grid { grid-template-columns: 1fr; }
    .hero__copy { max-width: 720px; }
    .hero__title { max-width: 16ch; }
    .cyl { max-width: 760px; }

    .services__box { grid-template-columns: 1fr; }
    .services__tabs {
        flex-direction: row; overflow-x: auto; gap: .4rem; padding-bottom: .4rem; margin-inline: -.2rem;
        scroll-snap-type: x proximity; scrollbar-width: none;
    }
    .services__tabs::-webkit-scrollbar { display: none; }
    .services__tab { flex: none; white-space: nowrap; padding: .7rem 1.1rem; border: 1.5px solid #E0E2E6; border-radius: 999px; scroll-snap-align: start; font-size: .95rem; }
    .services__tab::before { display: none; }
    .services__tab[aria-selected="true"] { border-color: var(--ink); }

    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
    .steps::before { display: none; }

    .faq__grid { grid-template-columns: 1fr; }
    .faq .sec-head--left { margin-bottom: 0; }
    .coverage__grid { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__brand { grid-column: 1 / -1; }
}

/* Tablet vertical */
@media (max-width: 820px) {
    .badges { grid-template-columns: repeat(3, 1fr); row-gap: 1.6rem; }
    .badges li:nth-child(4) { border-left: 0; }
    .services__panel { grid-template-columns: 1fr; }
    .services__media { aspect-ratio: 16 / 11; }
    .services__panel[id="panel-auto"] .services__media { aspect-ratio: 16 / 10; }
    .contact__grid { grid-template-columns: 1fr; }
}

/* Móvil */
@media (max-width: 640px) {
    :root { --header-h: 66px; }
    .site-header__actions .btn--wa span { display: none; }
    .site-header__actions .btn--wa { width: 46px; padding: 0; }
    .brand__mark { width: 34px; }
    .brand__name { font-size: 1rem; }
    .brand__sub { font-size: .56rem; letter-spacing: .42em; }

    .hero__cta { flex-direction: column; }
    .hero__cta .btn { width: 100%; }
    .cyl__caption { flex-direction: column; align-items: stretch; }
    .cyl__info { flex: none; }
    .cyl__status { min-height: 0; }
    .cyl__buttons { display: grid; grid-template-columns: 1fr 1fr; }
    .cyl__buttons .chip { justify-content: center; text-align: center; font-size: .86rem; padding: .5rem .7rem; }
    .cyl__state { font-size: .75rem; }

    .badges { grid-template-columns: repeat(2, 1fr); }
    .badges li { border-left: 0 !important; font-size: .85rem; }
    .badges li:last-child { grid-column: 1 / -1; }

    .services__media { aspect-ratio: 4 / 3.4; }
    .services__cta .btn { flex: 1 1 auto; }

    .steps { grid-template-columns: 1fr; row-gap: 0; }
    .step { display: grid; grid-template-columns: 54px 1fr; column-gap: 1rem; padding-bottom: 1.8rem; }
    .step::before { content: ""; position: absolute; left: 26px; top: 54px; bottom: 0; width: 2px; background: rgba(237, 185, 40, .35); }
    .step:last-child::before { display: none; }
    .step__n { width: 54px; height: 54px; font-size: 1.3rem; grid-row: span 2; margin: 0; }
    .step h3 { align-self: end; padding-top: .7rem; }

    .works__head { flex-direction: column; align-items: flex-start; }
    .works__nav { display: none; }
    .strip { grid-auto-columns: 72vw; }

    .coverage__map { aspect-ratio: 1 / 1; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .float-call { display: grid; }
    .float-wa__tip { display: none; }
    .lightbox figure { padding: 4.5rem 1rem 5.5rem; }
    .lightbox img { max-width: 92vw; max-height: 70vh; }
    .lightbox__arrow { top: auto; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); translate: none; }
    .lightbox__arrow--prev { left: calc(50% - 64px); }
    .lightbox__arrow--next { right: calc(50% - 64px); }
}

/* Móvil pequeño */
@media (max-width: 380px) {
    .brand__sub { display: none; }
    .hero__title { font-size: 2.1rem; }
    .cyl__buttons { grid-template-columns: 1fr; }
}

/* Pantallas bajas en horizontal */
@media (max-height: 520px) and (orientation: landscape) {
    .hero { padding-top: calc(var(--header-h) + 1.5rem); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
