/* ==========================================================================
   Hagia Sofía · borrador de rediseño
   Todo cuelga de la clase "rd" en <html>. Sin esa clase la página es la de siempre:
   agrega ?antes a la dirección para comparar.
   Misma marca: mismos colores y mismas letras (Playfair, Garamond, Montserrat).
   ========================================================================== */

.rd {
  --r-s: 14px;
  --r-m: 20px;
  --r-l: 28px;
  --space: clamp(72px, 10vw, 148px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --glass: rgba(30, 36, 21, .58);
}

/* ---------- tipografía ---------- */
.rd h1, .rd h2, .rd h3 { font-weight: 400; letter-spacing: -.022em; }
.rd h2 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.02; }
.rd h3 { letter-spacing: -.012em; }
.rd .label { font-size: .68rem; font-weight: 600; letter-spacing: .22em; }
.rd .lead { font-size: clamp(1.16rem, 1.6vw, 1.38rem); line-height: 1.5; }
.rd .head { gap: 16px; margin-bottom: clamp(30px, 4.6vw, 60px); }
.rd .head p { max-width: 44ch; }

/* solo en el borrador (con ?antes no aparece) */
html:not(.rd) .rd-only { display: none; }

/* ---------- adornos ---------- */
.rd .vine, .rd .waves, .rd .ticker, .rd .hero .vertical { display: none; }
.rd .progress { height: 2px; }

/* ---------- secciones: más aire, sin hojas apiladas ---------- */
.rd .pad { padding-block: var(--space); }
.rd main > section.pad { --sheet: 0px; padding-bottom: var(--space); }
.rd main > section.pad ~ section.pad { margin-top: 0; border-radius: 0; }
.rd main > section#galeria { padding-block: 0 var(--space) !important; }
.rd main > section#mas { padding-top: 0; }
.rd .grp > section.pad { padding-block: clamp(44px, 6vw, 84px); }

/* ---------- apariciones: cortas y precisas ---------- */
@media (min-width: 901px) {
  .rd .reveal { transform: translateY(18px); transition: transform .7s var(--ease); }
  .rd .reveal.in { transform: none; }
}
.rd.fx .reveal:not(.head) { transition: transform .7s var(--ease), opacity .6s ease; }
.rd .sp .w { transform: translateY(.3em); filter: blur(6px); animation-duration: .7s; animation-delay: calc(var(--i) * 55ms); }

/* ---------- barra superior de vidrio ---------- */
.rd .nav { padding-block: calc(10px + env(safe-area-inset-top, 0px)) 10px; transition: background .4s var(--ease), border-color .4s var(--ease), transform .3s var(--ease); border-bottom: 1px solid transparent; }
.rd .nav.solid { background: var(--glass); -webkit-backdrop-filter: saturate(160%) blur(22px); backdrop-filter: saturate(160%) blur(22px); box-shadow: none; border-bottom-color: rgba(242, 235, 220, .12); }
.rd .nav .brand img { width: 92px; }
.rd .nav a.link { font-size: .66rem; font-weight: 500; letter-spacing: .16em; opacity: .86; transition: opacity .2s; }
.rd .nav a.link:hover { opacity: 1; }
.rd .nav a.link::after { display: none; }
.rd .lang { font-size: .64rem; font-weight: 600; padding: 7px 12px; border-color: rgba(242, 235, 220, .3); }
.rd .menu-btn { width: 40px; height: 40px; border-color: rgba(242, 235, 220, .3); }
@media (min-width: 1021px) {
  .rd .nav.hide:not(.open) { transform: none; }
  .rd .nav a.link[href="#reservar"] { opacity: 1; font-weight: 600; background: var(--paper); color: var(--deep); padding: 10px 18px; border-radius: 999px; transition: background .25s, transform .25s var(--ease); }
  .rd .nav a.link[href="#reservar"]:hover { background: #fff; transform: scale(1.03); }
}
@media (max-width: 1020px) {
  .rd .nav.open { background: rgba(30, 36, 21, .9); -webkit-backdrop-filter: saturate(160%) blur(22px); backdrop-filter: saturate(160%) blur(22px); }
  .rd .nav nav { background: rgba(30, 36, 21, .96); box-shadow: none; }
  .rd .nav a.link { font-family: var(--display); font-size: 1.7rem; font-weight: 400; letter-spacing: -.01em; text-transform: none; padding: 18px 0; opacity: 1; }
  .rd .nav li + li { border-top-color: rgba(242, 235, 220, .12); }
  .rd .nav.open li { animation: rdMenu .5s var(--ease) both; }
  .rd .nav.open li:nth-child(2) { animation-delay: .04s; }
  .rd .nav.open li:nth-child(3) { animation-delay: .08s; }
  .rd .nav.open li:nth-child(4) { animation-delay: .12s; }
  .rd .nav.open li:nth-child(5) { animation-delay: .16s; }
}
@keyframes rdMenu { from { opacity: 0; transform: translateY(10px); } }

/* ---------- botones ---------- */
.rd .btn { font-size: .7rem; font-weight: 600; letter-spacing: .15em; padding: 16px 26px; transition: transform .3s var(--ease), background .25s, color .25s, border-color .25s; }
.rd .btn:hover { transform: scale(1.03); }
.rd .btn:active { transform: scale(.98); }
.rd .btn.primary { box-shadow: none; }
.rd .btn.primary::before, .rd .btn.primary::after { display: none; }
.rd .btn.ghost { border-width: 1px; border-color: rgba(242, 235, 220, .5); background: rgba(242, 235, 220, .06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rd .btn.ghost:hover { background: var(--paper); border-color: var(--paper); }
.rd .cta-bar { background: var(--glass); -webkit-backdrop-filter: saturate(160%) blur(22px); backdrop-filter: saturate(160%) blur(22px); border-top-color: rgba(242, 235, 220, .12); }

/* ---------- portada ---------- */
.rd .hero { min-height: 100svh; }
.rd .hero .photo { inset: 0 0 -8% 0; }
.rd .hero .photo img, .rd .hero .photo video { animation: rdSettle 2.6s var(--ease) both; }
.rd .hero::after {
  background:
    linear-gradient(to top, rgba(22, 27, 15, .86) 0%, rgba(22, 27, 15, .5) 30%, rgba(22, 27, 15, 0) 62%),
    linear-gradient(to bottom, rgba(22, 27, 15, .42), rgba(22, 27, 15, 0) 20%);
}
.rd .hero .wrap { padding-block: 140px clamp(44px, 7vh, 84px); }
.rd .hero .label { background: none; padding: 0; border-radius: 0; color: rgba(242, 235, 220, .86); letter-spacing: .24em; }
.rd .hero h1 { font-size: clamp(2.9rem, 7.6vw, 6.8rem); line-height: .98; letter-spacing: -.03em; max-width: none; margin: 18px 0 22px; }
.rd .hero h1 em { display: block; font-size: .56em; letter-spacing: -.01em; line-height: 1.15; margin-top: .22em; }
.rd .hero .lead { max-width: 46ch; color: rgba(242, 235, 220, .88); margin-bottom: 32px; }
.rd .hero .turtles { top: auto; right: var(--gutter); bottom: clamp(44px, 7vh, 84px); width: clamp(56px, 6vw, 84px); opacity: .8; }
.rd .hero .label, .rd .hero h1, .rd .hero .lead, .rd .hero .cta { animation: rdRise .9s var(--ease) both; }
.rd .hero h1 { animation-delay: .08s; }
.rd .hero .lead { animation-delay: .18s; }
.rd .hero .cta { animation-delay: .28s; }
@keyframes rdRise { from { opacity: 0; transform: translateY(22px); } }
@keyframes rdSettle { from { transform: scale(1.07); } }

/* ---------- qué ofrecemos ---------- */
@media (min-width: 901px) { .rd .accordion { gap: 10px; height: clamp(600px, 80vh, 780px); } }
.rd .panel, .rd .panel.open { border-radius: var(--r-m); }
.rd .panel .tab { font-size: .66rem; font-weight: 600; letter-spacing: .24em; }
.rd .panel::before { background: linear-gradient(to top, rgba(22, 27, 15, .82) 0%, rgba(22, 27, 15, .3) 50%, rgba(22, 27, 15, .12) 100%); }
.rd .panel.open::before { background: linear-gradient(to top, rgba(22, 27, 15, .94) 0%, rgba(22, 27, 15, .78) 46%, rgba(22, 27, 15, .2) 100%); }
.rd .panel .info { padding: clamp(22px, 3.2vw, 44px); }
.rd .panel .info h3 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); margin: 10px 0 14px; }
.rd .panel .more { font-size: .68rem; font-weight: 600; letter-spacing: .14em; padding: 13px 20px; }
.rd .chip { font-size: .66rem; font-weight: 500; letter-spacing: .14em; border-color: rgba(242, 235, 220, .34); }

/* ---------- más del rancho: cuadrícula editorial ---------- */
.rd .tcard { border-radius: var(--r-m); padding: clamp(20px, 2.4vw, 32px); transition: transform .5s var(--ease); }
.rd .tcard:hover { transform: scale(1.012); }
.rd .tcard::before { background: linear-gradient(to top, rgba(22, 27, 15, .84) 0%, rgba(22, 27, 15, .28) 52%, rgba(22, 27, 15, 0) 100%); }
@media (min-width: 901px) {
  .rd .tabcards { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
  .rd .tcard { min-height: clamp(340px, 42vh, 460px); }
  .rd .tc-t { font-size: clamp(1.8rem, 2.6vw, 2.4rem); letter-spacing: -.02em; }
  .rd .tc-s { font-size: 1.02rem; margin-top: 10px; }
  .rd .tcard:nth-child(4n + 1), .rd .tcard:nth-child(4n) { grid-column: span 7; }
  .rd .tcard:nth-child(4n + 2), .rd .tcard:nth-child(4n + 3) { grid-column: span 5; }
}

/* ---------- galería ---------- */
.rd .gallery button { border-radius: var(--r-m); }
.rd .gallery.cf button { box-shadow: 0 24px 50px -24px rgba(22, 27, 15, .5); }
.rd .round { border-width: 1px; width: 44px; height: 44px; font-size: 1.2rem; }

/* ---------- reservar ---------- */
.rd .book { gap: clamp(32px, 6vw, 96px); }
.rd .book .turtles { width: 72px; margin-bottom: 30px; opacity: .85; }
.rd .form { border: 0; border-radius: var(--r-l); box-shadow: 0 40px 90px -50px rgba(35, 42, 27, .55); }
.rd .steps li::before { height: 2px; }
.rd .stepper button { border-width: 1px; }

/* ---------- asistente de reserva: líneas finas y esquinas iguales ---------- */
.rd .wizard h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.rd .steps li { font-weight: 500; letter-spacing: .16em; }
.rd .field label { font-weight: 600; letter-spacing: .18em; }
.rd .field input, .rd .field select, .rd .field textarea { border-width: 1px; border-radius: var(--r-s); transition: border-color .2s, box-shadow .2s; }
.rd .field input:focus, .rd .field select:focus, .rd .field textarea:focus { box-shadow: 0 0 0 3px rgba(148, 171, 103, .28); }
.rd .prod { border-radius: var(--r-s); border-width: 2px; }
.rd .prod:hover { transform: scale(1.02); }
.rd .prod.on { box-shadow: 0 0 0 3px rgba(148, 171, 103, .28); }
.rd .prod span { font-weight: 600; }
.rd .msg, .rd .summary { border: 1px solid var(--line); border-radius: var(--r-m); }
.rd .estimate, .rd .paycard, .rd .cal { border-radius: var(--r-m); }
.rd .paycard { box-shadow: none; }
.rd .paybtn { border-width: 1px; border-radius: var(--r-s); }
.rd .paybtn:hover { transform: scale(1.01); }
.rd .cal, .rd .cal-nav, .rd .copy, .rd .btn.ghost-dark { border-width: 1px; }
.rd .wizard > .check { margin-top: -8px; }   /* transporte: opciones juntas, como el resto de los campos */
.rd .eat3 .stepper { gap: 3px; }
.rd .eat3 .stepper output { min-width: 18px; }   /* los tres contadores de comida caben en celular */
@media (max-width: 480px) {
  /* tarjeta de pago: en celular los botones se salían por la derecha */
  .rd .paycard { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .rd .paybtn { padding: 14px; gap: 10px; }
  .rd .paybtn span { white-space: normal; text-align: left; }
}

/* ---------- ventanas (historia, rancho, naturaleza, comunidad) ---------- */
.rd .grp-bar { background: rgba(30, 36, 21, .84); -webkit-backdrop-filter: saturate(160%) blur(22px); backdrop-filter: saturate(160%) blur(22px); padding-bottom: 10px; }
.rd .grp-t { font-size: 1.08rem; letter-spacing: -.01em; }
.rd .grp-x { border-width: 1px; width: 40px; height: 40px; font-size: 1rem; }
.rd .grp-hero { height: clamp(280px, 50vh, 520px); }
.rd .grp-hero > img { animation: rdSettle 2.6s var(--ease) both; }
.rd .grp-hero::before { background: linear-gradient(to top, rgba(22, 27, 15, .86) 0%, rgba(22, 27, 15, .4) 42%, rgba(22, 27, 15, 0) 78%); }
.rd .grp-hero-txt { padding-bottom: clamp(26px, 4.4vw, 52px); }
.rd .grp-hero-txt h2 { font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 5.4rem); letter-spacing: -.03em; text-shadow: none; }
.rd .grp-hero-txt p { text-shadow: none; margin-top: 14px; color: rgba(242, 235, 220, .88); }
/* mismas esquinas en fotos, tarjetas y cajas (fuera los arcos) */
.rd .arch.tall, .rd .con-card .arch, .rd .result .arch, .rd .step .arch, .rd .school-grid > .arch,
.rd #g-comunidad .bt, .rd #g-comunidad .market .arch.tall, .rd #g-comunidad .market .when,
.rd .mapx-box, .rd .quiz-card, .rd .rcard,
.rd .wings-art.acc .wa .wa-ph, .rd .wings-art.acc .wa.a4 .wa-ph, .rd .wings-art.acc .wa.a5 .wa-ph { border-radius: var(--r-m); }
.rd .quiz-box, .rd .donate { border-radius: var(--r-l); }
.rd .story-press img, .rd .faqs details { border-radius: var(--r-s); }
.rd .amt.other input { border-bottom-width: 1px; }

/* ---------- pie ---------- */
.rd footer { padding-block: clamp(64px, 9vw, 120px) 40px; }
.rd footer .cols a { border-bottom-color: transparent; }
.rd footer .cols a:hover { border-bottom-color: var(--leaf); }
.rd footer .small { font-size: .64rem; }

/* ---------- celular ---------- */
@media (max-width: 600px) {
  .rd { --space: 68px; }
  .rd .hero .wrap { padding-block: 120px 40px; }
  .rd .hero h1 { font-size: clamp(2.7rem, 13vw, 3.6rem); margin: 14px 0 16px; }
  .rd .hero .lead { font-size: 1.1rem; margin-bottom: 26px; }
  .rd .hero .turtles { top: 96px; bottom: auto; }
  .rd .hero .cta { gap: 10px; flex-wrap: nowrap; }
  .rd .hero .cta .btn { flex: 1 1 auto; justify-content: center; white-space: nowrap; padding: 16px 18px; letter-spacing: .1em; }
  .rd .hero::after { background: linear-gradient(to top, rgba(22, 27, 15, .9) 0%, rgba(22, 27, 15, .62) 42%, rgba(22, 27, 15, 0) 74%), linear-gradient(to bottom, rgba(22, 27, 15, .42), rgba(22, 27, 15, 0) 18%); }
  .rd .tcard { border-radius: var(--r-m); }
  .rd .form { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .rd .hero .label, .rd .hero h1, .rd .hero .lead, .rd .hero .cta, .rd .hero .photo img, .rd .hero .photo video, .rd .nav.open li, .rd .grp-hero > img { animation: none; }
  .rd .reveal { transform: none; }
  .rd .btn:hover, .rd .tcard:hover, .rd .prod:hover, .rd .paybtn:hover { transform: none; }
}
