/* ============================ 
   VARIABLES DE COLOR Y BASE
   ============================ */

:root {
  --bg-body: #020315;
  --bg-alt: #070b1e;
  --bg-card: #0a0f25;
  --bg-soft: rgba(7, 11, 30, 0.96);

  --fg-main: #f5f5f8;
  --fg-muted: #c3c3d4;
  --fg-muted-2: #8f90aa;

  --gold: #d8b16a;
  --gold-soft: #f0d892;
  --green: #9dd8b6;
  --emerald: #009178;
  --danger: #ff6b6b;

  --border-soft: rgba(255, 255, 255, 0.12);
}

/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1b2355 0, #050616 50%, #000 100%);
  color: var(--fg-main);
}

/* Imágenes seguras */
img {
  max-width: 100%;
  display: block;
}

/* Enlaces */
a {
  color: inherit;
  text-decoration: none;
}

/* ============================
   SHELL GENERAL
   ============================ */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-main {
  flex: 1;
}

/* ============================
   HEADER / NAV
   ============================ */

.app-header {
  position: sticky;
  top: 0;
  z-index: 50; /* subimos un poco para estar por encima de otros elementos */
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.95),
    rgba(0, 0, 0, 0.85)
  );
  border-bottom: 1px solid var(--border-soft);
}

.app-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Marca */
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-logo {
  width: 40px;
  height: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--green);
}

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--gold-soft);
}

/* Nav desktop */
.app-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-link {
  font-size: 0.9rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: var(--fg-muted);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg-main);
}

.nav-link.is-active {
  color: var(--gold-soft);
}

.nav-link-cta {
  border: 1px solid var(--gold-soft);
  color: var(--gold-soft);
  padding-inline: 1rem;
}

/* Botón hamburguesa (solo móvil) */
.nav-toggle {
  display: none; /* en escritorio oculto */
  background: transparent;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 28px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-line {
  width: 100%;
  height: 3px;
  background: #f5f5f8;
  border-radius: 999px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* Animación cuando el menú está abierto */
.nav-toggle.open .nav-toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================
   SECCIONES GENERALES
   ============================ */

.section {
  padding: 3.5rem 1.25rem;
}

.section-alt {
  background: radial-gradient(circle at top, #151a45 0, #050616 60%, #000 100%);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* Encabezados de sección */
.section-header {
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--fg-muted-2);
  line-height: 1.7;
}

/* ============================
   HERO
   ============================ */

.section-hero {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2.2rem;
  align-items: center;
}

.hero-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.hero-title-highlight {
  display: block;
  color: var(--gold-soft);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--fg-muted-2);
  line-height: 1.7;
  margin-bottom: 0.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.2rem 0 1.4rem;
}

/* Botones generales */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.12s ease,
    color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-soft));
  color: #141319;
  box-shadow: 0 0 10px rgba(240, 216, 146, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e0be7d, #f6e3b0);
  box-shadow: 0 0 14px rgba(240, 216, 146, 0.7);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-soft);
  color: var(--fg-muted);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--fg-main);
}

.btn-full {
  width: 100%;
}

/* Meta info bajo hero */
.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 0.4rem;
}

.meta-item {
  background: rgba(7, 11, 30, 0.94);
  border-radius: 0.9rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(240, 216, 146, 0.2);
}

.meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-muted-2);
  display: block;
  margin-bottom: 0.25rem;
}

.meta-value {
  font-size: 0.9rem;
  color: var(--fg-main);
}

/* Tarjeta hero lateral */
.hero-card {
  align-self: stretch;
}

.hero-card-inner {
  background: var(--bg-soft);
  border-radius: 1.4rem;
  padding: 1.8rem 1.7rem;
  border: 1px solid rgba(240, 216, 146, 0.3);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.85),
    0 0 50px rgba(126, 170, 255, 0.3);
}

.hero-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

.hero-list {
  font-size: 0.95rem;
  color: var(--fg-muted-2);
  line-height: 1.7;
  margin-bottom: 0.9rem;
  padding-left: 1.1rem;
}

.hero-list li {
  margin-bottom: 0.35rem;
}

.hero-card-note {
  font-size: 0.9rem;
  color: var(--fg-muted-2);
  margin-bottom: 0.9rem;
}

.hero-card-cta {
  font-size: 0.9rem;
  color: var(--gold-soft);
}

/* ============================
   CARDS GENERALES
   ============================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: rgba(7, 11, 30, 0.94);
  border-radius: 1.2rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-title {
  font-size: 1.05rem;
  margin-bottom: 0.45rem;
}

.card-text {
  font-size: 0.93rem;
  color: var(--fg-muted-2);
  line-height: 1.7;
}

.card-list {
  margin-top: 0.7rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

.card-list li {
  margin-bottom: 0.35rem;
}

/* ============================
   RITUAL / PASOS
   ============================ */

.ritual-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
}

.ritual-step {
  background: rgba(7, 11, 30, 0.94);
  border-radius: 1.2rem;
  padding: 1.3rem 1.4rem;
  border: 1px dashed rgba(240, 216, 146, 0.4);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
}

.step-title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.step-text {
  font-size: 0.9rem;
  color: var(--fg-muted-2);
  line-height: 1.7;
}

/* ============================
   SOBRE MÍ
   ============================ */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.body-text {
  font-size: 0.95rem;
  color: var(--fg-muted-2);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.about-card {
  background: rgba(7, 11, 30, 0.94);
  border-radius: 1.2rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid rgba(240, 216, 146, 0.3);
}

.about-card-title {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

/* ============================
   FAQ
   ============================ */

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

.faq-item {
  background: rgba(7, 11, 30, 0.94);
  border-radius: 1.1rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-question {
  font-size: 0.98rem;
  margin-bottom: 0.4rem;
}

.faq-answer {
  font-size: 0.9rem;
  color: var(--fg-muted-2);
  line-height: 1.7;
}

/* ============================
   CONTACTO
   ============================ */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.contact-text .card-list {
  margin-bottom: 1rem;
}

/* Aside de contacto */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-tag {
  background: rgba(7, 11, 30, 0.94);
  border-radius: 1.1rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-tag-label {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--danger);
  margin-bottom: 0.4rem;
}

.contact-tag-text {
  font-size: 0.9rem;
  color: var(--fg-muted-2);
  line-height: 1.7;
  margin-bottom: 0.35rem;
}

/* Creative Commons */
.contact-license {
  font-size: 0.85rem;
  color: var(--fg-muted-2);
}

.cc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.3rem;
}

.cc-icon {
  width: 18px;
  height: auto;
}

/* ============================
   FOOTER
   ============================ */

.app-footer {
  background: linear-gradient(to top, #000, #04070b);
  border-top: 1px solid var(--border-soft);
  padding: 1.6rem 1.25rem 2rem;
  font-size: 0.85rem;
  color: #b5b5c8;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr;
  gap: 1.5rem;
}

.footer-title {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-text {
  margin: 0.5rem 0;
}

.footer-author {
  margin-top: 0.2rem;
}

.social-icon {
  width: 18px;
  height: auto;
  display: inline-block;
  margin-right: 0.35rem;
}

/* ============================
   ORÁCULO NUMÉRICO SÍ / NO
   ============================ */

.pregunta-grid {
  align-items: flex-start;
}

.pregunta-formulario {
  position: relative;
}

.pregunta-form .digits-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.digit-input {
  width: 2.6rem;
  padding: 0.45rem 0.3rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border-soft);
  background: rgba(5, 8, 24, 0.95);
  color: var(--fg-main);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  appearance: textfield;
}

/* Quitar flechas de los input number en algunos navegadores */
.digit-input::-webkit-outer-spin-button,
.digit-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.field-label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--fg-muted);
}

.question-input {
  width: 100%;
  margin-top: 0.35rem;
  margin-bottom: 0.9rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid var(--border-soft);
  background: rgba(5, 8, 24, 0.95);
  color: var(--fg-main);
  font-size: 0.9rem;
  resize: vertical;
  min-height: 90px;
}

.question-input::placeholder {
  color: var(--fg-muted-2);
}

.form-note {
  font-size: 0.8rem;
  color: var(--fg-muted-2);
  margin-bottom: 0.9rem;
}

.form-error {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--danger);
  min-height: 1.1rem;
}

.respuesta-si-no {
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px dashed var(--border-soft);
  background: rgba(3, 6, 20, 0.95);
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.respuesta-main {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  text-align: center;
}

.respuesta-main::before,
.respuesta-main::after {
  content: "✶";
  font-size: 1rem;
  margin: 0 0.35rem;
  color: var(--gold-soft);
}

.respuesta-enfasis {
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--fg-main);
}

.respuesta-enfasis span {
  font-weight: 600;
  color: var(--gold-soft);
}

.respuesta-detail {
  font-size: 0.75rem;
  color: var(--fg-muted-2);
  text-align: center;
  line-height: 1.5;
}

.respuesta-keyword {
  font-weight: 600;
  color: var(--gold-soft);
  letter-spacing: 0.02em;
}

.consulta-extra {
  margin-top: 1.4rem;
  text-align: center;
}

.consulta-text {
  font-size: 0.85rem;
  color: var(--fg-muted-2);
  margin-bottom: 0.6rem;
}

.consulta-btn {
  margin-top: 0.4rem;
}



.card-text-small {
  font-size: 0.85rem;
  color: var(--fg-muted-2);
  margin-top: 0.7rem;
}

.consulta-extra {
  margin-top: 1.4rem;
  text-align: center;
}

.consulta-text {
  font-size: 0.85rem;
  color: var(--fg-muted-2);
  margin-bottom: 0.6rem;
}

.consulta-btn {
  margin-top: 0.4rem;
}


/* Ajustes responsive */
@media (max-width: 900px) {
  .pregunta-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* ============================
   RESPONSIVE
   ============================ */

/* 1) Tablets y pantallas medianas */
@media (max-width: 900px) {
  .app-header-inner {
    padding-inline: 1rem;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.3fr);
    gap: 1.6rem;
  }

  .card-grid,
  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ritual-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr);
  }

  .faq-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  }
}

/* 2) Móviles */
@media (max-width: 768px) {
  /* Header responsive: nav hamburguesa */
  .nav-toggle {
    display: flex;
  }

  .app-nav {
    position: fixed;
    top: 56px;
    right: 0;
    left: 0;
    background: rgba(4, 6, 20, 0.98);
    flex-direction: column;
    padding: 0.9rem 1.2rem 1.2rem;
    gap: 0.4rem;
    border-bottom: 1px solid var(--border-soft);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.18s ease,
      opacity 0.18s ease;
    z-index: 40;
  }

  .app-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    width: 100%;
  }

  .section {
    padding-inline: 1rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .section-hero {
    padding-top: 3.4rem;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .hero-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-grid,
  .card-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .ritual-flow {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn,
  .btn-full {
    width: 100%;
    max-width: 100%;
  }
}

/* 3) Móviles muy pequeños */
@media (max-width: 480px) {
  .app-header-inner {
    padding-inline: 0.8rem;
  }

  .section {
    padding-inline: 0.8rem;
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-card-inner {
    padding: 1.4rem 1.25rem;
  }

  .card {
    padding: 1.2rem 1.2rem;
  }
}
