/* ==========================================================================
   Uniformes Escolares Santa Rita Tlahuapa — hoja de estilos
   Identidad: gabardina marino profundo + hilo dorado + marfil popelina.
   Firma visual: la "puntada corrida" (líneas discontinuas que cosen la página).
   ========================================================================== */

:root {
  --ink: #0d1420;
  --ink-2: #131d2c;
  --ink-3: #1a2638;
  --ivory: #f4efe4;
  --paper: #fbf8f1;
  --gold: #c9a227;
  --gold-2: #e9c862;
  --gold-soft: rgba(201, 162, 39, 0.14);
  --green: #1f7a48;
  --txt-dark: #1c2431;
  --txt-mut: #5b6472;
  --txt-light: #eef1f6;
  --txt-light-mut: #aab4c4;
  --wa: #22c15e;

  --font-display: "Bricolage Grotesque", "Arial Black", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 50px -18px rgba(13, 20, 32, 0.35);
  --shadow-card: 0 10px 34px -14px rgba(13, 20, 32, 0.22);
  --container: 1180px;
  --stitch-gold: 6px 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--txt-dark);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
}

.container--narrow { max-width: 780px; }

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.78rem 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn--lg { padding: 0.95rem 1.9rem; font-size: 1rem; }

.btn--gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold) 55%, #a9871e);
  color: #241c05;
  box-shadow: 0 10px 26px -10px rgba(201, 162, 39, 0.65);
}

.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px rgba(201, 162, 39, 0.8);
}

.btn--ghost {
  background: transparent;
  color: var(--txt-light);
  box-shadow: inset 0 0 0 1.5px rgba(238, 241, 246, 0.35);
}

.btn--ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--gold-2);
  color: var(--gold-2);
  transform: translateY(-2px);
}

/* En fondos claros, ghost se invierte */
.beneficios .btn--ghost,
.colecciones .btn--ghost,
.proceso .btn--ghost,
.faq .btn--ghost {
  color: var(--txt-dark);
  box-shadow: inset 0 0 0 1.5px rgba(28, 36, 49, 0.3);
}

/* ==========================================================================
   NAV
   ========================================================================== */

.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav.is-scrolled {
  background: rgba(13, 20, 32, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(233, 200, 98, 0.18), 0 12px 30px -18px rgba(0, 0, 0, 0.6);
}

.nav__inner {
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 0.7rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--txt-light);
  margin-right: auto;
}

.nav__logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  box-shadow: 0 0 0 2px var(--gold), 0 0 0 5px rgba(201, 162, 39, 0.25);
}

.nav__logo img { width: 100%; height: 100%; object-fit: cover; }

.nav__name { display: flex; flex-direction: column; line-height: 1.15; }

.nav__name strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
}

.nav__name small {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold-2);
  font-weight: 600;
}

.nav__links { display: flex; gap: 1.6rem; }

.nav__links a {
  color: var(--txt-light-mut);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  padding-block: 0.4rem;
  position: relative;
  transition: color 0.25s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  border-bottom: 2px dashed var(--gold-2);
  transition: right 0.3s ease;
}

.nav__links a:hover { color: var(--txt-light); }
.nav__links a:hover::after { right: 0; }

.nav__cta { flex: none; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 0.6rem;
  cursor: pointer;
}

.nav__burger span {
  width: 24px;
  height: 2.5px;
  background: var(--txt-light);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.8rem 1.4rem 1.4rem;
  background: rgba(13, 20, 32, 0.97);
  border-top: 1px dashed rgba(233, 200, 98, 0.35);
}

.nav__mobile a {
  color: var(--txt-light);
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 0.2rem;
}

.nav__mobile .btn { justify-content: center; margin-top: 0.5rem; }

.nav.menu-open .nav__mobile { display: flex; }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(201, 162, 39, 0.13), transparent 60%),
    radial-gradient(800px 500px at -10% 110%, rgba(31, 122, 72, 0.12), transparent 55%),
    linear-gradient(165deg, var(--ink) 0%, var(--ink-2) 60%, #0f1826 100%);
  color: var(--txt-light);
  overflow: hidden;
}

/* trama de tela sutil */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.014) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.014) 0 2px, transparent 2px 6px);
  pointer-events: none;
}

.hero__thread {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__thread path {
  stroke: var(--gold);
  stroke-width: 2.5;
  stroke-dasharray: 14 11;
  opacity: 0.5;
  filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.4));
}

@keyframes threadDraw {
  from { stroke-dashoffset: 2600; opacity: 0; }
  20% { opacity: 0.5; }
  to { stroke-dashoffset: 0; opacity: 0.5; }
}

.hero__thread path { animation: threadDraw 3.2s ease-out 0.3s both; }

.hero__inner {
  position: relative;
  width: min(var(--container), calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(7rem, 14vh, 9.5rem);
  padding-bottom: clamp(3.5rem, 8vh, 6rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-2);
  border: 1px dashed rgba(233, 200, 98, 0.45);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  margin-bottom: 1.4rem;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wa);
  box-shadow: 0 0 0 4px rgba(34, 193, 94, 0.25);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.6vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.hero__title > span { display: block; }

.hero__accent {
  color: var(--gold-2);
  position: relative;
  width: fit-content;
}

.stitch-underline {
  position: absolute;
  left: 2%;
  bottom: -0.12em;
  width: 96%;
  height: 0.18em;
  overflow: visible;
}

.stitch-underline path {
  stroke: var(--gold);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-dasharray: 10 7;
  animation: threadDraw 1.6s ease-out 1.1s both;
}

.hero__sub {
  margin-top: 1.5rem;
  max-width: 54ch;
  font-size: 1.06rem;
  color: var(--txt-light-mut);
}

.hero__sub strong { color: var(--txt-light); }

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.1rem;
}

.hero__proof {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.3rem;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 1px dashed rgba(233, 200, 98, 0.3);
}

.hero__proof li { display: flex; flex-direction: column; gap: 0.1rem; }

.hero__proof strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-2);
}

.hero__proof span {
  font-size: 0.78rem;
  color: var(--txt-light-mut);
  max-width: 15ch;
  line-height: 1.35;
}

.hero__proof-sep {
  width: 1px;
  align-self: stretch;
  background: rgba(238, 241, 246, 0.14);
}

/* Visual derecho */

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 400px);
}

.hero__frame {
  border-radius: 200px 200px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1.5px rgba(233, 200, 98, 0.5),
    0 0 0 12px rgba(233, 200, 98, 0.07),
    var(--shadow-soft);
  position: relative;
}

/* puntada alrededor del arco */
.hero__frame::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px dashed rgba(233, 200, 98, 0.55);
  border-radius: 191px 191px calc(var(--radius-lg) - 6px) calc(var(--radius-lg) - 6px);
  pointer-events: none;
}

.hero__frame img { width: 100%; height: auto; }

.hero__card {
  position: absolute;
  background: rgba(19, 29, 44, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(233, 200, 98, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.hero__card--escudo {
  left: -18%;
  bottom: 9%;
  width: 200px;
  padding: 0.8rem;
}

.hero__card--escudo img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
}

.hero__card--escudo figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding-top: 0.6rem;
}

.hero__card--escudo strong { font-size: 0.82rem; line-height: 1.3; }

.hero__card--escudo span {
  font-size: 0.72rem;
  color: var(--gold-2);
  font-weight: 600;
}

.hero__card--sello {
  top: 6%;
  right: -9%;
  padding: 7px;
  border-radius: 50%;
  animation: floaty 5.5s ease-in-out infinite;
}

.hero__card--sello img { width: 72px; height: 72px; border-radius: 50%; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ==========================================================================
   MARQUEE
   ========================================================================== */

.marquee {
  background: var(--gold);
  color: #241c05;
  overflow: hidden;
  border-block: 3px solid var(--ink);
  position: relative;
}

.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  border-top: 2px dashed rgba(13, 20, 32, 0.5);
}

.marquee::before { top: 5px; }
.marquee::after { bottom: 5px; }

.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  white-space: nowrap;
  width: max-content;
  padding-block: 0.85rem;
  animation: marquee 30s linear infinite;
}

.marquee__track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.marquee__track i { font-style: normal; font-size: 0.8rem; opacity: 0.7; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Encabezados de sección
   ========================================================================== */

section { position: relative; }

.kicker {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.kicker::before {
  content: "";
  width: 34px;
  border-top: 2px dashed currentColor;
  opacity: 0.7;
}

.kicker--gold { color: var(--gold-2); }

.section-head { max-width: 720px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }

.section-head h2,
.bordados__title,
.cierre__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.section-head h2 em,
.bordados__title em,
.cierre__title em {
  font-style: normal;
  color: var(--gold);
}

.section-head__sub {
  margin-top: 1.1rem;
  color: var(--txt-mut);
  font-size: 1.02rem;
  max-width: 56ch;
}

.section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2.5rem;
}

.section-head--split .section-head__sub { margin-top: 0; max-width: 40ch; }

/* ==========================================================================
   BENEFICIOS
   ========================================================================== */

.beneficios {
  background: var(--paper);
  padding-block: clamp(4rem, 9vw, 7rem);
}

.beneficios__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}

.bcard {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem 1.9rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bcard:nth-child(even) { transform: translateY(1.4rem); }

.bcard::before {
  content: "";
  position: absolute;
  inset-inline: 1.3rem;
  top: 0;
  border-top: 3px dashed var(--gold);
  opacity: 0.65;
}

.bcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.bcard:nth-child(even):hover { transform: translateY(calc(1.4rem - 6px)); }

.bcard__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: #8f7318;
  margin-bottom: 1.1rem;
}

.bcard__icon svg { width: 30px; height: 30px; }

.bcard h3 {
  font-family: var(--font-display);
  font-size: 1.13rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bcard p { font-size: 0.92rem; color: var(--txt-mut); }

/* ==========================================================================
   COLECCIONES / GALERÍA
   ========================================================================== */

.colecciones {
  background: var(--ivory);
  padding-block: clamp(4rem, 9vw, 7rem);
}

.galeria__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.galeria__tab {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--txt-mut);
  background: transparent;
  border: 1.5px dashed rgba(28, 36, 49, 0.28);
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.galeria__tab:hover { border-color: var(--gold); color: var(--txt-dark); }

.galeria__tab.is-active {
  background: var(--ink);
  border: 1.5px solid var(--ink);
  color: var(--gold-2);
  box-shadow: 0 8px 22px -10px rgba(13, 20, 32, 0.5);
}

.galeria__body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.galeria__stage { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 1rem; }

.galeria__main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #dfd9cb;
  box-shadow: var(--shadow-card);
  aspect-ratio: 4 / 5;
}

.galeria__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.3s ease;
}

.galeria__main img.is-fading { opacity: 0; }

.galeria__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(13, 20, 32, 0.85);
  color: var(--gold-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.galeria__zoom:hover { transform: scale(1.08); background: var(--ink); }

.galeria__thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-height: 520px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding: 2px;
}

.galeria__thumb {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: none;
  cursor: pointer;
  flex: none;
  width: 84px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.galeria__thumb img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  object-position: top center;
}

.galeria__thumb:hover { transform: translateY(-2px); }

.galeria__thumb.is-active { border-color: var(--gold); box-shadow: 0 6px 16px -8px rgba(201, 162, 39, 0.8); }

.galeria__info {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 100px;
}

.galeria__info::before {
  content: "";
  display: block;
  border-top: 3px dashed var(--gold);
  opacity: 0.6;
  margin-bottom: 1.3rem;
}

.galeria__info h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.15;
}

.galeria__info .galeria__vista {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-top: 0.35rem;
}

.galeria__info p.galeria__desc {
  color: var(--txt-mut);
  font-size: 0.95rem;
  margin-top: 0.9rem;
}

.galeria__piezas {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.2rem;
}

.galeria__piezas li {
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--gold-soft);
  color: #7a6314;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

.galeria__info .btn { margin-top: 1.5rem; }

/* ==========================================================================
   BORDADOS (sección exclusiva, negro + oro)
   ========================================================================== */

.bordados {
  background:
    radial-gradient(900px 400px at 50% -8%, rgba(201, 162, 39, 0.16), transparent 60%),
    linear-gradient(180deg, #0a0f18, var(--ink) 40%, #0b111c);
  color: var(--txt-light);
  padding-block: clamp(4.5rem, 10vw, 8rem);
  overflow: hidden;
}

/* hilera de puntadas verticales de fondo */
.bordados::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0 119px,
    rgba(233, 200, 98, 0.05) 119px 120px
  );
  pointer-events: none;
}

.bordados__head {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.bordados__head .kicker { justify-content: center; }
.bordados__head .kicker::after {
  content: "";
  width: 34px;
  border-top: 2px dashed currentColor;
  opacity: 0.7;
}

.bordados__title { font-size: clamp(2.2rem, 5vw, 3.6rem); }

.bordados__title em { color: var(--gold-2); }

.bordados__sub {
  margin-top: 1.2rem;
  color: var(--txt-light-mut);
  font-size: 1.05rem;
}

.bordados__sub strong { color: var(--gold-2); }

/* máquinas */

.bordados__maquinas {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 1.2rem;
  margin-bottom: clamp(2.8rem, 6vw, 4.2rem);
}

.mcard {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(233, 200, 98, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.mcard:hover { transform: translateY(-5px); border-color: rgba(233, 200, 98, 0.55); }

.mcard img { width: 100%; height: 180px; object-fit: cover; }

.mcard figcaption { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.2rem; }

.mcard strong { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }

.mcard span { font-size: 0.83rem; color: var(--txt-light-mut); }

/* prendas */

.bordados__prendas { margin-bottom: clamp(3rem, 7vw, 4.8rem); }

.bordados__prendas-label {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold-2);
  margin-bottom: 1.6rem;
}

.prendas-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}

.pcard {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(233, 200, 98, 0.18);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.pcard:hover {
  transform: translateY(-6px) rotate(-1deg);
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}

.pcard img { width: 100%; aspect-ratio: 1 / 1.02; object-fit: cover; }

.pcard span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.65rem 0.4rem;
  color: var(--txt-light);
}

/* escudo feature */

.bordados__escudo {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(233, 200, 98, 0.4);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 4vw, 2.8rem);
}

.bordados__escudo-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

.bordados__escudo-img img { width: 100%; height: 100%; object-fit: cover; }

.bordados__escudo-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.8rem;
}

.bordados__escudo-copy > p { color: var(--txt-light-mut); max-width: 48ch; }

.escudo-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.escudo-stats li { display: flex; flex-direction: column; }

.escudo-stats strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-2);
}

.escudo-stats span { font-size: 0.78rem; color: var(--txt-light-mut); }

.hilos {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin-top: 1.4rem;
  margin-bottom: 1.7rem;
}

.hilos li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--txt-light-mut);
}

.hilos i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   DETALLES (mosaico craft)
   ========================================================================== */

.detalles {
  background: var(--paper);
  padding-block: clamp(4rem, 9vw, 7rem);
}

.detalles__mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 130px;
  gap: 1.1rem;
}

.dcard {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}

.dcard img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.dcard:hover img { transform: scale(1.05); }

.dcard figcaption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.6rem 1.1rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(transparent, rgba(13, 20, 32, 0.85));
}

.dcard--a { grid-column: 1 / span 5; grid-row: span 3; }
.dcard--b { grid-column: 6 / span 3; grid-row: span 3; }
.dcard--c { grid-column: 9 / span 4; grid-row: span 1; }
.dcard--d { grid-column: 9 / span 4; grid-row: span 2; }

/* ==========================================================================
   PROCESO
   ========================================================================== */

.proceso {
  background: var(--ivory);
  padding-block: clamp(4rem, 9vw, 7rem);
}

.proceso__pasos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  counter-reset: paso;
  position: relative;
}

/* hilo que conecta los pasos */
.proceso__pasos::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 6%;
  right: 6%;
  border-top: 2.5px dashed var(--gold);
  opacity: 0.55;
}

.paso { position: relative; padding-top: 0.4rem; }

.paso__num {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 0 0 5px var(--ivory), 0 0 0 7px rgba(201, 162, 39, 0.5);
  position: relative;
  z-index: 1;
  margin-bottom: 1.1rem;
}

.paso h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.paso p { font-size: 0.9rem; color: var(--txt-mut); max-width: 26ch; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  background: var(--paper);
  padding-block: clamp(4rem, 9vw, 6.5rem);
}

.faq .section-head { text-align: center; margin-inline: auto; }
.faq .kicker { justify-content: center; }
.faq .kicker::after {
  content: "";
  width: 34px;
  border-top: 2px dashed currentColor;
  opacity: 0.7;
}

.faq__list { display: flex; flex-direction: column; gap: 0.9rem; }

.faq__item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.faq__item[open] { border-color: rgba(201, 162, 39, 0.5); }

.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  padding: 1.15rem 3.2rem 1.15rem 1.4rem;
  position: relative;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq__item p {
  padding: 0 1.4rem 1.3rem;
  color: var(--txt-mut);
  font-size: 0.95rem;
}

.faq__item a { color: var(--green); font-weight: 700; }

/* ==========================================================================
   CIERRE / CTA FINAL
   ========================================================================== */

.cierre {
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(201, 162, 39, 0.18), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  color: var(--txt-light);
  text-align: center;
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
  overflow: hidden;
}

.cierre__inner { display: flex; flex-direction: column; align-items: center; }

.cierre__badge {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 10px rgba(201, 162, 39, 0.15);
  margin-bottom: 1.8rem;
}

.cierre__badge img { width: 100%; height: 100%; object-fit: cover; }

.cierre__title { font-size: clamp(2.2rem, 5vw, 3.4rem); }

.cierre__title em { color: var(--gold-2); }

.cierre__sub {
  margin-top: 1.1rem;
  color: var(--txt-light-mut);
  max-width: 52ch;
  font-size: 1.04rem;
}

.cierre__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.2rem;
}

.cierre__loc {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.4rem;
  font-size: 0.88rem;
  color: var(--txt-light-mut);
}

.cierre__loc svg { color: var(--gold-2); flex: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: #0a0f18;
  color: var(--txt-light-mut);
  border-top: 1px dashed rgba(233, 200, 98, 0.25);
  padding-block: 1.6rem;
  font-size: 0.85rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}

.footer__tag { color: var(--gold-2); font-weight: 600; }

/* ==========================================================================
   FAB + LIGHTBOX
   ========================================================================== */

.fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 55;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px -8px rgba(34, 193, 94, 0.7);
  transition: transform 0.25s ease;
}

.fab:hover { transform: scale(1.08); }

.fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.55); opacity: 0; }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 15, 24, 0.93);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: min(92vw, 1000px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}

.lightbox__close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

.lightbox__close:hover { opacity: 1; }

/* ==========================================================================
   REVEALS
   ========================================================================== */

.reveal,
.reveal-img {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-img { transform: translateY(0) scale(0.96); transition-duration: 0.9s; }

.reveal.is-in,
.reveal-img.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }
.d3 { transition-delay: 0.3s; }
.d4 { transition-delay: 0.4s; }
.d5 { transition-delay: 0.5s; }
.d6 { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-img { opacity: 1; transform: none; transition: none; }
  .hero__thread path, .stitch-underline path { animation: none; }
  .marquee__track { animation: none; }
  .hero__card--sello { animation: none; }
  .fab::after { animation: none; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .hero__card--escudo { left: -6%; }
  .hero__card--sello { right: -4%; }
  .beneficios__grid { grid-template-columns: repeat(2, 1fr); }
  .bcard:nth-child(even) { transform: none; }
  .bcard:nth-child(even):hover { transform: translateY(-6px); }
  .prendas-grid { grid-template-columns: repeat(3, 1fr); }
  .proceso__pasos { grid-template-columns: repeat(2, 1fr); gap: 2.2rem 1.4rem; }
  .proceso__pasos::before { display: none; }
}

@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav { background: rgba(13, 20, 32, 0.92); backdrop-filter: blur(12px); }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 6.2rem;
    gap: 3rem;
  }

  .hero__visual { width: min(100%, 340px); }
  .hero__card--escudo { left: -4%; bottom: 6%; width: 175px; }

  .section-head--split { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .galeria__body { grid-template-columns: 1fr; }
  .galeria__info { position: static; }

  .bordados__maquinas { grid-template-columns: 1fr; }
  .mcard img { height: 210px; }
  .mcard--wide img { height: 240px; }

  .bordados__escudo { grid-template-columns: 1fr; }

  .detalles__mosaic { grid-auto-rows: 110px; }
  .dcard--a { grid-column: 1 / span 12; grid-row: span 3; }
  .dcard--b { grid-column: 1 / span 6; grid-row: span 3; }
  .dcard--c { grid-column: 7 / span 6; grid-row: span 1; }
  .dcard--d { grid-column: 7 / span 6; grid-row: span 2; }
}

@media (max-width: 640px) {
  .hero__title { font-size: clamp(2.15rem, 9.5vw, 2.7rem); }
  .hero__proof { gap: 1rem; }
  .hero__proof-sep { display: none; }
  .hero__ctas .btn { width: 100%; justify-content: center; }

  .galeria__stage { grid-template-columns: 1fr; }
  .galeria__thumbs {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .galeria__thumb { width: 72px; }
  .galeria__thumb img { height: 84px; }

  .prendas-grid { grid-template-columns: repeat(2, 1fr); }
  .proceso__pasos { grid-template-columns: 1fr; }
  .paso p { max-width: none; }

  .cierre__ctas { width: 100%; }
  .cierre__ctas .btn { width: 100%; justify-content: center; }

  .footer__inner { justify-content: center; text-align: center; }
}
