:root {
  color-scheme: light;
  --navy: #172f5c;
  --blue: #1c3f83;
  --ink: #183359;
  --muted: #516984;
  --ice: #c9d9f3;
  --line: #dfe6f2;
  font: 100%/1.6 "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: #f4f7fc;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(72rem, calc(100% - 3rem)); margin-inline: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid #547dcc; outline-offset: 5px; }
.skip { position: absolute; top: 0; left: 1rem; padding: .5rem 1rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); z-index: 2; }
.top, footer { background: var(--navy); color: white; }
.top { border-bottom: 1px solid #365487; }
.bar, nav { display: flex; align-items: center; }
.bar { justify-content: space-between; min-height: 4.5rem; gap: 1rem; }
nav { gap: clamp(.8rem, 3vw, 2rem); }
nav a { text-decoration: none; font-size: .9375rem; }
nav a:hover { text-decoration: underline; }
.eyebrow { margin: 0 0 .875rem; color: var(--ice); font-size: .875rem; letter-spacing: .15em; font-weight: 750; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2.65rem, 6.4vw, 5rem); letter-spacing: -.065em; }
h1 em { display: block; color: var(--ice); font-style: normal; }
.intro { color: #c3d2e0; font-size: 1.125rem; max-width: 34ch; margin: 1.35rem 0 1.75rem; }
.button { display: inline-block; border-radius: .5rem; padding: .7rem 1.15rem; background: var(--ice); color: var(--navy); text-decoration: none; font-weight: 750; }
.button:hover { background: #eaf0fb; }
article:target { border-color: var(--blue); box-shadow: 0 0 0 2px #c9d9f3; }
.catalog { padding-block: clamp(3rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.055em; }
.filters { display: flex; flex-wrap: wrap; gap: .55rem; margin-block: 1.45rem; }
.filters button { font: inherit; font-weight: 650; border: 1px solid #b9cbd8; border-radius: 2rem; background: white; padding: .35rem 1rem; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--navy); color: white; border-color: var(--navy); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.45rem; align-items: start; }
article { background: white; border: 1px solid var(--line); border-radius: .95rem; padding: 1.25rem; }
.card-top { display: flex; gap: .65rem; align-items: center; color: var(--muted); font-size: .875rem; font-weight: 650; margin-bottom: 1rem; }
.symbol { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: .5rem; background: #eaf0fb; color: #1c3f83; font-size: 1.2rem; }
[data-category="empresa"] .symbol { background: #e2edff; color: #244a79; }
h3 { font-size: 1.35rem; letter-spacing: -.02em; }
article p, .areas p { color: var(--muted); margin: .65rem 0; }
.areas { background: #eaf0fb; padding-block: 3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 55rem) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 33rem) {
  .wrap { width: calc(100% - 2rem); }
  .grid { grid-template-columns: 1fr; }
}

.hero { background: var(--navy); color: white; }
.hero-slide {
  background-image: linear-gradient(90deg, #10264ef5 0%, #10264ee8 30%, #10264e65 70%, #10264e40), var(--hero-photo);
  background-position: center, right center;
  background-repeat: no-repeat;
  background-size: cover;
}
.slide-clinica { --hero-photo: url("images/clinica.jpg"); }
.slide-hoteles { --hero-photo: url("images/hoteles.jpg"); }
.slide-talleres { --hero-photo: url("images/talleres.jpg"); }
.slide-administracion { --hero-photo: url("images/administracion.jpg"); }
.slide-tramas { --hero-photo: url("images/tramas.jpg"); }
.hero-layout {
  display: flex;
  min-height: 32rem;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 3rem;
}
.hero-slide h1, .hero-slide h2 { max-width: 17ch; font-size: clamp(2.65rem, 6.4vw, 5rem); letter-spacing: -.065em; }
.hero-slide em { display: block; color: var(--ice); font-style: normal; }
.hero-slide .intro { max-width: 39ch; color: #eef4ff; }
.carousel-navigation { background: #142c59; border-top: 1px solid #526b99; }
.carousel-controls { display: flex; flex-wrap: wrap; gap: .5rem; padding-block: .85rem; }
.carousel-controls button { border: 1px solid #7890bb; border-radius: .5rem; padding: .55rem .8rem; background: transparent; color: #fff; cursor: pointer; font: inherit; font-weight: 650; }
.carousel-controls button:hover { background: #284778; }
.carousel-controls button[aria-current="true"] { background: var(--ice); border-color: var(--ice); color: var(--navy); }
.carousel-controls button:focus-visible, .hero .button:focus-visible { outline-color: white; }
@media (max-width: 43rem) {
  .hero-slide { background-image: linear-gradient(90deg, #10264ef0, #10264eaa), var(--hero-photo); background-position: center, 67% center; }
  .hero-layout { min-height: 28rem; }
}

.footer-contact { font-style: normal; }

.top .bar { flex-wrap: wrap; padding-block: .65rem; gap: .65rem 1rem; }
.header-brand { display: block; border-radius: .4rem; overflow: hidden; }
.header-brand img { display: block; width: clamp(8.5rem, 20vw, 12rem); height: auto; filter: grayscale(1) invert(1) brightness(1.85) contrast(4); mix-blend-mode: screen; }
.footer-layout { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem; padding-block: 1.5rem; }
.copyright { color: #dce7fb; font-size: .875rem; }
.contact-link:focus-visible, .header-brand:focus-visible { outline-color: white; }
.contact-link { color: white; font-weight: 650; text-decoration: none; }
.contact-link:hover { text-decoration: underline; }
