/* Transmedic: señalética de hospital. Ver DESIGN.md */
@font-face { font-family: 'Overpass'; src: url('/fonts/overpass.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --ink: #183878;
  --muted: #33508C;
  --surface: #EEF2F8;
  --azul: #3060A8;
  --verde: #188048;
  --margin: clamp(1rem, 2.2vw, 2rem);
  --gutter: clamp(0.75rem, 1.4vw, 1.5rem);
  --section: clamp(4.5rem, 11vw, 9.5rem);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --h1: clamp(2.5rem, 5.4vw, 5.25rem);
  --h2: clamp(2rem, 3.8vw, 3.5rem);
  --t-h3: clamp(1.5rem, 2.1vw, 1.875rem);
  --t-lead: clamp(1.125rem, 1.5vw, 1.375rem);
  --t-small: 0.9375rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; scrollbar-color: var(--ink) var(--surface); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.55 'Overpass', 'Helvetica Neue', Arial, sans-serif; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--verde); color: #fff; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }
.field-ink :focus-visible, .field-verde :focus-visible, .close :focus-visible { outline-color: #fff; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--t-h3); }
p { margin: 0; text-wrap: pretty; }
ul { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }
.wrap { padding-inline: var(--margin); }
.lead { font-size: var(--t-lead); line-height: 1.4; max-width: 34em; }
.note { font-size: var(--t-small); color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: #fff; padding: 0.6rem 1rem; z-index: 20; }
.skip:focus { left: 0.5rem; }

/* Controles */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0.5rem 1.5rem 0.35rem; border: 0; background: var(--verde); color: #fff; font-family: inherit; font-weight: 700; font-size: 1.0625rem; line-height: 1; text-decoration: none; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-small { min-height: 2.75rem; padding-inline: 1.15rem; }
.btn-light { background: #fff; color: var(--ink); }
.more { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; text-decoration: none; }
.more .arrow { width: 1.1em; height: 1.1em; transition: transform 200ms var(--ease-out); }
.more:not(:has(.arrow)) { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
input, textarea { width: 100%; min-height: 3.25rem; padding: 0.75rem 0.9rem 0.6rem; border: 0; border-radius: 0; background: #fff; color: var(--ink); font: inherit; caret-color: var(--verde); box-shadow: inset 0 0 0 2px var(--ink); } /* taste-skill-ignore: borde de campo de formulario */
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--azul); outline-offset: 0; }
label { display: block; margin-bottom: 0.45rem; font-weight: 700; }

/* Campos de color: solo los del logo */
.field-ink { background: var(--ink); color: #fff; }
.field-verde { background: var(--verde); color: #fff; }
.field-tint { background: var(--surface); }

/* Encabezado */
.site-header { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); min-height: 4.75rem; position: relative; z-index: 10; }
.logo { display: block; flex: 0 1 auto; min-width: 0; margin-right: auto; }
.logo img { height: clamp(1.75rem, 2.6vw, 2.25rem); width: auto; max-width: 100%; object-fit: contain; object-position: left; }
.site-header > .btn, .menu { flex: none; }
.nav { display: flex; gap: clamp(1rem, 2vw, 2rem); }
.nav a { font-weight: 500; text-decoration: none; padding-block: 0.5rem; }
.nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--verde); text-underline-offset: 0.3em; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; min-height: 2.75rem; display: flex; align-items: center; padding-inline: 0.25rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu:not([open]) nav { display: none; }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); color: #fff; padding: 0.75rem var(--margin) 1.25rem; display: grid; }
.menu nav a { padding-block: 0.85rem; font-size: 1.375rem; font-weight: 700; text-decoration: none; }

/* Línea de piso */
.floor { position: relative; }
.floor-line { position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: clamp(5px, 0.55vw, 8px); background: var(--verde); transform-origin: top; pointer-events: none; }

/* Portada */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter) clamp(1.5rem, 4vw, 4.5rem); padding-block: clamp(1.5rem, 3vw, 3rem) var(--section); }
.hero-text { display: flex; flex-direction: column; }
.hero-text .lead { margin-top: 1.5rem; }
.finder { margin-top: 2rem; max-width: 34rem; }
.finder-row, .serial-row { display: flex; gap: 0.5rem; }
.finder-row .btn, .serial-row .btn { flex: none; }
.vitrina { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; margin-top: 2rem; flex: 1; min-height: 14rem; text-decoration: none; gap: 1rem; background: #fff; }
.vitrina img { width: 100%; height: 100%; max-height: 15rem; object-fit: contain; transition: opacity 110ms ease, filter 110ms ease; }
.vitrina-photo { display: flex; align-self: stretch; align-items: center; min-height: 0; }
.vitrina-text { display: grid; gap: 0.2rem; line-height: 1.25; }
.vitrina-text strong { font-size: var(--t-h3); letter-spacing: -0.01em; line-height: 1.1; }
.vitrina.swapping img { opacity: 0.25; filter: blur(2px); }
.directory-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.directory ul { display: grid; gap: 4px; }
.sign { display: flex; align-items: stretch; gap: 1rem; min-height: clamp(2.75rem, 4.5vh, 3.75rem); padding: 0 0 0 clamp(1rem, 1.6vw, 1.5rem); background: var(--ink); color: #fff; font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.01em; line-height: 1.05; text-decoration: none; transition: transform 200ms var(--ease-out), background-color 160ms ease; }
.sign-name { flex: 1; align-self: center; padding-block: 0.5rem 0.25rem; }
.sign-count { align-self: center; padding-top: 0.2rem; font-size: var(--t-lead); font-weight: 500; opacity: 0.95; }
.sign .arrow { flex: none; align-self: stretch; width: 2.75rem; height: auto; padding: 0.6rem; background: var(--verde); }
.sign:active { transform: scale(0.99); }

.ficha-section { padding-block: var(--section); }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.split-text h1, .split-text h2 { max-width: 16ch; }
.split-text .lead { margin-top: 1.5rem; }
.serial { margin-top: 2.25rem; max-width: 34rem; }
.field-ink input { box-shadow: none; } /* taste-skill-ignore */
.field-ink .btn { background: var(--verde); color: #fff; }
.serial-msg { margin-top: 0.75rem; min-height: 1.5em; font-weight: 500; }
.tag { background: #fff; color: var(--ink); padding: clamp(1.25rem, 2.2vw, 2rem); transform: rotate(-1.2deg); }
.tag-head { background: var(--ink); color: #fff; font-weight: 700; padding: 0.5rem 0.75rem 0.3rem; margin: 0 0 1rem; }
.tag dl { margin: 0; display: grid; gap: 4px; }
.tag dl > div { background: var(--surface); padding: 0.6rem 0.75rem 0.45rem; }
.tag dt { font-size: var(--t-small); color: var(--muted); line-height: 1.3; }
.tag dd { margin: 0; font-size: var(--t-lead); font-weight: 700; line-height: 1.2; }

.showcase { padding-block: var(--section); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem 2rem; margin-bottom: clamp(1.5rem, 3vw, 3rem); }
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.mosaic > div:first-child { grid-column: span 2; grid-row: span 2; }
.mosaic > div > .tile { height: 100%; }

/* Vitrinas de producto */
.tile { display: flex; flex-direction: column; text-decoration: none; background: #fff; }
.tile-photo { display: flex; flex: 1; align-items: center; justify-content: center; aspect-ratio: 1; min-height: 0; margin-bottom: 0.75rem; overflow: hidden; }
.tile-photo img { width: 100%; height: 100%; object-fit: contain; transition: transform 300ms var(--ease-out); }
.tile-name { font-size: var(--t-lead); font-weight: 700; line-height: 1.15; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.tile-type { font-size: var(--t-small); line-height: 1.3; min-height: 1.3em; color: var(--ink); }
.tile:active { transform: scale(0.985); }
.tile { transition: transform 160ms var(--ease-out); }
.tile-big .tile-name { font-size: var(--t-h3); }
.tile-big .tile-type { font-size: 1.0625rem; }

.service-section { padding-block: var(--section); }
.service-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.service-grid .lead { margin-top: 1.25rem; }
.service-grid .btn { margin-top: 2rem; }
.service-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem clamp(1.5rem, 3vw, 3rem); }
.service-cols h2, .service-cols h3 { font-size: var(--t-h3); margin-bottom: 0.75rem; }

.brands { display: grid; gap: clamp(2rem, 4vw, 3.5rem); padding-block: var(--section); }
.brands-col > h2 { margin-bottom: 2rem; }
.brands-col > h3 { margin-bottom: 0.75rem; }
.logos { display: grid; align-items: center; gap: clamp(0.5rem, 1.5vw, 1.5rem); }
.logos li { overflow: hidden; }
.logos img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; scale: 1.18; }
.logos-big { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.logos-small { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.logos img.wide { scale: 1; padding: 8%; }

.story { padding-block: var(--section); }
.story-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 5vw, 6rem); align-items: center; }
.story-year { margin-bottom: 0.75rem; font-size: clamp(4.5rem, 8vw, 8rem); font-weight: 800; line-height: 0.82; letter-spacing: -0.04em; color: var(--azul); }
.story blockquote { margin: 1.25rem 0 1.75rem; }
.story blockquote p { font-size: var(--t-lead); line-height: 1.38; }
blockquote footer { margin-top: 0.75rem; font-weight: 700; }

/* Cierre */
.close { background: var(--ink); color: #fff; padding-block: var(--section) 1.5rem; }
.close-grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.close-phone { display: block; font-size: clamp(3.25rem, 17vw, 19rem); font-weight: 800; line-height: 1.3; letter-spacing: -0.035em; text-decoration: none; margin: 0 0 0.5rem; white-space: nowrap; color: #fff; }
.close-facts { display: grid; grid-template-columns: 2fr 1.2fr 1.6fr auto; gap: 1.25rem clamp(1.5rem, 3vw, 3rem); align-items: start; }
.legal { margin-top: clamp(2rem, 5vw, 4rem); font-size: var(--t-small); }

/* Catálogo */
.cat-head { padding-block: clamp(1.5rem, 3vw, 3rem) 2rem; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1rem clamp(2rem, 5vw, 6rem); align-items: end; }
.cat-head h1 { max-width: 13ch; }
.cat-head .lead { grid-column: 1; }
.cat-head .finder { grid-column: 2; grid-row: 1 / span 2; margin: 0; max-width: none; align-self: end; }
.filter-status { grid-column: 2; font-weight: 700; min-height: 1.5em; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: clamp(2rem, 4vw, 4rem); }
.chip { background: var(--surface); color: var(--ink); padding: 0.55rem 0.8rem 0.35rem; min-height: 2.75rem; display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; line-height: 1.1; transition: transform 160ms var(--ease-out); }
.chip:active { transform: scale(0.97); }
.dept { padding-bottom: clamp(2.5rem, 6vw, 6rem); }
.dept-sign { background: var(--ink); color: #fff; font-size: clamp(1.75rem, 3.6vw, 3.25rem); margin-bottom: var(--gutter); }
.dept-sign-in { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: 0.9rem 0.6rem; }
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(1.5rem, 2.4vw, 2.5rem) var(--gutter); grid-auto-flow: dense; }
.grid .tile-big:not(.tile-flat) { grid-column: span 2; grid-row: span 2; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; }
.empty { padding-block: 2rem var(--section); }
.empty p { margin-top: 1rem; max-width: 34em; }

/* Ficha de producto */
.crumbs { display: flex; gap: 0.5rem; padding-block: 1rem; font-weight: 500; }
.product { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4.5rem); padding-bottom: var(--section); align-items: start; }
.gallery-main { background: #fff; aspect-ratio: 5 / 4; display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 3vw, 3rem); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.thumb { display: block; width: clamp(4rem, 7vw, 6rem); aspect-ratio: 1; padding: 0.35rem; opacity: 0.72; transition: opacity 160ms ease; }
.thumb[aria-current] { opacity: 1; outline: 3px solid var(--ink); outline-offset: -3px; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.product h1 { font-size: clamp(2.25rem, 4vw, 4rem); overflow-wrap: anywhere; }
.product-info .lead { margin-top: 1.25rem; }
.product-info .note { margin-top: 1.25rem; }
.prose { margin-top: 2.5rem; max-width: 65ch; }
.prose h2 { font-size: 1.375rem; letter-spacing: -0.005em; margin: 1.75rem 0 0.5rem; }
.prose p + p { margin-top: 0.35rem; }
.related { padding-bottom: var(--section); }
.related h2 { margin-bottom: 1.5rem; }

/* Ficha QR */
.qr { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 4vw, 4.5rem); padding-block: clamp(1rem, 3vw, 3rem) var(--section); align-items: start; }
.qr h1 { font-size: clamp(2rem, 3.6vw, 3.5rem); overflow-wrap: anywhere; }
.qr .lead { margin-top: 1.25rem; }
.qr-card { margin: 0; }
.qr-card img { width: 100%; }

/* Búsqueda, formularios, nosotros */
.lookup.field-ink { background: var(--azul); }
.lookup.field-ink .btn { background: #fff; color: var(--ink); }
.lookup { padding-block: clamp(3rem, 8vw, 7rem) var(--section); }
.lookup-help h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 0.75rem; }
.lookup-help .btn { margin-top: 0.5rem; }
.page-head { padding-block: clamp(3rem, 7vw, 6rem); }
.page-head h1 { font-size: clamp(2.5rem, 4.6vw, 4.5rem); }
.form-section { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 6rem); padding-block: clamp(3rem, 7vw, 6rem) var(--section); align-items: start; }
.form-section .lead { margin-block: 1.25rem; }
.mail-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem var(--gutter); background: var(--surface); padding: clamp(1.25rem, 2.5vw, 2.5rem); }
.mail-form .field:has(textarea), .mail-form .note { grid-column: 1 / -1; }
.mail-form .btn { grid-column: 1; justify-self: start; }
.contact-phone { display: block; font-size: clamp(3rem, 6vw, 6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; text-decoration: none; margin-bottom: 1.25rem; color: var(--verde); }
.about { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4.5rem); padding-block: clamp(2rem, 5vw, 5rem) var(--section); align-items: start; }
.about h1 { font-size: clamp(2.5rem, 4.2vw, 4rem); }
.about-quote { margin: 1.75rem 0 0; }
.about-quote p + p { margin-top: 0.85rem; }

.lenis.lenis-smooth { scroll-behavior: auto !important; }
.split-word { will-change: transform; }

@media (hover: hover) and (pointer: fine) {
  .sign:hover { background: var(--azul); }
  .chip:hover { background: var(--ink); color: #fff; }
  .tile:hover .tile-name { text-decoration: underline; text-underline-offset: 0.18em; }
  .btn:hover { background: var(--ink); }
  .btn-light:hover, .lookup.field-ink .btn:hover { background: var(--surface); color: var(--ink); }
  .field-ink:not(.lookup) .btn:hover { background: var(--azul); color: #fff; }
  .more:hover .arrow { transform: translateX(5px); }
  .tile:hover img { transform: scale(1.04); }
  .nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.3em; }
  .thumb:hover { opacity: 1; }
}

@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; }
  .site-header { min-height: 4rem; gap: 0.75rem; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  :root { --h1: clamp(2.5rem, 8.4vw, 4.25rem); --h2: clamp(2rem, 6vw, 3rem); }
  .hero, .split, .service-grid, .brands, .story-grid, .close-grid, .cat-head, .product, .qr, .form-section, .about { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 0.75rem; }
  .finder { margin-top: 1.5rem; }
  .vitrina { display: none; }
  .directory { margin-top: 1.5rem; }
  .sign { min-height: 3.25rem; }
  .cat-head .finder, .filter-status, .cat-head .lead { grid-column: 1; grid-row: auto; }
  .tag { transform: none; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-cols { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr-side { order: 0; }
  .brands { align-items: start; }
  .close-facts { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 480px) {
  .mail-form { grid-template-columns: minmax(0, 1fr); }
  .btn-small { padding-inline: 0.9rem; }
  .finder-row .btn, .serial-row .btn { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-property: opacity, color, background-color !important; }
  .floor-line { transform: none !important; }
  .tile:hover img { transform: none; }
}

@media print {
  .site-header, .close, .floor-line, .actions { display: none; }
}

/* Foto de servicio técnico y muestra de catálogo en páginas internas */
.service-photo { margin: 0; }
.service-photo img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }
.about-sample { padding-bottom: var(--section); }
.about-sample h2 { margin-bottom: clamp(1.5rem, 3vw, 3rem); }

/* Video de Xenia Molina */
.video { position: relative; margin: 0; background: var(--ink); }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--ink); }
.video-play { position: absolute; left: 50%; top: calc((100% - 2.25rem) / 2); width: clamp(4rem, 6vw, 5.5rem); aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; padding: 0; border: 0; background: var(--verde); color: #fff; cursor: pointer; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.video-play svg { width: 55%; height: 55%; }
.video-play:active { transform: scale(0.97); }
.video figcaption { background: var(--ink); color: #fff; padding: 0.55rem 0.9rem 0.35rem; min-height: 2.25rem; font-size: var(--t-small); line-height: 1.3; }
@media (hover: hover) and (pointer: fine) { .video-play:hover { background: var(--ink); } }
@media (max-width: 820px) { .logos-big { grid-template-columns: repeat(3, minmax(0, 1fr)); } .logos-small { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Especificaciones de producto */
.specs { margin: 2rem 0 0; display: grid; gap: 4px; }
.specs > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; background: var(--surface); padding: 0.6rem 0.8rem 0.45rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; }

/* Portada: presentación y showcase de slides */
.intro { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 1.25rem clamp(2rem, 4vw, 4rem); align-items: end; padding-block: 0.5rem 1.25rem; }
.intro h1 { font-size: clamp(2.5rem, 4.1vw, 4rem); }
.intro-text .lead { margin-top: 0.6rem; max-width: none; }
.intro .finder { margin: 0; max-width: none; }
.showcase-slides { position: relative; }
.slides-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.slides-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); min-height: clamp(23rem, calc(100vh - 21rem), 42rem); background: #fff; }
.slide-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.25rem; padding: clamp(1.75rem, 4vw, 4rem) clamp(1.5rem, 4vw, 4rem) clamp(1.75rem, 4vw, 4rem) var(--margin); color: #fff; }
.slide-text h2 { font-size: clamp(2.25rem, 4.4vw, 4.25rem); }
.slide-text p { font-size: var(--t-lead); line-height: 1.4; max-width: 28em; }
.slide-ink .slide-text { background: var(--ink); }
.slide-azul .slide-text { background: var(--azul); }
.slide-verde .slide-text { background: var(--verde); }
.slide-photo { position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 3vw, 3rem); background: #fff; text-decoration: none; min-width: 0; overflow: hidden; }
.slide-photo img { width: 100%; height: 100%; max-height: clamp(19rem, calc(100vh - 25rem), 38rem); object-fit: contain; transition: transform 600ms var(--ease-out); }
.slide-model { position: absolute; right: var(--margin); bottom: 1rem; font-weight: 700; }
.slides-controls { display: flex; align-items: center; gap: 0.75rem; padding-block: 1rem 0; }
.slides-dots { display: flex; gap: 0.25rem; margin-right: auto; }
.dot { width: 2.75rem; height: 2.75rem; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.dot::after { content: ''; position: absolute; left: 0.25rem; right: 0.25rem; top: calc(50% - 2px); height: 4px; background: var(--surface); transition: background-color 160ms ease; }
.dot[aria-current]::after { background: var(--verde); }
.slides-pause, .slides-arrow { min-height: 2.75rem; min-width: 2.75rem; border: 0; background: var(--surface); color: var(--ink); font-family: inherit; font-weight: 700; font-size: var(--t-small); cursor: pointer; padding-inline: 0.75rem; display: inline-grid; place-items: center; transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.slides-pause:active, .slides-arrow:active { transform: scale(0.97); }
.slides-arrow .arrow, .slides-arrow svg { width: 1.25rem; height: 1.25rem; }
.depts { padding-block: clamp(3rem, 6vw, 5.5rem) var(--section); }
.depts h2 { margin-bottom: 1.5rem; }
.depts ul { display: flex; flex-wrap: wrap; gap: 4px; }
.depts .chip span { margin-left: 0.5rem; color: var(--muted); font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .slide-photo:hover img { transform: scale(1.03); }
  .slides-pause:hover, .slides-arrow:hover, .dot:hover::after { background: var(--ink); color: #fff; }
  .depts .chip:hover span { color: #fff; }
}
@media (max-width: 820px) {
  .intro { grid-template-columns: minmax(0, 1fr); }
  .slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 0; }
  .slide-photo { order: -1; aspect-ratio: 4 / 3; padding: 1rem; }
  .slide-photo img { max-height: none; }
  .slide-text { padding: 1.5rem var(--margin); justify-content: flex-start; }
  .slide-text h2 { font-size: clamp(2rem, 8.4vw, 3rem); }
  .dot { width: 1.5rem; }
  .slides-arrow { display: none; }
  .slides-dots { flex-wrap: wrap; }
}
