/* =========================================
   TINT CHIEFTAIN LLC
   WEBSITE V4
========================================= */

:root {
    --ink: #101512;
    --ink-soft: #3b433e;

    --brand-green: #01bf65;
    --brand-green-deep: #015c31;
    --brand-green-soft: #e8f5ee;

    --paper: #fafbf9;

    --header-h: 64px;
    --page-gutter: clamp(13px, 2.65vw, 44px);

    --font: "Manrope", "Segoe UI", sans-serif;

    --script: "Caveat", "Segoe Script", cursive;
}

/* =========================================
   CONFIGURACIÓN GENERAL
========================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.container {
    width: calc(100% - 2 * var(--page-gutter));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    z-index: 100;
    background: white;
    padding: 10px;
}

body:not(.legal-page) :focus-visible {
    outline: 3px solid var(--brand-green);
    outline-offset: 4px;
    border-radius: 4px;
}

/* =========================================
   HEADER
========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: var(--header-h);

    z-index: 30;

    color: white;

    background: rgba(16, 21, 18, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
    min-height: var(--header-h);

    display: flex;
    align-items: center;

    gap: 25px;
}

.brand {
    display: flex;
    align-items: center;

    width: 101px;
    flex-shrink: 0;
}

.brand img {
    width: 101px;
    max-height: 66px;
    object-fit: contain;

    filter: drop-shadow(
        0 2px 3px rgba(0, 0, 0, 0.4)
    );
}

/* MENÚ */

.nav {
    display: flex;
    align-items: center;

    gap: clamp(12px, 2.4vw, 34px);

    margin-inline: auto;
}

.nav-link {
    position: relative;

    padding: 10px 0;

    font-size: 13px;
    font-weight: 800;

    white-space: nowrap;

    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.nav-link::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 4px;

    height: 2px;

    background: var(--brand-green);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-green);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* BOTÓN TELEFÓNICO */

.header-phone {
    min-width: 108px;
    min-height: 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
    background: var(--brand-green-deep);

    border: 1px solid rgba(255, 255, 255, 0.25);

    border-radius: 11px;

    padding: 5px 10px;

    font-size: 14px;

    font-weight: 800;

    white-space: nowrap;

    color: white;
}

.header-phone-number {
    display: block;
    line-height: 1.1;
}

.header-phone:hover {
    filter: brightness(1.08);
}

.menu-toggle {
    display: none;
}

/* =========================================
   HERO
   LOGOTIPO ORIGINAL Y FONDO CORPORATIVO
========================================= */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(610px, 88svh, 850px);
    padding-block: calc(var(--header-h) + 42px) 40px;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 50% 8%, rgba(1, 191, 101, 0.24), transparent 48%),
        linear-gradient(145deg, #07110b 4%, #10271a 54%, #08140d 100%);
    overflow: hidden;
}

/* CONTENIDO */

.hero-content {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.hero-copy {
    position: relative;
    width: min(100%, 860px);
    text-align: center;
}

.hero-logo {
    width: min(100%, 470px);
    height: auto;
    margin: 0 auto 14px;
    object-fit: contain;
}

/* HI NEIGHBORS */

.hero-neighbors {
    margin: 0 0 5px;

    font-family: var(--script);

    font-size: clamp(26px, 3vw, 38px);

    line-height: 1;

    font-weight: 700;

    letter-spacing: -0.6px;

    color: var(--brand-green);
}

.hero-neighbors::after {
    content: "";

    display: block;

    height: 3px;
    width: 58px;

    margin: 8px auto 12px;

    border-radius: 50%;

    background: var(--brand-green);

    transform: rotate(-2deg);
}

/* TÍTULO PRINCIPAL */

.hero h1 {
    color: white;
    font-size: clamp(36px, 4vw, 56px);

    line-height: 1.04;

    margin: 17px 0;

    letter-spacing: -1.4px;

    font-weight: 800;
}

.hero h1 span {
    color: var(--brand-green);
    white-space: nowrap;
}

/* DESCRIPCIÓN */

.hero-description {
    max-width: 650px;

    font-size: clamp(14px, 1.2vw, 17px);

    line-height: 1.44;

    font-weight: 600;
    color: #f0f5f1;

    margin-bottom: 23px;
}

/* BOTONES */

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 13px;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 13px;

    padding: 13px 22px;

    border-radius: 11px;

    border: 2px solid transparent;

    font-size: 14px;

    font-weight: 800;

    line-height: 1.2;

    transition:
        transform 0.2s,
        box-shadow 0.2s,
        background 0.2s;
}

.btn:hover {
    transform: translateY(-2px);

    box-shadow: 0 7px 17px rgba(0, 0, 0, 0.14);
}

.btn-green {
    background: var(--brand-green);
    color: #08170e;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.68);

    border-color: #1b2419;

    color: #121912;
}

/* MENSAJES DE CONFIANZA */

.hero-trust {
    margin-top: 24px;

    display: flex;

    flex-wrap: wrap;

    gap: 13px;

    align-items: center;

    font-size: 11px;

    font-weight: 800;
    color: #f0f5f1;
}

.hero-trust span + span {
    border-left: 1px solid rgba(255, 255, 255, 0.38);

    padding-left: 13px;
}

/* INDICADOR DE SCROLL */

.scroll-hint {
    align-self: center;
    margin-top: 18px;

    display: flex;

    flex-direction: column;

    align-items: center;

    color: white;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.4px;

    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);

    pointer-events: auto;
}

.scroll-chevron {
    font-size: 34px;

    line-height: 24px;
}

/* =========================================
   FONDO BLANCO CON LOGO ORIGINAL
========================================= */

.content-stage {
    position: relative;

    z-index: 1;

    background-color: #fbfcfa;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.92),
            rgba(255, 255, 255, 0.92)
        ),
        url("../images/tint-chieftain-llc-logo-original-largo-fl-1200w.png");

    background-attachment: scroll, fixed;

    background-position: center, center 56%;

    background-repeat: no-repeat;

    background-size:
        cover,
        min(81.12vw, 982.8px) auto;
}

/* =========================================
   SECCIONES
========================================= */

.section {
    position: relative;

    padding: 35px 0 43px;
}

.section + .section {
    border-top: 1px solid rgba(44, 50, 38, 0.07);
}

.section-heading {
    margin-bottom: 27px;
}

.section-heading.center {
    text-align: center;
}

.eyebrow {
    color: var(--brand-green-deep);

    font-weight: 800;

    letter-spacing: 0.23em;

    font-size: 13px;

    margin-bottom: 6px;
}

.section h2 {
    margin-bottom: 12px;

    font-size: clamp(25px, 2.8vw, 37px);

    font-weight: 800;

    line-height: 1.14;

    letter-spacing: -1.5px;
}

.section-intro p:not(.eyebrow) {
    font-size: 14px;

    line-height: 1.55;

    color: var(--ink-soft);

    font-weight: 600;

    max-width: 220px;
}

/* =========================================
   SERVICIOS
========================================= */

.service-grid {
    display: grid;

    grid-template-columns: repeat(6, minmax(0, 1fr));

    gap: 14px;
}

.service-card {
    min-height: 145px;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    text-align: center;

    gap: 11px;

    padding: 17px 10px 12px;

    border-radius: 15px;

    border: 1px solid rgba(31, 57, 27, 0.11);

    background: rgba(255, 255, 255, 0.63);

    box-shadow: 0 7px 22px rgba(37, 42, 33, 0.08);

    backdrop-filter: blur(2px);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-6px);

    border-color: var(--brand-green);

    box-shadow: 0 10px 22px rgba(37, 42, 33, 0.13);
}

.service-card strong {
    font-size: clamp(12px, 1.05vw, 15px);

    line-height: 1.18;

    font-weight: 800;
}

.service-symbol {
    color: var(--brand-green-deep);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
}

.service-symbol svg {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-arrow {
    color: var(--brand-green);

    font-size: 25px;

    font-weight: 700;

    line-height: 20px;
}

/* =========================================
   GALERÍA DE TRABAJOS
========================================= */

.work-layout,
.package-layout {
    display: grid;

    grid-template-columns: 230px minmax(0, 1fr);

    gap: 22px;

    align-items: stretch;
}

.work {
    padding-top: 43px;

    padding-bottom: 39px;
}

.work-layout {
    align-items: center;
}

.btn-small {
    font-size: 13px;

    padding: 8px 16px;
}

.btn-line {
    color: #172715;

    border-color: var(--brand-green);

    background: rgba(255, 255, 255, 0.6);
}

/* CARRUSEL */

.gallery {
    position: relative;

    min-width: 0;
}

.gallery-track {
    display: grid;

    grid-auto-flow: column;

    grid-auto-columns: calc((100% - 26px) / 3);

    gap: 13px;

    overflow-x: auto;

    overscroll-behavior-inline: contain;

    scroll-snap-type: x mandatory;

    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-track--single {
    display: block;
    overflow: visible;
}

.gallery-track--single .gallery-card {
    height: clamp(260px, 31vw, 410px);
}

.gallery-card {
    position: relative;

    margin: 0;

    height: 214px;

    border-radius: 14px;

    overflow: hidden;

    scroll-snap-align: start;

    background: rgba(205, 213, 200, 0.42);

    border: 1px solid rgba(30, 48, 27, 0.13);
}

.gallery-card img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.gallery-card:hover img {
    transform: scale(1.045);
}

.gallery-card figcaption {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 16px 10px 9px;

    color: white;

    font-size: 11px;

    font-weight: 700;

    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, 0.62)
    );
}

/* FLECHAS */

.gallery-arrow {
    display: none;

    position: absolute;

    z-index: 2;

    top: calc(50% - 20px);

    width: 40px;
    height: 40px;

    border-radius: 50%;

    border: 1px solid white;

    background: rgba(16, 23, 14, 0.75);

    color: white;

    font-size: 29px;

    cursor: pointer;
}

.gallery-prev {
    left: 8px;
}

.gallery-next {
    right: 8px;
}

.gallery[data-overflow="true"] .gallery-arrow {
    display: block;
}

/* =========================================
   PAQUETES
========================================= */

.packages {
    padding-top: 36px;

    padding-bottom: 48px;
}

.package-layout {
    grid-template-columns:
        230px
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.green-stroke {
    display: block;

    width: 130px;

    height: 5px;

    background: var(--brand-green);

    margin-top: 16px;

    border-radius: 60%;

    transform: rotate(-3deg);
}

.package-card {
    position: relative;

    display: flex;

    flex-direction: column;

    overflow: hidden;

    border-radius: 16px;

    border: 1px solid rgba(27, 40, 27, 0.22);

    background: rgba(255, 255, 255, 0.76);

    box-shadow: 0 9px 21px rgba(35, 42, 31, 0.09);

    backdrop-filter: blur(2px);

    padding: 18px;
    min-height: 0;
    gap: 12px;
}

.package-card.premium {
    border: 2px solid var(--brand-green);
}

.package-heading {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 8px;

    border-bottom: 1px solid rgba(28, 35, 28, 0.1);

    padding-bottom: 11px;
}

.package-heading h3 {
    font-size: clamp(14px, 1.28vw, 18px);

    font-weight: 800;

    line-height: 1.17;

    margin: 0;
}

.package-request {
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    padding: 9px 11px;
    min-height: 40px;
    text-align: center;
    flex: none;
}

.film-card-summary {
    margin: 0;
    min-height: 2.8em;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.film-card-warranty {
    margin: 0;
    color: var(--brand-green-deep);
    font-size: 13px;
    font-weight: 800;
}

.package-card ul {
    margin: 11px 0 9px;

    padding: 0;

    list-style: none;
}

.package-card li {
    position: relative;

    padding-left: 22px;

    line-height: 1.35;

    font-size: 12px;

    font-weight: 600;

    margin-bottom: 8px;
}

.package-card li::before {
    content: "✓";

    position: absolute;

    left: 0;

    top: -3px;

    color: var(--brand-green);

    font-size: 18px;

    font-weight: 800;
}

/* IMÁGENES DE PAQUETES */

.package-image {
    position: relative;

    flex: 1;

    margin: 1px -16px 0;

    min-height: 93px;

    overflow: hidden;

    background: #edf2ee;
}

.package-image img {
    width: 100%;

    height: 117px;

    object-fit: cover;
}

.package-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-inline: -18px;
    text-align: left;
    padding: 10px 18px;
    border-top: 1px solid rgba(1, 92, 49, 0.18);
    color: var(--brand-green-deep);
    font-size: 11px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.96);
}

.film-explore {
    margin-top: auto;
}

.premium-tag {
    position: absolute;

    top: 0;
    right: 12px;

    background: var(--brand-green);

    color: #08170e;

    font-size: 10px;

    font-weight: 800;

    padding: 5px 8px;

    border-radius: 0 0 7px 7px;
}

.premium .package-heading {
    margin-top: 15px;
}

/* =========================================
   RESEÑAS
========================================= */

.reviews {
    padding-block: 29px 36px;
}

.reviews-layout {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;
}

.reviews-layout h2 {
    font-size: 25px;

    margin-bottom: 3px;
}

.reviews-layout p:not(.eyebrow) {
    font-size: 13px;

    margin: 0;
}

.review-actions {
    display: flex;

    gap: 9px;

    flex-wrap: wrap;
}

.review-actions a {
    border: 1px solid rgba(36, 67, 27, 0.25);

    border-radius: 10px;

    padding: 11px 15px;

    background: rgba(255, 255, 255, 0.75);

    font-weight: 800;

    font-size: 12px;
}

.review-actions a:hover {
    color: var(--brand-green-deep);
}

/* =========================================
   FOOTER
========================================= */

.film-explore summary { cursor: pointer; min-height: 44px; margin-top: 8px; }
.film-explore summary:focus-visible, #film-dialog button:focus-visible, #film-dialog a:focus-visible {
    outline: 2px solid var(--brand-green-deep);
    outline-offset: 3px;
}
#film-dialog {
    width: min(calc(100% - 24px), 34rem);
    max-height: calc(100dvh - 24px);
    padding: 16px;
    border: 1px solid var(--brand-green-deep);
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
}
#film-dialog::backdrop { background: rgb(18 25 17 / .65); }
body:has(#film-dialog[open]) { overflow: hidden; }
.film-dialog-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.film-dialog-header img { object-fit: contain; }
.film-dialog-header form { margin: 0; }
.film-language { display: flex; flex-wrap: wrap; gap: 4px; }
.film-language button {
    min-height: 44px;
    padding: 4px 8px;
    border: 1px solid var(--brand-green-deep);
    border-radius: 6px;
    background: white;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.film-language button[aria-pressed="true"] { background: var(--brand-green-soft); font-weight: 700; }
.film-information h4 { margin: 10px 0; }
.film-information dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 5px 10px; }
.film-information dt { font-weight: 700; }
.film-information dd { margin: 0; }
.film-information [hidden], #film-dialog [hidden], .film-explore summary [hidden] { display: none; }

.photo-section--soft { background: rgba(249, 250, 247, 0.88); }
.photo-section .section-heading > p:last-child { max-width: 58rem; margin-inline: auto; }
.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2.4vw, 24px);
    min-width: 0;
}
.photo-grid--process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.photo-card {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(20, 25, 19, 0.14);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 25, 19, 0.07);
}
.photo-card img {
    display: block;
    width: 100%;
    height: clamp(220px, 27vw, 360px);
    object-fit: contain;
    background: #f2f4f1;
}
.photo-grid--process .photo-card img { height: clamp(250px, 30vw, 390px); }
.photo-label {
    display: block;
    padding: 8px 12px 0;
    color: var(--brand-green-deep);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.photo-card figcaption { padding: 12px 14px 14px; font-size: 0.92rem; line-height: 1.5; }
.photo-context { max-width: 58rem; margin: 18px auto 0; line-height: 1.6; }
.specialty-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(22px, 5vw, 60px);
}
.photo-card--taillight img { height: clamp(300px, 38vw, 480px); }
.film-sample-figure { margin: 16px 0 0; }
.film-sample-figure img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: contain;
    border-radius: 8px;
    background: #f2f4f1;
}
.film-sample-figure figcaption { margin-top: 6px; font-size: 0.8rem; line-height: 1.45; }
.sample-results {
    display: grid;
    gap: 5px;
    margin: 12px 0 0;
    padding: 12px;
    border-radius: 8px;
    background: #f4f7f3;
    font-size: 0.84rem;
}
.sample-results > div { display: flex; justify-content: space-between; gap: 12px; }
.sample-results dt { font-weight: 600; }
.sample-results dd { margin: 0; font-weight: 800; text-align: right; }
.sample-note { margin: 9px 0 0; color: #465148; font-size: 0.78rem; line-height: 1.5; }

.film-care { max-width: 56rem; }
.film-care details { padding: 8px 12px; background: #fff; border: 1px solid rgba(1, 92, 49, 0.18); border-radius: 8px; margin-block: 8px; }
.film-care summary { cursor: pointer; padding-block: 5px; font-weight: 700; }
.film-care-contact { margin-top: 16px; }

.site-footer {
    border-top: 1px solid rgba(20, 25, 19, 0.13);

    background: #f9faf7;
}

.footer-bar {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    padding-block: 24px;
}

.footer-location {
    display: flex;

    align-items: center;

    gap: 13px;
}

.footer-location p {
    margin: 0;

    font-size: 13px;
}

.footer-location small {
    display: block;

    font-size: 12px;

    margin-top: 5px;
}

.contact-icon { flex: none; object-fit: contain; }
.footer-contact-action { min-height: 44px; }
.footer-number .contact-icon,
.footer-location .contact-icon,
.footer-social-link .contact-icon {
    padding: 0;
    border-radius: 0;
    background: transparent;
}
.btn-outline .contact-icon {
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.footer-number {
    font-size: clamp(17px, 2vw, 27px);

    font-weight: 800;

    display: flex;

    align-items: center;

    gap: 8px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    min-width: 0;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    font-size: 13px;

    font-weight: 800;
}
.footer-social-link:focus-visible,
.package-request:focus-visible,
.film-care-contact:focus-visible {
    outline: 3px solid var(--brand-green-deep);
    outline-offset: 3px;
}
.footer-social-link small { display: block; font-weight: 500; }

.spanish {
    display: inline-flex;
    align-items: center;
    color: var(--brand-green-deep);
    gap: 8px;
    padding: 4px 0;
    margin: 0;
    font-size: 12px;
    font-weight: 800;
}

.spanish::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--brand-green);
}

.footer-bottom {
    border-top: 1px solid rgba(30, 45, 28, 0.1);

    padding: 14px 0 17px;

    display: flex;

    justify-content: space-between;

    gap: 10px;

    align-items: center;

    font-size: 11px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
}

.footer-legal a {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================
   ANIMACIONES CON JAVASCRIPT
========================================= */

.js .reveal {
    opacity: 0;

    transform: translateY(20px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.js .reveal.is-visible {
    opacity: 1;

    transform: translateY(0);
}

/* =========================================
   IMÁGENES NO ENCONTRADAS
========================================= */

.gallery-card.missing-asset img,
.package-image.missing-asset img {
    opacity: 0;
}

.gallery-card.missing-asset,
.package-image.missing-asset {
    background: linear-gradient(
        135deg,
        #dce6d8,
        #aebdae
    );
}

.missing-label {
    position: absolute;

    left: 12px;
    right: 12px;
    top: 30%;

    display: block;

    padding: 12px;

    color: #253626;

    background: rgba(255, 255, 255, 0.77);

    font-size: 11px;

    font-weight: 800;

    line-height: 1.5;

    text-align: center;

    border-radius: 6px;

    overflow-wrap: anywhere;
}

/* =========================================
   TABLETS
========================================= */

@media (max-width: 1080px) {

    .nav {
        gap: 15px;
    }

    .brand,
    .brand img {
        width: 82px;
    }

    .service-grid {
        gap: 8px;
    }

    .service-card {
        min-height: 138px;
    }

    .work-layout {
        grid-template-columns: 185px minmax(0, 1fr);
    }

    .package-layout {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .package-layout .section-intro {
        grid-column: 1 / -1;
    }

    .content-stage {
        background-size:
            cover,
            min(96.72vw, 889.2px) auto;
    }
}

/* =========================================
   TELÉFONOS
========================================= */

@media (max-width: 760px) {

    :root {
        --header-h: 70px;
    }

    .brand,
    .brand img {
        width: 75px;
    }

    .brand img {
        max-height: 58px;
    }

    .header-inner {
        gap: 10px;
    }

    .header-phone {
        min-width: 94px;
        min-height: 56px;
        padding: 4px 7px;
        font-size: 11px;
        margin-left: auto;
    }

    .header-phone img {
        width: 20px;
        height: 20px;
    }

    /* MENÚ MÓVIL */

    .menu-toggle {
        display: flex;

        width: 39px;
        height: 37px;

        padding: 9px;

        flex-direction: column;

        justify-content: space-between;

        order: 3;

        background: rgba(0, 0, 0, 0.35);

        border: 1px solid rgba(255, 255, 255, 0.4);

        border-radius: 6px;
    }

    .menu-toggle span {
        width: 100%;

        height: 2px;

        background: white;
    }

    .nav {
        display: none;

        position: absolute;

        left: 0;
        right: 0;

        top: var(--header-h);

        background: rgba(15, 19, 15, 0.97);

        padding: 12px 20px 22px;

        flex-direction: column;

        align-items: flex-start;

        gap: 7px;
    }

    .nav.is-open {
        display: flex;
    }

    .nav-link {
        font-size: 15px;

        width: 100%;

        padding-block: 11px;
    }

    /* PORTADA MÓVIL */

    .hero {
        min-height: calc(100svh - var(--header-h));
        padding-block: calc(var(--header-h) + 26px) 28px;
    }

    .hero-content {
        gap: 8px;
    }

    .hero-copy {
        max-width: min(100%, 540px);
    }

    .hero-logo {
        width: min(86vw, 390px);
        margin-bottom: 10px;
    }

    .hero-neighbors {
        font-size: clamp(24px, 7vw, 34px);
    }

    .hero h1 {
        font-size: clamp(32px, 7.2vw, 46px);
    }

    .hero-description {
        max-width: 440px;
        margin-inline: auto;
        font-size: 14px;
    }

    .hero-trust {
        justify-content: center;
        gap: 7px;
        font-size: 10px;
    }

    .hero-trust span + span {
        padding-left: 7px;
    }

    /* SERVICIOS */

    .section {
        padding-block: 30px;
    }

    .service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));

        gap: 10px;
    }

    .service-card {
        min-height: 123px;

        padding-inline: 6px;
    }

    .service-card strong {
        font-size: 11px;
    }

    .service-symbol {
        width: 34px;
        height: 34px;
    }

    .service-symbol svg {
        width: 32px;
        height: 32px;
    }

    /* LOGO DE FONDO */

    .content-stage {
        background-attachment: scroll;

        background-size:
            cover,
            min(114vw, 790px) auto;

        background-position:
            center,
            center 45%;
    }

    /* GALERÍA */

    .work-layout {
        display: block;
    }

    .section-intro {
        margin-bottom: 18px;
    }

    .section-intro p:not(.eyebrow) {
        max-width: 470px;
    }

    .gallery-track {
        grid-auto-columns: min(82%, 350px);
    }

    .gallery-card {
        height: 230px;
    }

    /* PAQUETES */

    .package-layout {
        grid-template-columns: 1fr;
    }

    .package-layout .section-intro {
        grid-column: auto;
    }

    .package-card {
        min-height: 0;
        padding: 18px;
    }

    .package-image img {
        height: 135px;
    }

    /* RESEÑAS */

    .reviews-layout {
        display: block;
    }

    .reviews-layout > div:first-child {
        margin-bottom: 18px;
    }

    /* FOOTER */

    .footer-bar {
        display: grid;

        grid-template-columns: 1fr 1fr;
    }

    .footer-location {
        grid-column: 1 / -1;
    }

    .specialty-layout { grid-template-columns: minmax(0, 1fr); }
    .photo-grid--process { grid-template-columns: minmax(0, 1fr); }
    .photo-grid--process .photo-card img { height: min(78vw, 360px); }
    .photo-card--taillight img { height: min(100vw, 420px); }
    .film-sample-figure img { height: 170px; }

    .spanish {
        text-align: center;
    }
}

/* =========================================
   TELÉFONOS PEQUEÑOS
========================================= */

@media (max-width: 420px) {

    .header-phone {
        font-size: 10px;
        min-width: 88px;
        padding: 4px 5px;
    }

    .hero-neighbors {
        font-size: 25px;
    }

    .hero h1 {
        font-size: clamp(29px, 8vw, 34px);
        letter-spacing: -0.8px;
    }

    .btn {
        padding: 11px 12px;

        font-size: 12px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-grid--comparison { grid-template-columns: minmax(0, 1fr); }
    .photo-card img { height: min(72vw, 300px); }
    .sample-results { padding: 10px; font-size: 0.78rem; }

    .footer-bar {
        grid-template-columns: 1fr;
    }

    .footer-location {
        grid-column: 1;
    }

    .footer-bottom {
        flex-direction: column;

        align-items: flex-start;
    }

    .footer-legal {
        justify-content: flex-start;
    }
}

/* =========================================
   ACCESIBILIDAD
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;

        transition-duration: 0.001ms !important;
    }

    .js .reveal {
        opacity: 1;

        transform: none;
    }

}

/* Compact bilingual homepage, navigation, and responsive media. */
:root { --header-h: 64px; }
html[data-language-restore="true"] { scroll-behavior: auto !important; }
main section[id], .site-footer[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.site-header { z-index: 30; height: var(--header-h); min-height: var(--header-h); }
.header-inner { height: var(--header-h); min-height: var(--header-h); gap: clamp(8px, 1.1vw, 16px); }
.brand { flex: 0 0 104px; width: 104px; }
.brand img { display: block; width: 104px; height: 52px; max-height: 52px; object-fit: contain; }
.nav { min-width: 0; flex: 1 1 auto; justify-content: center; gap: clamp(2px, .45vw, 8px); }
.nav-link { min-height: 40px; padding: 6px clamp(4px, .55vw, 9px); font-size: clamp(.8rem, .9vw, .94rem); font-weight: 600; }
.nav-link:hover, .nav-link.active { color: #a6ffcc; }
.header-phone { display: inline-flex; flex: 0 0 auto; flex-direction: row; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 40px; padding: 6px 9px; font-size: .8rem; font-weight: 650; white-space: nowrap; }
.header-phone-number { display: inline; line-height: 1.2; }
.header-phone .contact-icon { width: 18px; height: 18px; }
.menu-toggle { display: none; }
.language-switch { position: static; z-index: auto; display: flex; align-items: center; gap: 3px; flex: 0 0 auto; transform: none; padding: 3px; border: 1px solid rgb(255 255 255 / .24); border-radius: 8px; background: transparent; box-shadow: none; }
.language-switch a { display: grid; min-width: 32px; min-height: 32px; place-items: center; border: 1px solid transparent; border-radius: 5px; color: #fff; font-size: .72rem; font-weight: 650; text-decoration: none; }
.language-switch a[aria-current="page"] { background: var(--brand-green-deep); color: #fff; }
.language-switch a:focus-visible { outline: 3px solid #a6ffcc; outline-offset: 2px; }
body:has(dialog[open]) .language-switch { visibility: hidden; }

.hero { display: flex; min-height: clamp(420px, 58svh, 520px); align-items: center; padding: calc(var(--header-h) + 24px) 0 28px; background: radial-gradient(ellipse at 76% 18%, rgb(1 191 101 / .13), transparent 44%), linear-gradient(135deg, #07140c 0%, #103521 54%, #0a1b11 100%); background-attachment: fixed; color: #fff; }
.hero-content { position: relative; display: grid; width: 100%; grid-template-columns: minmax(0, 1.12fr) minmax(260px, .88fr); align-items: center; gap: clamp(20px, 3.2vw, 44px); }
.hero-copy, .hero-mark { min-width: 0; }
.hero-copy { width: auto; text-align: left; }
.hero-neighbors { margin: 0 0 6px; font-size: clamp(1.55rem, 2.3vw, 2rem); font-weight: 600; }
.hero h1 { max-width: 15ch; margin: 8px 0 13px; font-size: clamp(2.55rem, 4.15vw, 3.75rem); font-weight: 650; line-height: 1.05; letter-spacing: -.035em; }
.hero h1 span { color: #a6ffcc; }
.hero-description { max-width: 39rem; margin-bottom: 0; color: rgb(255 255 255 / .9); font-size: 1rem; line-height: 1.55; font-weight: 450; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.hero .btn-outline { color: #fff; border-color: rgb(255 255 255 / .65); }
.hero-mark { display: grid; place-items: center; }
.hero-logo { display: block; width: min(100%, 540px); height: auto; max-height: none; margin: 0; object-fit: contain; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 17px 0 0; padding: 0; list-style: none; color: rgb(255 255 255 / .9); font-size: .84rem; line-height: 1.4; }
.hero-trust li { margin: 0; cursor: default; }
.hero-trust li::before { content: none; }

.content-stage { background: #f8f9f6; }
.section { padding-block: clamp(30px, 3.4vw, 44px); }
.section-heading { margin-bottom: 18px; }
.section-heading h2, .section-intro h2 { margin-top: 3px; }
.section h2, .section-intro h2 { margin-bottom: 10px; font-size: clamp(1.65rem, 2.55vw, 2.25rem); font-weight: 650; line-height: 1.16; letter-spacing: -.03em; }
.section h3, .film-dialog h2, .gallery-dialog h2 { font-weight: 650; letter-spacing: -.02em; }
.eyebrow { margin-bottom: 5px; font-size: .76rem; font-weight: 650; letter-spacing: .13em; }
.section-heading > p:last-child { max-width: 60rem; margin-inline: auto; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-card { display: grid; min-width: 0; min-height: 78px; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; justify-content: initial; gap: 12px; padding: 13px 16px; border-radius: 12px; text-align: left; }
.service-card:hover { transform: translateY(-2px); }
.service-card strong { display: block; font-size: clamp(.88rem, 1vw, .98rem); font-weight: 650; line-height: 1.3; }
.service-symbol { width: 36px; height: 36px; }
.service-symbol svg { width: 34px; height: 34px; }
.card-arrow { font-size: 1.2rem; line-height: 1; }

.package-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: clamp(12px, 1.6vw, 20px); }
.package-card { display: flex; min-width: 0; min-height: 0; height: 100%; flex-direction: column; gap: 8px; padding: clamp(13px, 1.5vw, 18px); }
.package-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; }
.package-heading h3 { margin: 0; font-size: clamp(1rem, 1.35vw, 1.2rem); font-weight: 650; line-height: 1.2; }
.package-request { min-height: 40px; padding: 8px 10px; font-size: .76rem; font-weight: 650; }
.film-card-summary { min-height: 2.8em; margin: 0; font-size: .9rem; line-height: 1.42; }
.film-sample-figure { margin: 5px 0 0; }
.film-sample-figure .photo-open { border-radius: 8px; }
.film-sample-figure img { width: 100%; height: 132px; border-radius: 0; object-fit: contain; background: #fff; }
.film-sample-figure figcaption { padding: 5px 2px 0; font-size: .75rem; line-height: 1.4; }
.photo-open { display: block; width: 100%; padding: 0; overflow: hidden; border: 0; border-radius: inherit; background: #fff; color: inherit; cursor: zoom-in; }
.photo-open:focus-visible, .gallery-step:focus-visible, .gallery-dialog-header button:focus-visible { outline: 3px solid var(--brand-green); outline-offset: 3px; }
.irr-meter { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; align-items: center; gap: 8px; margin-top: 7px; font-size: .8rem; }
.irr-track { height: 7px; overflow: hidden; border-radius: 999px; background: #dce3dc; }
.irr-track > span { display: block; height: 100%; border-radius: inherit; background: var(--brand-green-deep); }
.sample-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 7px 0 0; }
.sample-results > div { min-width: 0; padding: 7px; border-radius: 7px; background: #f0f4ef; }
.sample-results dt { font-size: .73rem; font-weight: 550; }
.sample-results dd { margin: 2px 0 0; font-size: .94rem; font-weight: 650; text-align: right; }
.film-card-warranty { margin: 6px 0; font-size: .82rem; font-weight: 650; }
.package-card.premium { border: 2px solid var(--brand-green-deep); }
.premium-tag { font-weight: 650; }
.film-explore { margin-top: auto; }
.film-explore summary.package-link { min-height: 44px; cursor: pointer; }
.film-explore summary.package-link:focus-visible { outline: 3px solid var(--brand-green); outline-offset: 3px; }
.film-sample-note { max-width: 68rem; margin: 12px auto 0; color: #46534a; font-size: .82rem; line-height: 1.5; }

.installation-layout { display: grid; grid-template-columns: minmax(220px, .62fr) minmax(0, 1.38fr); align-items: center; gap: clamp(18px, 3vw, 32px); }
.process-copy { margin: 0; text-align: left; }
.process-copy > p:not(.eyebrow) { max-width: 42ch; font-size: .94rem; line-height: 1.55; }
.photo-section { background: #fff; }
.photo-grid--process { grid-template-columns: .5625fr .82fr .95fr; align-items: start; gap: 10px; }
.photo-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgb(20 25 19 / .12); border-radius: 10px; background: #fff; box-shadow: 0 4px 14px rgb(20 25 19 / .05); }
.photo-card img { display: block; width: 100%; height: auto; object-fit: contain; background: #fff; }
.photo-grid--process .photo-card img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.photo-card figcaption { padding: 7px 9px 9px; font-size: .78rem; line-height: 1.4; }
.photo-label { position: relative; z-index: 1; padding: 7px 9px 0; font-size: .75rem; font-weight: 650; }
.work-projects { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .8fr); align-items: start; gap: clamp(14px, 2vw, 22px); }
.work-project { display: grid; min-width: 0; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: center; gap: 14px; }
.work-project-copy { min-width: 0; }
.work-project-copy h3 { margin-bottom: 8px; font-size: clamp(1.05rem, 1.3vw, 1.25rem); font-weight: 650; line-height: 1.25; }
.work-project-copy p:last-child { margin-bottom: 0; }
.photo-grid--comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.photo-grid--comparison .photo-card img { width: 100%; height: clamp(160px, 14vw, 230px); object-fit: contain; background: #fff; }
.photo-label { color: var(--brand-green-deep); letter-spacing: .04em; text-transform: uppercase; }
.work-project#taillight-tint { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 8px; }
.photo-card--taillight { width: 100%; max-width: none; margin: 0; }
.photo-card--taillight img { width: 100%; height: clamp(190px, 17vw, 250px); object-fit: contain; background: #fff; }
.shop-link { margin-top: 14px; }
.shop-section { background: #eef2eb; }
.shop-section .work-layout { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: center; gap: clamp(18px, 3vw, 32px); }
.shop-section .section-intro p:not(.eyebrow) { max-width: 48ch; }
.shop-section .gallery-card { height: auto; }
.shop-section .gallery-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #fff; }
.reviews { background: #fff; }
.reviews-layout { align-items: center; gap: 24px; }
.reviews-layout h2 { font-size: clamp(1.55rem, 2.2vw, 2rem); font-weight: 650; }
.film-care { max-width: 880px; }
.film-care > p { margin-bottom: 12px; }
.film-care details { margin-block: 7px; padding: 2px 12px; border: 1px solid rgb(1 92 49 / .16); border-radius: 8px; background: #fff; }
.film-care summary { min-height: 44px; padding-block: 10px; cursor: pointer; font-weight: 650; }
.film-care details p { max-width: 76ch; }
.film-care-contact { margin-top: 12px; }

.gallery-dialog { width: min(calc(100% - 24px), 1100px); max-width: 1100px; max-height: min(92dvh, 900px); padding: clamp(12px, 2vw, 20px); border: 1px solid rgb(1 92 49 / .4); border-radius: 14px; color: var(--ink); background: #fff; }
.gallery-dialog::backdrop { background: rgb(5 13 8 / .82); }
.gallery-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gallery-dialog-header h2 { margin: 0; font-size: 1.1rem; }
.gallery-dialog-header form { margin: 0; }
.gallery-dialog-body { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 10px; }
.gallery-dialog-body figure { min-width: 0; margin: 10px 0 0; text-align: center; }
.gallery-dialog-body img { display: block; width: 100%; max-height: min(70dvh, 690px); object-fit: contain; }
.gallery-dialog-body figcaption { margin-top: 8px; font-size: .9rem; }
.gallery-step { min-height: 44px; border: 1px solid var(--brand-green-deep); border-radius: 50%; background: #fff; color: var(--brand-green-deep); font-size: 1.35rem; cursor: pointer; }
.gallery-dialog-position { margin: 8px 0 0; text-align: center; font-variant-numeric: tabular-nums; }
body:has(dialog[open]) { overflow: hidden; }
.site-footer { padding-top: 20px; }
.footer-bar { gap: 12px; }
.footer-social { flex-wrap: wrap; gap: 8px; }
.footer-bottom { gap: 10px 18px; }
.footer-legal { flex-wrap: wrap; gap: 8px 14px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--brand-green-deep); outline-offset: 3px; }
.hero-trust a, .hero-trust button { cursor: default; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; min-width: 40px; min-height: 40px; }
  .header-inner { gap: 8px; }
  .nav { position: absolute; top: var(--header-h); right: var(--page-gutter); display: none; width: min(320px, calc(100vw - 2 * var(--page-gutter))); max-height: calc(100dvh - var(--header-h) - 16px); overflow-y: auto; padding: 8px; border: 1px solid rgb(1 92 49 / .2); border-radius: 12px; background: #fff; box-shadow: 0 14px 34px rgb(0 0 0 / .2); }
  .nav.is-open { display: grid; }
  .nav-link { justify-content: flex-start; min-height: 44px; padding-inline: 12px; color: var(--ink); font-size: .94rem; text-shadow: none; }
  .nav-link:hover, .nav-link.active { color: var(--brand-green-deep); }
  .nav-link::after { background: var(--brand-green-deep); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-projects { grid-template-columns: minmax(0, 1.35fr) minmax(220px, .85fr); }
  .work-project { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
}

@media (max-width: 760px) {
  :root { --header-h: 60px; }
  .header-inner { min-height: var(--header-h); }
  .brand { flex-basis: 66px; width: 66px; }
  .brand img { width: 66px; height: 33px; }
  .header-phone { gap: 4px; min-height: 38px; padding: 5px 6px; font-size: .76rem; }
  .header-phone .contact-icon { width: 16px; height: 16px; }
  .language-switch { padding: 2px; }
  .language-switch a { min-width: 30px; min-height: 32px; }
  .hero { min-height: 0; padding: calc(var(--header-h) + 24px) 0 28px; background-attachment: scroll; }
  .hero-content { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .hero-copy { width: 100%; text-align: left; }
  .hero h1 { max-width: 16ch; margin: 8px 0 13px; font-size: clamp(2.15rem, 7vw, 3.15rem); }
  .hero-actions { justify-content: flex-start; }
  .hero-mark { justify-items: start; }
  .hero-logo { width: min(86vw, 360px); }
  .hero-trust { gap: 7px 13px; font-size: .8rem; }
  .section { padding-block: 30px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card { min-height: 84px; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 9px; padding: 11px; }
  .service-symbol, .service-symbol svg { width: 30px; height: 30px; }
  .package-layout { grid-template-columns: minmax(0, 1fr); }
  .package-card { min-height: 0; }
  .film-card-summary { min-height: 0; }
  .film-sample-figure img { height: min(38vw, 156px); }
  .installation-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .photo-grid--process { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .work-projects, .work-project, .shop-section .work-layout { grid-template-columns: minmax(0, 1fr); }
  .work-project#taillight-tint { grid-template-columns: minmax(0, 1fr); }
  .photo-grid--comparison .photo-card img { height: clamp(150px, 38vw, 230px); }
  .photo-card--taillight img { height: clamp(190px, 56vw, 300px); }
  .shop-section .work-layout { gap: 16px; }
  .language-switch { margin-left: 0; }
  .gallery-dialog-body { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 5px; }
  .gallery-dialog-body img { max-height: 64dvh; }
}

@media (max-width: 480px) {
  .header-inner { padding-inline: 10px; }
  .brand { flex-basis: 60px; width: 60px; }
  .brand img { width: 60px; height: 30px; }
  .header-phone { gap: 3px; padding: 5px 4px; font-size: .7rem; }
  .header-phone .contact-icon { width: 15px; height: 15px; }
  .language-switch a { min-width: 28px; min-height: 30px; font-size: .68rem; }
  .hero-neighbors { font-size: 1.48rem; }
  .hero-trust { gap: 6px 10px; font-size: .74rem; }
  .service-card { min-height: 82px; grid-template-columns: 28px minmax(0, 1fr) 10px; gap: 7px; padding: 9px; }
  .service-symbol, .service-symbol svg { width: 27px; height: 27px; }
  .service-card strong { font-size: .78rem; }
  .sample-results { font-size: .8rem; }
  .photo-grid--comparison { grid-template-columns: minmax(0, 1fr); }
  .photo-grid--process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid--process .photo-card:last-child { grid-column: auto; width: auto; }
  .footer-bar { grid-template-columns: minmax(0, 1fr); }
  .footer-social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-social-link { min-width: 0; overflow-wrap: anywhere; }
  .gallery-dialog { width: calc(100% - 12px); padding: 10px; }
  .gallery-dialog-body { grid-template-columns: 34px minmax(0, 1fr) 34px; }
  .gallery-step { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { background-attachment: scroll; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
