/* =========================================================
   Fotografía de Graduación · Hermosillo
   Paleta: tinta azul marino + dorado + papel crema
   ========================================================= */
:root {
  --ink: #5a0c18;
  --ink-2: #741222;
  --paper: #fdfaf7;
  --ruby: #b3122c;
  --ruby-2: #d01e38;
  --paper-2: #f8efea;
  --white: #ffffff;
  --gold: #c8a24a;
  --gold-deep: #8f6f22;
  --gold-soft: #e9d9ae;
  --text: #2a1f22;
  --muted: #6b5d61;
  --line: rgba(70, 10, 22, 0.12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(70, 10, 22, 0.35);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
em { font-style: italic; color: var(--ruby); }
p { margin: 0; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 32px); }

.eyebrow {
  font: 700 0.75rem/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.eyebrow--gold { color: var(--gold); }

/* Datos por confirmar: subrayado discreto para detectarlos al revisar */
.pc { text-decoration: underline dashed rgba(143, 111, 34, 0.6); text-underline-offset: 4px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font: 700 0.95rem/1 var(--sans); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--ink { background: var(--ruby); color: var(--paper); }
.btn--ink:hover { background: var(--ruby-2); box-shadow: var(--shadow); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #d6b25b; box-shadow: 0 14px 30px -14px rgba(200, 162, 74, 0.8); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--sm { padding: 11px 20px; font-size: 0.88rem; }
.btn--lg { padding: 18px 30px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.link { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; }

/* ---------- Menú ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 250, 247, 0.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(70, 10, 22, .5); }
.nav__in { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__icon { width: 30px; height: 30px; color: var(--gold); }
.brand__name, .brand span { font: 600 1.2rem/1 var(--serif); letter-spacing: -0.01em; }
.brand--light { color: var(--paper); }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 0.94rem; color: var(--muted); transition: color .2s; }
.nav__menu a:not(.btn):hover { color: var(--ink); }
.nav__toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  background: radial-gradient(closest-side, rgba(200, 162, 74, 0.22), transparent 70%);
  pointer-events: none;
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { font-size: clamp(3rem, 7.4vw, 6.2rem); line-height: 0.98; letter-spacing: -0.025em; }
.hero__title em { font-weight: 400; }
.hero__lead { margin-top: 26px; font-size: 1.12rem; color: var(--muted); max-width: 33em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__stats { list-style: none; padding: 0; margin: 46px 0 0; display: flex; gap: clamp(20px, 4vw, 44px); border-top: 1px solid var(--line); padding-top: 26px; }
.hero__stats li { display: flex; flex-direction: column; gap: 6px; }
.hero__stats strong { font: 500 2rem/1 var(--serif); color: var(--ink); }
.hero__stats span { font-size: 0.82rem; line-height: 1.35; color: var(--muted); }

.hero__art { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 560px; justify-self: end; }
.print {
  position: absolute; margin: 0; background: var(--white);
  padding: 12px 12px 46px; border-radius: 4px;
  box-shadow: 0 30px 60px -28px rgba(70, 10, 22, 0.55), 0 2px 6px rgba(70, 10, 22, 0.08);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.print .ph, .print img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.print figcaption { position: absolute; left: 0; right: 0; bottom: 13px; text-align: center; font: italic 400 1.05rem/1 var(--serif); color: var(--ink); }
.print--a { width: 54%; height: 66%; left: 4%; top: 12%; transform: rotate(-6deg); z-index: 2; }
.print--b { width: 50%; height: 60%; right: 2%; top: 0; transform: rotate(5deg); z-index: 1; }
.print--c { width: 44%; height: 50%; right: 0; bottom: -2%; transform: rotate(-2deg); z-index: 3; }
.hero__art:hover .print--a { transform: rotate(-8deg) translate(-6px, -4px); }
.hero__art:hover .print--b { transform: rotate(7deg) translate(6px, -6px); }
.hero__art:hover .print--c { transform: rotate(0deg) translateY(6px); }

.hero__seal { position: absolute; left: -3%; bottom: -5%; width: 118px; height: 118px; z-index: 4; color: var(--ink); background: var(--gold); border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow); }
.hero__seal svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.hero__seal text { font: 700 11px var(--sans); letter-spacing: 0.08em; fill: var(--ink); }
.hero__seal-icon { width: 38px; height: 38px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Marcadores de foto (se reemplazan por <img>) */
.ph { position: relative; display: grid; place-items: center; overflow: hidden; }
.ph svg { width: 26%; max-width: 72px; opacity: 0.85; }
.ph::after { /* grano */
  content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ph--ink { background: radial-gradient(120% 90% at 30% 20%, #d8283f 0%, #8e0f22 55%, #3e0610 100%); color: #f3d99b; }
.ph--warm { background: radial-gradient(120% 100% at 70% 15%, #f3d99b 0%, #d9a65a 45%, #8e5d2c 100%); color: var(--white); }
.ph--sand { background: radial-gradient(120% 100% at 25% 80%, #e8dcc6 0%, #cdb892 55%, #9a8462 100%); color: var(--ink); }

/* ---------- Franja ---------- */
.strip { background: var(--ink); color: var(--gold-soft); overflow: hidden; padding: 18px 0; }
.strip__track { display: flex; gap: 28px; width: max-content; animation: marquee 38s linear infinite; font: italic 400 1.35rem/1 var(--serif); white-space: nowrap; }
.strip__track span:nth-child(even) { color: var(--gold); font-style: normal; font-size: 0.9rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--ink { background: var(--ink); color: rgba(253, 250, 247, 0.78); }
.section--ink h2, .section--ink h3 { color: var(--paper); }
.section--ink em { color: var(--gold); }
.section--paper { background: var(--paper-2); }
.section__head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 640px; }
.section__head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__lead { margin-top: 18px; color: var(--muted); font-size: 1.05rem; }
.note { margin-top: 22px; font-size: 0.85rem; color: var(--muted); text-align: center; }

/* ---------- Paquetes ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px 30px;
}
.plan--featured { background: var(--ink); color: rgba(253, 250, 247, 0.8); border-color: var(--ink); box-shadow: var(--shadow); transform: translateY(-10px); }
.plan--featured .plan__name, .plan--featured .plan__price { color: var(--paper); }
.plan--featured .plan__list li::before { background: var(--gold); }
.plan--featured .plan__list { border-color: rgba(253, 250, 247, 0.14); }
.plan__badge { position: absolute; top: -13px; left: 30px; background: var(--gold); color: var(--ink); font: 700 0.72rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; }
.plan__name { font-size: 1.7rem; font-weight: 400; }
.plan__price { margin-top: 10px; font: 500 1.15rem/1.2 var(--serif); color: var(--ink); }
.plan__desc { margin-top: 12px; font-size: 0.95rem; color: inherit; opacity: .85; }
.plan__list { list-style: none; padding: 22px 0 0; margin: 22px 0 28px; border-top: 1px solid var(--line); display: grid; gap: 12px; flex: 1; }
.plan__list li { position: relative; padding-left: 26px; font-size: 0.96rem; line-height: 1.45; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 12px; height: 12px; border-radius: 50%; background: var(--gold-soft); box-shadow: inset 0 0 0 3px var(--white); outline: 1.5px solid var(--gold); }
.plan--featured .plan__list li::before { box-shadow: inset 0 0 0 3px var(--ink); }
.plan--featured .btn--line { border-color: var(--paper); color: var(--paper); }

/* ---------- Especiales ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(253, 250, 247, 0.12); border: 1px solid rgba(253, 250, 247, 0.12); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--ink); padding: 34px 28px 38px; transition: background .3s; }
.card:hover { background: var(--ink-2); }
.card__num { display: block; font: italic 400 1rem/1 var(--serif); color: var(--gold); margin-bottom: 40px; }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.95rem; }

/* ---------- Proceso ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 26px; left: 26px; right: 26px; height: 1px; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 12px); }
.step { position: relative; }
.step__n { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--gold); font: 500 1.3rem/1 var(--serif); color: var(--ink); margin-bottom: 22px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Planteles ---------- */
.planteles { background: var(--paper-2); padding: clamp(64px, 8vw, 104px) 0; border-block: 1px solid var(--line); }
.planteles__in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.planteles h2 { margin-bottom: 18px; }
.planteles p:not(.eyebrow) { color: var(--muted); max-width: 30em; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 0.92rem; color: var(--ink); }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 14px; grid-auto-flow: dense; }
.g { position: relative; margin: 0; border-radius: 10px; overflow: hidden; }
.g .ph, .g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.g:hover .ph, .g:hover img { transform: scale(1.04); }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 2; }
.g figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(253, 250, 247, 0.92); color: var(--ink); font-size: 0.8rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; opacity: 0; transform: translateY(6px); transition: .3s; }
.g:hover figcaption { opacity: 1; transform: none; }

/* ---------- Preguntas ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 0 24px; transition: box-shadow .25s; }
.faq details[open] { box-shadow: 0 14px 30px -24px rgba(70, 10, 22, .6); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--serif); color: var(--gold-deep); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact { background: var(--ink); color: rgba(253, 250, 247, 0.78); padding: clamp(72px, 10vw, 128px) 0; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; right: -10%; top: -30%; width: 640px; height: 640px; background: radial-gradient(closest-side, rgba(200, 162, 74, .2), transparent 70%); }
.contact__in { position: relative; display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.contact h2 { color: var(--paper); font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 20px; }
.contact em { color: var(--gold); }
.contact__copy p { font-size: 1.1rem; max-width: 28em; margin-bottom: 32px; }
.contact__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(253, 250, 247, .14); }
.contact__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; border-bottom: 1px solid rgba(253, 250, 247, .14); }
.contact__label { font: 700 0.75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.contact__list a, .contact__list span:last-child { color: var(--paper); text-decoration: none; font: 400 1.2rem/1.2 var(--serif); text-align: right; }
.contact__list a:hover { color: var(--gold); }

/* ---------- Footer ---------- */
.footer { background: #3a0710; color: rgba(253, 250, 247, .55); padding: 28px 0; font-size: 0.85rem; }
.footer__in { padding-right: 76px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Aparición ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.plan--featured.reveal.is-in { transform: translateY(-10px); }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1020px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
  .steps::before { display: none; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav__toggle {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0;
  }
  .nav__toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav__menu {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    box-shadow: 0 20px 30px -24px rgba(70, 10, 22, .5);
    display: none;
  }
  .nav.is-open .nav__menu { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.02rem; color: var(--ink); }
  .nav__menu .btn { margin-top: 16px; padding: 15px; }

  .hero__in { grid-template-columns: 1fr; }
  .hero__art { justify-self: center; max-width: 440px; margin-top: 8px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .plan--featured, .plan--featured.reveal.is-in { transform: none; }
  .planteles__in, .contact__in { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__stats { gap: 14px; justify-content: space-between; }
  .hero__stats strong { font-size: 1.55rem; }
  .hero__stats span { font-size: 0.74rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__seal { width: 92px; height: 92px; }
  .print { padding: 8px 8px 34px; }
  .print figcaption { font-size: 0.85rem; bottom: 10px; }
  .cards { grid-template-columns: 1fr; }
  .card__num { margin-bottom: 20px; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 10px; }
  .g figcaption { opacity: 1; transform: none; font-size: 0.72rem; }
  .contact__list li { flex-direction: column; gap: 8px; }
  .contact__list a, .contact__list span:last-child { text-align: left; }
  .contact .btn--lg { width: 100%; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .footer { padding-bottom: 92px; }
  .footer__in { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .strip__track, .hero__seal svg:first-child { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Rubí Graduaciones: ajustes de marca
   ========================================================= */
.brand__logo { height: 50px; width: auto; }
.nav .brand__icon, .nav .brand__name { display: none; }
.brand--light .brand__icon { color: var(--gold); }

.plans { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plan { padding: 30px 24px 26px; }
.plan__gem { width: 30px; height: 30px; margin-bottom: 16px; filter: drop-shadow(0 6px 8px rgba(70, 10, 22, .25)); }
.plan__name { font-size: 1.55rem; }
.plan__price { margin-top: 12px; font: 500 2.3rem/1 var(--serif); letter-spacing: -0.02em; }
.plan__price small { font: 600 0.8rem/1 var(--sans); letter-spacing: .04em; color: var(--muted); margin-left: 4px; }
.plan--featured .plan__price small { color: rgba(253, 250, 247, .6); }
.plan__list li.plus { font-weight: 700; }
.plan--featured { background: linear-gradient(165deg, #8e0f22 0%, var(--ink) 70%); }

.includes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: -18px 0 42px; padding: 18px 22px; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; }
.includes strong { font-size: 0.85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-right: 6px; }
.includes span { font-size: 0.94rem; color: var(--text); }
.includes span::before { content: "✦"; color: var(--gold); margin-right: 8px; font-size: .8em; }

.hero__eyebrow-logo { display: none; }

@media (max-width: 1100px) {
  .plans { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin-inline: auto; }
  .plan--featured, .plan--featured.reveal.is-in { transform: none; }
}
@media (max-width: 860px) {
  .brand__logo { height: 42px; }
  .plans { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
}
@media (max-width: 640px) {
  .plans { grid-template-columns: 1fr; max-width: 440px; }
  .includes span { flex: 1 1 100%; }
}
.planteles__in.is-solo { grid-template-columns: 1fr; max-width: 720px; }
.hero__seal-icon { color: var(--ruby); }
.hero__seal { background: var(--gold); }
.plan__list { align-content: start; }
