/* =========================================================
   Ópale Studio · opalestudio.pe
   Paleta: Rosa Ópale #B5726A · Rosa empolvado #E9C4BC
           Nude #F5E4D8 · Crema #FBF5EE · Oro rosa #C9A27E
   ========================================================= */

:root {
  --rosa: #B5726A;
  --rosa-texto: #8E4E47;
  --rosa-hover: #6F3A34;
  --empolvado: #E9C4BC;
  --nude: #F5E4D8;
  --crema: #FBF5EE;
  --oro: #C9A27E;
  --cacao: #3B2A27;
  --gris: #6B5550;
  --linea: rgba(201, 162, 126, 0.45);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad-x: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--cacao);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
main { overflow-x: clip; }
a { color: var(--rosa-texto); }
a:hover { color: #5E2F2A; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }

.container { max-width: 1240px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.eyebrow { font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; font-weight: 500; color: var(--rosa-texto); }
.h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 5vw, 64px); line-height: 1.05; color: var(--cacao); }
.h2 em { color: var(--rosa); }
.lead { font-size: 18px; line-height: 1.75; color: var(--gris); }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--crema); padding: 10px 16px; border-radius: 8px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 30px; border-radius: 999px;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .25s, color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--rosa-texto); color: var(--crema); }
.btn--solid:hover { background: var(--rosa-hover); color: var(--crema); }
.btn--line { border-color: var(--cacao); color: var(--cacao); background: transparent; }
.btn--line:hover { background: var(--cacao); color: var(--crema); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 12px; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--oro); outline-offset: 3px; }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 245, 238, 0.88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 162, 126, 0.28);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.nav__logo img { height: 52px; width: auto; }
.nav__links { display: flex; gap: 36px; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400; }
.nav__links a { color: var(--cacao); text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--rosa-texto); }

/* ---------- Portada ---------- */
.hero {
  position: relative; display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(48px, 6vw, 88px);
  padding-top: clamp(48px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 112px);
}
.hero__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__badge { display: inline-flex; align-items: center; gap: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rosa); display: inline-block; }
.hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 6.2vw, 84px); line-height: 1.02; letter-spacing: -0.01em; }
.hero h1 em { color: var(--rosa); font-weight: 300; }
.hero__lead { max-width: 520px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.7; color: var(--gris); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 12px 32px; padding-top: 20px;
  border-top: 1px solid rgba(201, 162, 126, 0.4); font-size: 14px; color: var(--gris); letter-spacing: 0.04em;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }

.hero__visual { flex: 1 1 380px; min-width: 0; display: flex; justify-content: center; position: relative; padding: 24px 0; }
.hero__glow {
  position: absolute; width: min(118%, 560px); aspect-ratio: 1; top: 50%; left: 50%;
  margin-left: calc(min(118%, 560px) / -2); margin-top: calc(min(118%, 560px) / -2);
  border-radius: 50%; filter: blur(8px);
  background: radial-gradient(circle at 30% 30%, #FBF5EE 0%, rgba(233,196,188,0.85) 32%, rgba(245,228,216,0.6) 55%, rgba(201,162,126,0.35) 72%, rgba(251,245,238,0) 78%);
}
.hero__ring {
  position: absolute; width: min(104%, 500px); aspect-ratio: 1; top: 50%; left: 50%;
  margin-left: calc(min(104%, 500px) / -2); margin-top: calc(min(104%, 500px) / -2);
  border-radius: 50%; border: 1px dashed rgba(181, 114, 106, 0.45);
}
.hero__arch {
  position: relative; width: min(420px, 88%); aspect-ratio: 4 / 5.4;
  border-radius: 999px 999px 24px 24px; overflow: hidden;
  border: 8px solid var(--crema); outline: 1px solid rgba(201, 162, 126, 0.7);
  box-shadow: 0 40px 80px -30px rgba(94, 47, 42, 0.45);
}
.hero__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__card {
  position: absolute; left: max(0px, calc(50% - 250px)); bottom: 36px;
  display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px;
  border-radius: 18px; background: var(--crema); box-shadow: 0 18px 40px -18px rgba(94, 47, 42, 0.4);
}
.hero__card img { width: 48px; height: auto; }
.hero__card strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.1; }
.hero__card small { display: block; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rosa-texto); font-weight: 500; margin-top: 2px; }

/* ---------- Cinta ---------- */
.marquee { background: var(--empolvado); border-top: 1px solid rgba(181,114,106,0.3); border-bottom: 1px solid rgba(181,114,106,0.3); overflow: hidden; padding: 22px 0; }
.marquee__track {
  display: flex; width: max-content; gap: 48px; white-space: nowrap;
  font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); font-style: italic; font-weight: 400; color: var(--cacao);
}
.marquee__track .sep { color: var(--rosa-texto); }

/* ---------- Secciones ---------- */
.section { padding-top: clamp(80px, 10vw, 136px); padding-bottom: clamp(80px, 10vw, 136px); }
.section__head { display: flex; flex-wrap: wrap; gap: 32px 80px; align-items: flex-end; margin-bottom: clamp(48px, 6vw, 72px); }
.section__head > div { flex: 1 1 440px; display: flex; flex-direction: column; gap: 18px; }
.section__head > p { flex: 1 1 420px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: #FFFFFF; border: 1px solid rgba(201,162,126,0.35); border-radius: 28px; padding: 40px 36px; display: flex; flex-direction: column; gap: 16px; }
.card__num { font-family: var(--serif); font-size: 56px; font-weight: 300; line-height: 1; color: var(--rosa); }
.card h3 { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.card p { font-size: 16px; line-height: 1.7; color: var(--gris); }

/* ---------- Servicios ---------- */
.services { background: var(--nude); }
.services__head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; margin-bottom: 56px; }
.services__head img { width: 96px; height: auto; }
.services__head .h2 em { color: var(--rosa-texto); }
.menus { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px; }
.menu { background: var(--crema); border-radius: 32px; padding: clamp(32px, 4vw, 48px); }
.menu h3 { font-family: var(--serif); font-size: 34px; font-weight: 400; margin-bottom: 16px; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linea); font-size: 17px; }
.menu li:last-child { border-bottom: 0; }
.menu li > span:first-child { flex: 1; }
.price { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--rosa-texto); white-space: nowrap; }
.price small { font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: 0.06em; color: var(--gris); margin-right: 6px; }
.price--ask { font-family: var(--sans); font-size: 14px; letter-spacing: 0.08em; font-weight: 400; }
.tag { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; color: var(--crema); background: var(--rosa-texto); border-radius: 999px; padding: 3px 9px; margin-left: 6px; vertical-align: 2px; }
.menu__note { margin-top: 12px; padding-top: 18px; border-top: 1px solid var(--linea); font-size: 14px; line-height: 1.65; color: var(--gris); }
.services__foot { margin-top: 56px; text-align: center; font-size: 14px; color: var(--gris); letter-spacing: 0.04em; }

/* ---------- Espacio ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 24px; }
.gallery__item { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 4 / 3; background: #EFE6DE; margin: 0; }
.gallery__item--wide { grid-column: 1 / -1; aspect-ratio: 16 / 7; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery__item figcaption {
  position: absolute; left: 24px; bottom: 24px; padding: 10px 18px; border-radius: 999px;
  background: rgba(251,245,238,0.92); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; color: var(--cacao);
}
.quote {
  border-radius: 32px; background: var(--cacao); color: var(--crema); padding: clamp(32px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; margin: 0;
}
.quote__mark { font-family: var(--serif); font-size: 72px; line-height: 0.6; color: var(--oro); }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); font-weight: 300; font-style: italic; line-height: 1.25; }
.quote figcaption strong { display: block; font-size: 15px; font-weight: 500; letter-spacing: 0.06em; }
.quote figcaption span { display: block; font-size: 13px; color: var(--empolvado); letter-spacing: 0.04em; margin-top: 4px; }

/* ---------- Lista de apertura ---------- */
.signup { position: relative; background: var(--rosa-texto); color: var(--crema); overflow: hidden; }
.signup__ring { position: absolute; border-radius: 50%; pointer-events: none; }
.signup__ring--a { width: 720px; height: 720px; right: -220px; top: -260px; border: 1px solid rgba(233,196,188,0.35); }
.signup__ring--b { width: 520px; height: 520px; right: -120px; top: -160px; border: 1px solid rgba(201,162,126,0.45); }
.signup__inner { position: relative; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: clamp(80px, 10vw, 128px); padding-bottom: clamp(80px, 10vw, 128px); }
.signup__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.signup__text .eyebrow { color: var(--nude); }
.signup__text h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(44px, 5.4vw, 72px); line-height: 1.02; }
.signup__text > p { max-width: 460px; font-size: 18px; line-height: 1.7; color: var(--nude); }
.perks { list-style: none; margin: 0; padding: 8px 0 0; display: flex; flex-direction: column; gap: 14px; }
.perks li { display: flex; align-items: center; gap: 16px; font-size: 17px; }
.perks__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--empolvado); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 18px; }
.signup__box { flex: 1 1 400px; min-width: 0; }
.form, .thanks {
  background: var(--crema); color: var(--cacao); border-radius: 32px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.45);
}
.form { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.form h3 { font-family: var(--serif); font-size: 32px; font-weight: 400; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--gris); }
.field {
  font-family: var(--sans); font-size: 16px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--cacao);
  background: #FFFFFF; border: 1px solid rgba(181,114,106,0.45); border-radius: 14px; padding: 0 16px; min-height: 52px; width: 100%;
}
.field:focus { outline: 2px solid var(--oro); outline-offset: 2px; border-color: var(--oro); }
.form .btn { margin-top: 8px; min-height: 56px; border: 0; letter-spacing: 0.22em; width: 100%; }
.form__note { font-size: 13px; line-height: 1.6; color: var(--gris); text-align: center; }
.thanks { padding: clamp(36px, 5vw, 56px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.thanks[hidden], .form[hidden] { display: none; }
.thanks img { width: 120px; height: auto; }
.thanks h3 { font-family: var(--serif); font-size: 38px; font-weight: 400; }
.thanks p { max-width: 340px; font-size: 17px; line-height: 1.7; color: var(--gris); }

/* ---------- Pie ---------- */
.footer { background: var(--cacao); color: var(--crema); }
.footer a { color: var(--crema); text-decoration: none; border-bottom: 1px solid rgba(251,245,238,.35); }
.footer a:hover { color: #FFFFFF; border-bottom-color: var(--crema); }
.footer__inner { padding-top: clamp(72px, 9vw, 112px); padding-bottom: 40px; display: flex; flex-direction: column; gap: 64px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 48px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer__col--brand { gap: 20px; }
.footer__col--brand img { width: 180px; height: auto; }
.footer__col--brand p { font-size: 15px; line-height: 1.7; color: var(--empolvado); }
.footer__label { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 500; color: var(--oro); }
.footer__address { font-family: var(--serif); font-size: 26px; line-height: 1.25; font-weight: 400; font-style: normal; }
.footer__small { font-size: 14px; line-height: 1.7; color: var(--empolvado); }
.footer__link-caps { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; padding-bottom: 4px; }
.hours { width: 100%; }
.hours div { display: flex; justify-content: space-between; gap: 16px; font-size: 16px; padding: 10px 0; }
.hours div:first-child { padding-top: 0; border-bottom: 1px solid rgba(251,245,238,0.15); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid rgba(251,245,238,0.15); font-size: 13px; color: var(--empolvado); letter-spacing: 0.04em; }

/* ---------- Animaciones ---------- */
@keyframes opRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes opSpin { to { transform: rotate(360deg); } }
@keyframes opGlow { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: .85; transform: scale(1.06); } }
@keyframes opPulse { 0% { box-shadow: 0 0 0 0 rgba(181,114,106,.55); } 70% { box-shadow: 0 0 0 10px rgba(181,114,106,0); } 100% { box-shadow: 0 0 0 0 rgba(181,114,106,0); } }
@keyframes opMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rise { animation: opRise 1s cubic-bezier(.2,.7,.2,1) both; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .36s; } .d4 { animation-delay: .5s; }
.hero__ring, .signup__ring--a { animation: opSpin 40s linear infinite; }
.hero__glow { animation: opGlow 7s ease-in-out infinite; }
.dot { animation: opPulse 2.2s ease-out infinite; }
.marquee__track { animation: opMarquee 38s linear infinite; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) { .nav__links { display: none; } }
@media (max-width: 640px) { .gallery__item--wide { aspect-ratio: 4 / 3; } }
@media (max-width: 480px) {
  .nav__logo img { height: 42px; }
  .hero__card { left: 0; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .hero__ring, .signup__ring--a, .hero__glow, .dot, .marquee__track { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
