@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500&display=swap');

:root {
  --blue: #0b207e;
  --navy: #071653;
  --red: #e65742;
  --yellow: #f1ca57;
  --paper: #f4f0e8;
  --cream: #fffaf0;
  --ink: #172040;
  --mono: 'DM Mono', monospace;
  --sans: 'DM Sans', Arial, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .7rem 1rem; background: #fff; color: var(--blue); }
.skip-link:focus { top: 1rem; }

.catalog-header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 86px 1fr auto;
  align-items: center;
  gap: 34px;
  min-height: 88px;
  padding: 8px 5vw;
  border-bottom: 1px solid rgba(11, 32, 126, .14);
  background: #fffdf8;
  color: var(--blue);
}

.catalog-brand img { width: 70px; height: 70px; object-fit: contain; }
.catalog-nav { display: flex; justify-content: center; gap: 28px; font: 500 .67rem var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.catalog-nav a { padding: 8px 0; border-bottom: 1px solid transparent; }
.catalog-nav a:hover { border-color: currentColor; }
.catalog-header-cta { padding: 11px 15px; border: 1px solid currentColor; font-size: .76rem; font-weight: 700; }
.catalog-header-cta:hover { background: var(--blue); color: #fff; }
.catalog-menu { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--blue); cursor: pointer; }
.catalog-menu i { display: block; width: 25px; height: 2px; margin: 5px auto; background: currentColor; transition: transform .22s ease; }
.catalog-menu[aria-expanded='true'] i:first-child { transform: translateY(4px) rotate(45deg); }
.catalog-menu[aria-expanded='true'] i:last-child { transform: translateY(-3px) rotate(-45deg); }

.theme-esquiu { --school-bg: #fff; --school-ink: var(--blue); --school-accent: #83a83f; --sample-main: var(--blue); --sample-detail: #83a83f; }
.theme-penaloza { --school-bg: #df4b45; --school-ink: #fff; --school-accent: #f6c547; --sample-main: #313894; --sample-detail: #f7c51e; }
.theme-peralta { --school-bg: var(--navy); --school-ink: #fff; --school-accent: #f59a23; --sample-main: #0c4774; --sample-detail: #f59a23; }
.theme-sarmiento { --school-bg: #3266c9; --school-ink: #fff; --school-accent: #f5ca25; --sample-main: #29157a; --sample-detail: #f5ca25; }

.catalog-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 7vw;
  min-height: 610px;
  overflow: hidden;
  padding: 74px 8vw 86px;
  border-bottom: 1px solid rgba(11, 32, 126, .13);
  background: var(--school-bg);
  color: var(--school-ink);
}

.catalog-hero::before {
  content: '';
  position: absolute;
  top: -35%;
  right: -6%;
  width: min(50vw, 680px);
  aspect-ratio: 1;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .12;
}

.catalog-hero::after {
  content: '';
  position: absolute;
  right: 8vw;
  bottom: 38px;
  width: 150px;
  height: 7px;
  background: repeating-linear-gradient(90deg, var(--school-accent) 0 12px, transparent 12px 20px);
}

.catalog-hero > * { position: relative; z-index: 1; }
.breadcrumbs { display: flex; gap: 9px; margin-bottom: 45px; font: 500 .6rem var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
.breadcrumbs a { border-bottom: 1px solid currentColor; }
.catalog-kicker { margin: 0 0 15px; color: var(--school-accent); font: 600 .66rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.catalog-hero h1 { margin: 0 0 25px; font: 500 clamp(4.4rem, 8vw, 8.5rem)/.82 var(--serif); letter-spacing: -.065em; }
.catalog-hero-copy > p:not(.catalog-kicker) { max-width: 510px; margin: 0 0 30px; font-size: 1rem; line-height: 1.65; opacity: .82; }
.jump-link { display: inline-flex; align-items: center; gap: 14px; font-size: .8rem; font-weight: 700; }
.jump-link b { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-weight: 400; transition: .2s ease; }
.jump-link:hover b { border-color: var(--school-accent); background: var(--school-accent); color: var(--blue); }

.catalog-emblem-wrap { display: grid; place-items: center; justify-self: end; width: min(100%, 390px); aspect-ratio: 1; }
.catalog-emblem {
  position: relative;
  display: grid;
  width: 72%;
  aspect-ratio: 1;
  place-items: center;
  padding: 15%;
  border: 1px solid rgba(11, 32, 126, .24);
  border-radius: 42% 42% 48% 41%;
  background: var(--cream);
  box-shadow: 14px 16px 0 color-mix(in srgb, var(--school-accent) 72%, transparent);
  color: var(--blue);
  transform: rotate(-3deg);
}
.catalog-emblem::after { content: ''; position: absolute; inset: 13px; border: 1px dashed rgba(11, 32, 126, .42); border-radius: 38% 38% 44% 37%; }
.catalog-emblem img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; }
.catalog-emblem.logo-wide { overflow: hidden; }
.catalog-emblem.logo-wide img { position: absolute; left: 15%; top: 15%; width: auto; max-width: none; height: 70%; }
.catalog-number { position: absolute; top: 1%; right: 5%; font: 700 clamp(7rem, 14vw, 14rem)/1 var(--sans); letter-spacing: -.09em; opacity: .06; }

.collection { padding: 110px 8vw 125px; background: var(--paper); }
.collection-heading { display: grid; grid-template-columns: 1fr .7fr; align-items: end; gap: 7vw; margin-bottom: 52px; }
.collection-heading .catalog-kicker { color: var(--red); }
.collection-heading h2 { max-width: 740px; margin: 0; color: var(--blue); font: 500 clamp(3.2rem, 5.4vw, 6rem)/.93 var(--serif); letter-spacing: -.055em; }
.collection-heading > p:last-child { max-width: 390px; margin: 0; font-size: .9rem; line-height: 1.65; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-card { overflow: hidden; background: #fffdf8; box-shadow: 0 1px 0 rgba(11, 32, 126, .12); transition: transform .26s ease, box-shadow .26s ease; }
.product-card:hover { z-index: 2; transform: translateY(-6px); box-shadow: 0 22px 46px rgba(9, 23, 76, .14); }
.product-card-featured { display: grid; grid-template-columns: 1.12fr .88fr; grid-column: 1 / -1; }
.product-visual { position: relative; display: grid; min-height: 340px; place-items: center; overflow: hidden; background: #eeeeee; }
.product-card-featured .product-visual { min-height: 455px; }
.product-visual::before { content: ''; position: absolute; width: 75%; aspect-ratio: 1; border: 1px solid var(--sample-main); border-radius: 50%; opacity: .17; }
.product-visual::after { content: ''; position: absolute; z-index: 3; inset: 17px; border: 1px solid color-mix(in srgb, var(--sample-main) 22%, transparent); pointer-events: none; }
.product-index { position: absolute; right: 20px; bottom: 14px; z-index: 4; color: var(--sample-main); font: 600 2.3rem var(--serif); opacity: .38; }

.product-photo { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; padding: clamp(14px, 2.3vw, 32px); object-fit: contain; transition: transform .5s cubic-bezier(.2, .75, .25, 1); }
.product-card:hover .product-photo { transform: scale(1.025); }

.product-info { padding: 30px; }
.product-card-featured .product-info { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 64px); }
.product-category { margin: 0 0 9px; color: var(--red); font: 600 .58rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.product-info h3 { margin: 0 0 12px; color: var(--blue); font: 500 clamp(1.8rem, 3vw, 3rem)/.98 var(--serif); letter-spacing: -.04em; }
.product-info > p:not(.product-category) { max-width: 390px; margin: 0 0 25px; font-size: .84rem; line-height: 1.6; }
.product-link { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 12px; border-top: 1px solid rgba(11, 32, 126, .28); color: var(--blue); font: 600 .63rem var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.product-link span { font-size: 1.1rem; transition: transform .2s ease; }
.product-link:hover span { transform: translate(3px, -3px); }

.catalog-contact { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: end; gap: 8vw; overflow: hidden; padding: 96px 8vw; background: var(--school-bg); color: var(--school-ink); }
.catalog-contact::after { content: ''; position: absolute; right: -70px; bottom: -90px; width: 270px; height: 270px; border: 38px solid var(--school-accent); border-radius: 50%; opacity: .45; }
.catalog-contact > * { position: relative; z-index: 1; }
.catalog-contact h2 { max-width: 720px; margin: 0; font: 500 clamp(3rem, 5vw, 5.7rem)/.93 var(--serif); letter-spacing: -.055em; }
.catalog-contact-action { max-width: 430px; }
.catalog-contact-action p { margin: 0 0 22px; line-height: 1.65; opacity: .82; }
.catalog-whatsapp { display: flex; justify-content: space-between; align-items: center; gap: 20px; width: min(100%, 350px); padding: 16px 18px; background: #25b95f; color: #fff; font-weight: 700; transition: transform .2s ease, background .2s ease; }
.catalog-whatsapp:hover { background: #188c49; transform: translateY(-3px); }

.whatsapp-float { position: fixed; right: clamp(18px, 3vw, 34px); bottom: clamp(18px, 3vw, 34px); z-index: 80; display: grid; width: 58px; height: 58px; place-items: center; border: 3px solid #fff; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 9px 28px rgba(4, 35, 18, .28); transition: transform .2s ease; }
.whatsapp-float:hover { transform: translateY(-4px) scale(1.04); }
.whatsapp-float svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.catalog-footer { display: grid; grid-template-columns: 75px 1fr 1fr auto; align-items: center; gap: 25px; padding: 27px 8vw; background: #040f3b; color: #fff; }
.catalog-footer img { width: 62px; height: 62px; }
.catalog-footer p { margin: 0; font: 500 1.1rem/1.15 var(--serif); }
.catalog-footer span { color: #b9c5ef; font: 500 .58rem var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.catalog-footer a { border-bottom: 1px solid currentColor; font-size: .72rem; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }

:is(.catalog-menu, .catalog-nav a, .catalog-header-cta, .jump-link, .product-link, .catalog-whatsapp, .whatsapp-float):focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

@media (max-width: 850px) {
  .catalog-header { grid-template-columns: 68px 1fr auto; min-height: 76px; padding: 5px 5vw; }
  .catalog-brand img { width: 58px; height: 58px; }
  .catalog-header-cta { display: none; }
  .catalog-menu { display: block; grid-column: 3; }
  .catalog-nav { position: absolute; top: 75px; left: 0; right: 0; display: none; flex-direction: column; align-items: center; gap: 12px; padding: 26px; background: #fffdf8; box-shadow: 0 18px 30px rgba(5, 17, 72, .16); }
  .catalog-nav.open { display: flex; }
  .catalog-hero { grid-template-columns: 1fr; gap: 55px; min-height: auto; padding: 65px 8vw 78px; }
  .catalog-hero-copy { max-width: 650px; }
  .catalog-emblem-wrap { justify-self: center; width: min(78vw, 380px); }
  .catalog-number { top: auto; right: 2%; bottom: 0; }
  .collection { padding: 82px 6vw 95px; }
  .collection-heading { grid-template-columns: 1fr; gap: 25px; }
  .product-card-featured { grid-template-columns: 1fr; }
  .product-card-featured .product-visual { min-height: 390px; }
  .catalog-contact { grid-template-columns: 1fr; gap: 42px; padding: 78px 8vw; }
  .catalog-contact-action { max-width: 520px; }
  .catalog-footer { grid-template-columns: 65px 1fr; }
  .catalog-footer span, .catalog-footer > a { grid-column: span 1; }
}

@media (max-width: 560px) {
  .catalog-hero { padding: 48px 6vw 66px; }
  .breadcrumbs { margin-bottom: 33px; }
  .catalog-hero h1 { font-size: clamp(3.8rem, 19vw, 5.4rem); }
  .catalog-emblem { width: 78%; box-shadow: 9px 10px 0 color-mix(in srgb, var(--school-accent) 72%, transparent); }
  .product-grid { grid-template-columns: 1fr; }
  .product-card-featured { grid-column: auto; }
  .product-visual, .product-card-featured .product-visual { min-height: 330px; }
  .product-info, .product-card-featured .product-info { padding: 27px; }
  .catalog-contact { padding: 64px 6vw; }
  .catalog-footer { grid-template-columns: 60px 1fr; padding: 24px 6vw; }
  .catalog-footer span, .catalog-footer > a { grid-column: span 2; }
  .whatsapp-float { width: 54px; height: 54px; }
}

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