/* Aluzia — hoja de estilos compartida
   Paleta, tipografía y componentes para todas las páginas del sitio.
   Google Fonts (Cormorant Garamond + Raleway) se cargan desde cada HTML. */

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg:        #0F1738;
  --surface:   #1B2554;
  --elevated:  #2D3C75;
  --accent:    #D4A574;
  --text:      #F5EFE2;
  --muted:     #C8C2B4;
  --subtle:    #7D7868;
  --border:    rgba(200, 194, 180, 0.14);
  --border-gold: rgba(212, 165, 116, 0.24);
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Raleway', Arial, sans-serif;
  --max-w:     720px;
  --radius:    12px;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* ── Base ──────────────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image: url('nebulosa.jpg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 56, 0.82);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ── Header ────────────────────────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  max-width: calc(var(--max-w) + 120px);
  margin: 0 auto;
}
.site-logo img { height: 40px; width: auto; }
.site-nav { display: flex; gap: 28px; align-items: center; }
.site-nav a {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.site-nav a.current { color: var(--accent); }

/* ── Hero (portada) ─────────────────────────────────────────────────────────── */
.hero {
  max-width: calc(var(--max-w) + 120px);
  margin: 0 auto;
  padding: 48px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 268px;
  gap: 60px;
  align-items: center;
  min-height: calc(100dvh - 96px);
}
.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-text .desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 36px;
  max-width: 380px;
}
.appstore-area { display: none; /* unhide when ready */ }

/* ── Phone frame ─────────────────────────────────────────────────────────────── */
.phone {
  width: 100%;
  max-width: 268px;
  justify-self: center;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow:
    0 0  60px rgba(212, 165, 116, 0.07),
    0 32px 90px rgba(0, 0, 0, 0.55);
}
.phone video { display: block; width: 100%; }

/* ── Legal pages ─────────────────────────────────────────────────────────────── */
.legal-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 44px 40px 88px;
}
.legal-wrap h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.legal-updated {
  font-size: 0.83rem;
  color: var(--subtle);
  margin-bottom: 48px;
}
.legal-section { margin-bottom: 36px; }
.legal-section h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.legal-section p {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 10px;
}
.legal-section ul {
  list-style: disc;
  padding-left: 22px;
}
.legal-section li {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 6px;
}

/* ── FAQ (details / summary) ─────────────────────────────────────────────────── */
.faq-list { margin-bottom: 48px; }
.faq-list details {
  border-bottom: 1px solid var(--border);
}
.faq-list details summary {
  padding: 18px 4px;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  gap: 12px;
}
.faq-list details summary::-webkit-details-marker { display: none; }
.faq-list details summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  padding: 4px 4px 20px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ── Contact / crisis blocks ─────────────────────────────────────────────────── */
.block {
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 28px;
}
.block-contact {
  background: var(--surface);
  border: 1px solid var(--border-gold);
}
.block-crisis {
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--border);
}
.block h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.block-contact h2 { color: var(--accent); }
.block-crisis h2  { color: var(--text); }
.block p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 8px;
}
.block p:last-child { margin-bottom: 0; }
.block-crisis .note {
  font-size: 0.88rem;
  color: var(--subtle);
  margin-bottom: 20px;
}

.crisis-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.crisis-line:last-child { border-bottom: none; }
.crisis-name  { font-size: 0.97rem; font-weight: 600; color: var(--text); display: block; }
.crisis-desc  { font-size: 0.84rem; color: var(--subtle); }
.crisis-tel {
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--accent);
  white-space: nowrap;
  flex-shrink: 0;
}
.crisis-tel:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 36px 40px;
  border-top: 1px solid var(--border);
  max-width: calc(var(--max-w) + 120px);
  margin: 0 auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 14px;
}
.footer-links a {
  font-size: 0.83rem;
  color: var(--subtle);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-copy {
  font-size: 0.78rem;
  color: var(--subtle);
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
  .site-header { padding: 20px 24px; }
  .site-nav a { font-size: 12px; letter-spacing: 0.06em; }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px 60px;
    min-height: auto;
    gap: 40px;
  }
  .hero-text h1 { font-size: 2.8rem; }
  .hero-text .desc { max-width: 100%; margin-left: auto; margin-right: auto; }
  .phone { max-width: 230px; margin: 0 auto; }

  .legal-wrap { padding: 32px 24px 64px; }
  .block { padding: 22px 20px; }
  .site-footer { padding: 28px 24px; }
}
