/* Quesos Romero Hidalgo — el motivo es la rueda de queso: el círculo */

:root {
  --bg: #f7f7f7;
  --surface: #e3eefa;
  --ink: #08215c;
  --muted: #455985;
  --accent: #008add;      /* azul claro del logo */
  --accent-ink: #00143f;
  --navy: #013183;        /* azul marino del logo */
  --on-navy: #eef4ff;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.25rem, 2rem + 6vw, 6.75rem);

  --m: clamp(16px, 2.2vw, 32px);
  --gap: clamp(96px, 12vw, 200px);
  --ease: cubic-bezier(.22, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure, address { margin: 0; padding: 0; font-style: normal; }
ul { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
html { scrollbar-color: var(--navy) var(--bg); scrollbar-width: thin; }
input { caret-color: #fff; }
a { text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
.about-panel :focus-visible, .coupon :focus-visible { outline-color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--m); top: -80px; background: var(--ink); color: #fff; padding: 12px 18px; z-index: 50; }
.skip:focus { top: 12px; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1; text-wrap: balance; }

/* Botón: una sola forma, el círculo hecho píldora */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  font: 600 1.0625rem/1 "Albert Sans", system-ui, sans-serif; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-quiet { background: var(--surface); color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: #fff; }
.btn-small { min-height: 44px; padding: 0 22px; }
.btn-wide { width: 100%; min-height: 56px; background: #fff; color: var(--navy); }
.btn-wide:hover { background: var(--accent); color: var(--accent-ink); }

/* Barra */
.bar {
  position: absolute; z-index: 20; top: 0; left: 0; right: 0;
  display: flex; align-items: center; gap: 28px;
  padding: 18px var(--m);
}
.bar-logo { display: block; width: clamp(150px, 15vw, 210px); flex: none; mix-blend-mode: multiply; }
.bar-nav { margin-left: clamp(8px, 3vw, 56px); display: flex; gap: clamp(20px, 3vw, 44px); }
.bar-nav a { text-decoration: none; font-weight: 500; padding: 8px 0; transition: color .2s var(--ease); }
.bar-nav a:hover { color: var(--accent); }
.bar .btn { min-height: 46px; padding: 0 24px; margin-left: auto; position: relative; z-index: 2; }

/* Hero */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; align-items: center;
  padding: 110px var(--m) 64px;
}
.hero-copy { position: relative; z-index: 2; max-width: min(44vw, 760px); }
.hero h1 { font-size: clamp(3.25rem, 6.2vw, 6rem); }
.hero-lead { margin-top: 28px; font-size: var(--step-lead); line-height: 1.35; max-width: 30ch; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-wheel {
  position: absolute; z-index: 1;
  width: 100svh; height: 100svh; right: -9svh; top: 50%;
  margin-top: -48svh; border-radius: 50%; overflow: hidden;
  background: var(--accent);
  animation: wheel-in 1.1s var(--ease) both;
}
.hero-wheel img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; transform-origin: 50% 50%; will-change: transform; }
@keyframes wheel-in { from { transform: translateX(14vw) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }

/* Nosotros */
.about { padding: var(--gap) 20px 0; }
.about-panel {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--on-navy);
  min-height: 110svh;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px;
  padding: 56px;
}
.about-head { grid-column: 1; grid-row: 1; }
.about-head h2 { font-size: var(--step-head); color: #fff; max-width: 12ch; }
.about-values { margin-top: 32px; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.015em; max-width: 28em; color: var(--on-navy); }
.about-photo {
  grid-column: 1; grid-row: 2; align-self: end;
  width: min(38vw, 560px); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  margin: 40px 0 -18% 0;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-points { grid-column: 2; grid-row: 1 / span 2; padding-top: 12px; display: flex; flex-direction: column; gap: 40px; align-items: flex-start; max-width: 520px; }
.about-points h3 { font-size: var(--step-lead); letter-spacing: -0.02em; color: #fff; }
.about-points p { margin-top: 10px; font-size: var(--step-body); line-height: 1.55; color: var(--on-navy); }

/* Productos */
.products {
  position: relative; margin-top: var(--gap); min-height: 100svh;
  padding: 0 var(--m);
  display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 0 var(--m);
}
.products-stage { grid-column: 2; grid-row: 1; position: relative; display: flex; flex-direction: column; align-items: center; align-self: center; }
.disc {
  position: relative; width: min(46vw, 70svh); aspect-ratio: 1; border-radius: 50%;
  background: var(--accent); transition: background-color .4s var(--ease);
}
.disc[data-tone="dark"] { background: var(--navy); }
.disc-photos { position: absolute; inset: 9%; border-radius: 50%; overflow: hidden; transform: translate(6%, -5%); }
.disc-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s var(--ease); }
.disc-photos img.on { opacity: 1; }
.fact { align-self: flex-end; margin-top: 24px; max-width: 24em; font-size: 1.0625rem; line-height: 1.45; text-align: left; }
.products-list { grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 8svh; }
.products-list h2 { font-size: clamp(1.75rem, 2.9vw, 2.75rem); color: var(--muted); margin-bottom: 8px; letter-spacing: -0.03em; }
.products-list ul { display: flex; flex-direction: column; }
.products-list button {
  appearance: none; background: none; border: 0; padding: 4px 0; text-align: left; cursor: pointer;
  font: 600 clamp(1.75rem, 2.9vw, 2.75rem)/1.15 "Albert Sans", system-ui, sans-serif; letter-spacing: -0.03em;
  color: var(--muted); transition: color .2s var(--ease), transform .25s var(--ease);
}
.products-list button:hover { transform: translateX(8px); }
.products-list button.on, .products-list button:hover, .products-list button:focus-visible { color: var(--ink); }

/* Galería */
.gallery {
  margin-top: var(--gap); background: var(--surface);
  padding: clamp(72px, 10vw, 140px) var(--m);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--m); align-items: center;
}
.gallery-copy h2 { font-size: var(--step-head); max-width: 11ch; }
.gallery-copy p { margin-top: 28px; max-width: 26em; font-size: var(--step-lead); line-height: 1.35; letter-spacing: -0.01em; }
.frame { justify-self: center; text-align: center; }
.frame-disc { position: relative; width: min(40vw, 62svh); aspect-ratio: 1; border-radius: 50%; overflow: hidden; margin: 0 auto; cursor: pointer; }
.frame-disc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease), transform 6s linear; transform: scale(1.06); }
.frame-disc img.on { opacity: 1; transform: scale(1); }
.frame figcaption { margin-top: 18px; font-size: var(--step-small); font-weight: 500; }

/* Contacto: el cupón */
.contact { padding: var(--gap) var(--m) 0; }
.coupon {
  position: relative; background: var(--navy); color: #fff;
  display: grid; grid-template-columns: 46% 54%; min-height: 440px; max-width: 1240px; margin: 0 auto;
}
.coupon::before, .coupon::after {
  content: ""; position: absolute; left: 46%; width: 28px; height: 28px; margin-left: -14px;
  border-radius: 50%; background: var(--bg);
}
.coupon::before { top: -14px; }
.coupon::after { bottom: -14px; }
.coupon-text { padding: 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.coupon-text h2 { font-size: clamp(1.75rem, 2.9vw, 2.75rem); max-width: 9ch; }
.coupon-text p { font-size: var(--step-body); max-width: 22em; }
.coupon-text a { font-weight: 600; white-space: nowrap; }
.coupon-fields {
  padding: 48px 48px 48px 52px; display: flex; flex-direction: column; gap: 10px; justify-content: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='16'%3E%3Ccircle cx='3' cy='8' r='2.5' fill='%23f7f7f7'/%3E%3C/svg%3E") left top / 6px 16px repeat-y;
}
.coupon-fields input {
  width: 100%; height: 54px; padding: 0 20px; border: 0; border-radius: 999px;
  background: #1d4fae; color: #fff; font: 500 1.0625rem/1 "Albert Sans", system-ui, sans-serif;
}
.coupon-fields input::placeholder { color: #dce8ff; opacity: 1; }
.coupon-fields input:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.coupon-fields .btn { margin-top: 6px; }
.coupon-fields input:user-invalid { background: #7a2b3f; }
.coupon-note { min-height: 1.5em; margin-top: 4px; font-size: var(--step-small); color: #dce8ff; }

/* Pie */
.foot { margin-top: var(--gap); background: var(--surface); padding: clamp(48px, 6vw, 88px) var(--m) 28px; }
.foot-logo { display: block; width: 100%; max-width: 1360px; margin: 0 auto; mix-blend-mode: multiply; }
.foot-cols { max-width: 1360px; margin: 56px auto 0; display: grid; grid-template-columns: 2fr 1fr; gap: var(--m); }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; align-content: start; font-size: var(--step-body); }
.foot-links a { text-decoration: none; font-weight: 500; padding: 8px 0; transition: color .2s var(--ease); }
.foot-links a:hover, .foot-contact a:hover { color: var(--accent); }
.foot-contact { display: grid; gap: 20px; font-size: var(--step-body); }
.foot-contact a { text-decoration: none; font-weight: 500; }
.foot-end { max-width: 1360px; margin: 56px auto 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: var(--step-small); }

/* Revelado al entrar (solo si hay JS; sin JS todo se ve) */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Móvil: su propia composición */
@media (max-width: 860px) {
  .bar { padding: 14px var(--m); }
  .bar-nav { display: none; }
  .bar .btn { margin-left: auto; }
  .bar-logo { width: 150px; }

  .hero { display: block; min-height: 0; padding: 96px var(--m) 0; }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(2.9rem, 14.5vw, 4.5rem); }
  .hero-lead { margin-top: 20px; font-size: 1.1875rem; }
  .hero-actions { margin-top: 24px; }
  .hero-wheel { position: relative; right: auto; top: auto; margin: 36px 0 0 auto; width: 112vw; height: 112vw; transform: none; margin-right: -16vw; }

  .about { padding: 96px 10px 0; }
  .about-panel { display: flex; flex-direction: column; padding: 28px 22px 0; min-height: 0; }
  .about-head { order: 1; }
  .about-points { order: 2; }
  .about-photo { order: 3; }
  .about-head h2 { font-size: clamp(2.25rem, 9vw, 3rem); }
  .about-values { font-size: 1.1875rem; margin-top: 20px; }
  .about-points { margin-top: 36px; padding: 0; gap: 28px; max-width: none; }
  .about-points .btn { width: 100%; }
  .about-photo { width: 86vw; margin: 40px auto -22vw; }

  .products { display: flex; flex-direction: column; min-height: 0; padding-top: 0; }
  .products-stage { width: 100%; min-width: 0; }
  .disc { width: 86vw; }
  .fact { max-width: none; margin-top: 18px; font-size: 1.0625rem; }
  .products-stage { display: block; }
  .products-stage .disc { margin: 0 auto; }
  .products-list { order: 0; padding: 0 0 28px; min-width: 0; width: 100%; max-width: 100%; }
  .products-list h2 { font-size: 1.75rem; }
  .products-list ul { flex-direction: row; flex-wrap: wrap; gap: 2px 24px; padding: 4px 0 8px; }
  .products-list button { font-size: 1.625rem; padding: 6px 0; }
  .products-list button:hover { transform: none; }
  .products { gap: 0; }
  .products-stage { order: 2; }

  .gallery { grid-template-columns: 1fr; padding: 72px var(--m); gap: 36px; }
  .gallery-copy h2 { font-size: clamp(2.25rem, 10vw, 3rem); }
  .gallery-copy p { font-size: 1.1875rem; margin-top: 18px; }
  .frame-disc { width: 78vw; }

  .coupon { grid-template-columns: 1fr; min-height: 0; }
  .coupon::before, .coupon::after { display: none; }
  .coupon-text { padding: 32px 24px 28px; }
  .coupon-fields { padding: 28px 20px 32px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='6'%3E%3Ccircle cx='8' cy='3' r='2.5' fill='%23f7f7f7'/%3E%3C/svg%3E") left top / 16px 6px repeat-x; }
  .coupon-fields { position: relative; }
  .coupon-fields::before, .coupon-fields::after { content: ""; position: absolute; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); }
  .coupon-fields::before { left: -14px; }
  .coupon-fields::after { right: -14px; }

  .foot-cols { grid-template-columns: 1fr; }
  .foot-end { margin-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-wheel { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .products-list button, .frame-disc img, .disc, .disc-photos img { transition: none; }
}
