/* Sagrada Ela — sistema de diseño del sitio (Figma "04 · Web").
   Tipos: Instrument Serif (display) + Jost (texto). Paleta de marca. */
:root {
  --marfil: #F5F1EA; --lino: #E9E1D5; --arena: #D9CCBA; --taupe: #9C8C7B;
  --cacao: #5E5046; --espresso: #2A2420; --arcilla: #B58A6C;
  --rubor: #E8B4A6; --durazno: #F2C9A8; --lila: #CDBFE3;
  --bosque: #37402F; --crema-i: #EFE9DA; --musgo: #6B7358; --sol: #D9B26A;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  /* compatibilidad con editor.js */
  --ink: var(--espresso); --cream: var(--marfil); --clay: var(--arcilla);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--marfil); color: var(--espresso); font-family: var(--sans); font-weight: 300; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 120px; }
@media (max-width: 1100px) { .wrap { padding: 0 48px; } }
@media (max-width: 640px) { .wrap { padding: 0 24px; } }

/* Tipografía */
.label { font-family: var(--sans); font-weight: 400; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--cacao); }
.label--s { font-size: 10px; }
.label--muted { color: var(--taupe); }
.d-xl { font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 11vw, 160px); line-height: .9; letter-spacing: -.02em; }
.d-l { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 7.8vw, 112px); line-height: .96; letter-spacing: -.02em; }
.h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: .98; letter-spacing: -.015em; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.04; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.3vw, 32px); line-height: 1.15; }
.h4 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.2; }
.bl { font-size: 19px; line-height: 1.6; color: var(--cacao); }
.bm { font-size: 16px; line-height: 1.7; color: var(--cacao); }
.bs { font-size: 14px; line-height: 1.6; color: var(--cacao); }
.cap { font-size: 13px; line-height: 1.5; color: var(--taupe); }
.num { font-family: var(--serif); font-size: 64px; line-height: 1; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--sans); font-weight: 400; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; padding: 20px 34px; border: 1px solid var(--espresso); background: var(--espresso); color: var(--marfil); cursor: pointer; transition: opacity .2s, background .2s; }
.btn:hover { opacity: .88; }
.btn--s { font-size: 11px; padding: 13px 22px; }
.btn--sec { background: transparent; color: var(--espresso); }
.btn--sec:hover { background: var(--lino); opacity: 1; }
.btn--claro { background: transparent; color: var(--marfil); border-color: rgba(245,241,234,.6); }
.btn--claro:hover { background: rgba(245,241,234,.08); opacity: 1; }
.btn--texto { background: none; border: 0; padding: 0; color: var(--espresso); }
.btn:disabled { opacity: .5; cursor: default; }

.tag { display: inline-flex; border: 1px solid var(--arena); border-radius: 999px; padding: 8px 14px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--espresso); }

/* Campos (subrayado) */
.campo { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.campo span { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--cacao); }
.campo input, .campo textarea, .campo select { background: transparent; border: 0; border-bottom: 1px solid var(--arena); padding: 14px 0; font-family: var(--sans); font-weight: 300; font-size: 16px; color: var(--espresso); outline: none; border-radius: 0; }
.campo input::placeholder { color: var(--taupe); }
.campo input:focus { border-color: var(--cacao); }
.msg { display: none; padding: 12px 16px; font-size: 14px; line-height: 1.5; }
.msg.is-ok { display: block; background: var(--lino); color: var(--espresso); }
.msg.is-err { display: block; border: 1px solid rgba(138,58,46,.4); color: #8a3a2e; }

/* Aura (manchas de color difuminadas) */
.aura { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aura i { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .85; }
.aura--dia i:nth-child(1) { width: 60%; height: 80%; left: -10%; top: 5%; background: var(--rubor); }
.aura--dia i:nth-child(2) { width: 45%; height: 60%; right: 0; top: -10%; background: var(--lila); }
.aura--dia i:nth-child(3) { width: 45%; height: 55%; left: 25%; bottom: -20%; background: var(--durazno); }
.aura--noche i:nth-child(1) { width: 50%; height: 120%; left: 5%; top: -10%; background: #8a5a52; opacity: .6; }
.aura--noche i:nth-child(2) { width: 45%; height: 110%; right: 5%; top: -20%; background: #6c5a86; opacity: .55; }
.aura--noche i:nth-child(3) { width: 40%; height: 80%; left: 35%; bottom: -30%; background: #9a7458; opacity: .5; }
.aura--integra i:nth-child(1) { width: 55%; height: 90%; left: -10%; top: 0; background: var(--musgo); opacity: .5; }
.aura--integra i:nth-child(2) { width: 45%; height: 70%; right: -5%; top: -10%; background: var(--sol); opacity: .35; }
.aura--integra i:nth-child(3) { width: 40%; height: 60%; left: 30%; bottom: -25%; background: var(--crema-i); opacity: .4; }

.arco { border-radius: 999px 999px 0 0; overflow: hidden; }
.arco img { width: 100%; height: 100%; object-fit: cover; }

/* Navegación */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; padding: 0 64px; }
.nav__logo img { height: 22px; width: auto; }
.nav__links { display: flex; gap: 38px; }
.nav__links a { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--espresso); }
.nav__links a:hover { color: var(--arcilla); }
.nav--claro .nav__links a { color: var(--marfil); }
.nav__burger { display: none; background: none; border: 0; width: 28px; height: 20px; position: relative; cursor: pointer; }
.nav__burger i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; }
.nav__burger i:nth-child(1) { top: 4px; } .nav__burger i:nth-child(2) { bottom: 4px; }
.nav__movil { display: none; position: fixed; inset: 0; z-index: 50; background: var(--marfil); flex-direction: column; padding: 32px 24px; gap: 28px; }
.nav__movil.is-open { display: flex; }
.nav__movil a { font-family: var(--serif); font-size: 36px; }
@media (max-width: 1280px) { .nav__links { gap: 26px; } }
@media (max-width: 1140px) {
  .nav .wrap { padding: 0 24px; height: 72px; }
  .nav__links, .nav .btn { display: none; }
  .nav__burger { display: block; }
}

/* Secciones */
.sec { position: relative; padding: 140px 0; }
.sec--lino { background: var(--lino); }
.sec--oscura { background: var(--espresso); color: var(--marfil); }
@media (max-width: 640px) { .sec { padding: 88px 0; } }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
@media (max-width: 960px) { .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 48px; } }

/* Lista con líneas */
.filas > * { border-top: 1px solid var(--arena); }

/* FAQ */
.faq details { border-top: 1px solid var(--arena); padding: 24px 0; }
.faq details:last-child { border-bottom: 1px solid var(--arena); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 22px; color: var(--cacao); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 14px; font-size: 15px; line-height: 1.7; color: var(--cacao); max-width: 560px; }

/* Pie */
.pie { background: var(--espresso); color: var(--marfil); padding: 96px 0 40px; }
.pie__top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; padding-bottom: 72px; }
.pie__top img { height: 26px; width: auto; margin-bottom: 28px; }
.pie h5 { font-weight: 400; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--taupe); margin-bottom: 20px; }
.pie ul { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.pie ul a:hover { color: var(--arena); }
.pie__bot { display: flex; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid rgba(245,241,234,.15); font-size: 13px; color: var(--taupe); }
@media (max-width: 960px) { .pie__top { grid-template-columns: 1fr 1fr; } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
