/* Fuentes base ya vienen del <head> */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Crimson Pro', serif;
  font-size: 16px;
  line-height: 1.8;
  color: #e0e0e0;
  background: linear-gradient(-45deg, #0b0b0c, #121317, #1a1b1f, #0b0c10);
  background-size: 400% 400%;
  animation: bg-move 30s ease-in-out infinite;
  min-height: 100vh;
}

/* Temas */
body.theme-dark {
  color: #e0e0e0;
}

body.theme-light {
  background: linear-gradient(-45deg, #f4f4f4, #ffffff, #f5f5f5, #fafafa);
  color: #1a1a1a;
}

/* Halo */
.halo {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,0.22), transparent 70%);
  transform: translate(-50%, -50%);
  animation: halo-pulse 10s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

/* Layout */
.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

header {
  padding: 3rem 1rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(15,15,15,0.9), rgba(15,15,15,0.5));
  border-bottom: 1px solid rgba(212,175,55,0.15);
}

header h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.5rem;
  color: #d4af37;
  letter-spacing: 3px;
  text-shadow: 0 0 12px rgba(212,175,55,0.25);
  animation: fadeIn 1.2s ease-out;
}

header p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: #c9c9c9;
  line-height: 1.7;
  animation: fadeIn 1.6s ease;
}

.logo-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}

.logo-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(212,175,55,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(212,175,55,0.25), rgba(10,10,10,0.95));
  box-shadow: 0 0 18px rgba(212,175,55,0.4);
}

.logo-initial {
  font-family: 'Cinzel', serif;
  font-size: 1.4rem;
  color: #fdf5d0;
}

.logo-sub {
  font-size: 0.75rem;
  color: #aaa;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.title-zone h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  color: #d4af37;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.subtitle {
  font-size: 0.98rem;
  color: #d0d0d0;
  max-width: 600px;
}

.header-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

/* Botón ícono */
.icon-button {
  border: 1px solid rgba(212,175,55,0.4);
  background: rgba(10,10,10,0.9);
  color: #d4af37;
  border-radius: 999px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.icon-button:hover {
  background: rgba(212,175,55,0.2);
  transform: translateY(-1px);
}

nav {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.2rem;
  padding: 1rem 0;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212,175,55,0.18);
  position: sticky;
  top: 0;
  z-index: 50;
}

nav a {
  color: #d4af37;
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-decoration: none;
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #d4af37;
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

nav a:hover {
  color: #fff6c7;
}
/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.hero-text h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  text-align: center;
  color: #d4af37;
  margin-bottom: 0.75rem;
}

.hero-text p {
  color: #dcdcdc;
  font-size: 0.98rem;
  margin-bottom: 1.4rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #d4af37, #f4d683);
  color: #000;
  font-weight: 600;
  border-color: rgba(212,175,55,0.85);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212,175,55,0.4);
}

.btn-ghost {
  border-color: rgba(212,175,55,0.5);
  color: #d4af37;
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(212,175,55,0.12);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.45);
  color: #d4af37;
  background: rgba(12,12,12,0.9);
}

/* Hero image */
.hero-image-card {
  display: flex;
  justify-content: center;
}

.rosa-frame {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid red;
  box-shadow: 0 18px 40px rgba(0,0,0,0.9);
  max-width: 420px;
}

.hero-rosa {
  display: block;
  width: 100%;
  height: auto;
}

.rosa-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 40%);
}

.rosa-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
}

.rosa-caption h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: #fef7d6;
  margin-bottom: 0.2rem;
}

.rosa-caption p {
  font-size: 0.85rem;
  color: #e2e2e2;
}

/* Intro text */
.intro-text {
  margin-top: 2.5rem;
  padding: 1.8rem 1.5rem;
  border-radius: 16px;
  background: rgba(14,14,16,0.92);
  border: 1px solid rgba(212,175,55,0.18);
}

.intro-text h2 {
  font-family: 'Cinzel', serif;
  color: #d4af37;
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.intro-text p {
  color: #dcdcdc;
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

/* Details */
.intro-details {
  margin-top: 0.5rem;
  border-radius: 12px;
  border: 1px solid rgba(212,175,55,0.3);
  padding: 0.6rem 0.9rem;
  background: rgba(255,255,255,0.02);
}

.intro-details summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #d4af37;
}

.intro-details summary::marker {
  display: none;
}

.intro-details summary::after {
  content: " +";
  font-weight: 400;
}

.intro-details[open] summary::after {
  content: " −";
}

.intro-details p {
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

/* Preview reflexiones */
.reflexiones-preview {
  margin-top: 2.5rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.3rem;
}

.section-header h2 {
  font-family: 'Cinzel', serif;
  color: #d4af37;
  font-size: 1.25rem;
}

.section-link {
  font-size: 0.9rem;
  color: #d4af37;
  text-decoration: none;
}

.reflexiones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.reflexion-card {
  padding: 1.3rem 1.2rem;
  border-radius: 14px;
  background: rgba(11,11,13,0.96);
  border: 1px solid rgba(212,175,55,0.2);
  box-shadow: 0 10px 24px rgba(0,0,0,0.8);
}

.reflexion-card h3 {
  font-size: 1rem;
  color: #f5e6b8;
  margin-bottom: 0.4rem;
}

.reflexion-card p {
  font-size: 0.9rem;
  color: #d1d1d1;
  margin-bottom: 0.7rem;
}

.card-link {
  font-size: 0.88rem;
  text-decoration: none;
  color: #d4af37;
}

/* Interactiva */
.interactive-section {
  margin-top: 2rem;
  padding: 2rem 1.6rem;
  border-radius: 18px;
  background: radial-gradient(circle at top left, rgba(212,175,55,0.12), rgba(8,8,10,0.95));
  border: 1px solid rgba(212,175,55,0.25);
}

.interactive-section h2 {
  font-family: 'Cinzel', serif;
  color: #d4af37;
  text-align: center;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.interactive-sub {
  font-size: 0.94rem;
  color: #d5d5d5;
  margin-bottom: 1.2rem;
}

.interactive-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
}

.interactive-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.4);
  background: rgba(8,8,10,0.96);
  color: #f0f0f0;
}

.interactive-output {
  margin-top: 1rem;
  font-style: italic;
  font-size: 0.98rem;
  color: #f0e6c7;
}

/* Final CTA */
.final-cta {
  text-align: center;
  margin-top: 2.8rem;
  padding-top: 1.7rem;
  border-top: 1px solid rgba(212,175,55,0.3);
}

.final-cta p {
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #b0b0b0;
  border-top: 1px solid rgba(212,175,55,0.25);
  padding-top: 1.3rem;
}

.site-footer span {
  color: #d4af37;
}

.footer-meta {
  margin-top: 0.3rem;
  font-size: 0.85rem;
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0%,100% { opacity: .2; transform: scale(1); }
  50%     { opacity: .3; transform: scale(1.05); }
}

/* Responsive */
@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .header-actions {
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-image-card {
    order: -1;
  }

  .main-nav {
    border-radius: 12px;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .layout {
    padding-inline: 1rem;
  }

  .site-header {
    padding: 1.4rem 1rem;
  }

  .hero {
    gap: 1.6rem;
  }

  .interactive-box {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta {
    gap: 0.3rem;
  }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* ============================================
   AJUSTES DE CONTRASTE Y JERARQUÍA VISUAL
   (mejoran la lectura y hacen el nav más atractivo)
   ============================================ */

/* NAV más claro y con pastillas doradas */
.main-nav {
  background: radial-gradient(circle at top, rgba(212,175,55,0.20), rgba(9,9,11,0.96));
  border: 1px solid rgba(212,175,55,0.45);
  box-shadow: 0 10px 30px rgba(0,0,0,0.9);
  gap: 1.4rem;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f8f2d0;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease, transform 0.15s ease;
}

/* quitamos subrayado anterior */
.nav-link::after { display: none; }

.nav-link:hover,
.nav-link.active {
  background: rgba(212,175,55,0.20);
  color: #ffffff;
  transform: translateY(-1px);
}

/* seccion “¿Qué encontrarás aquí?” un poco más destacada */
.intro-text {
  background: radial-gradient(circle at top left, rgba(212,175,55,0.12), rgba(14,14,16,0.96));
  border: 1px solid rgba(212,175,55,0.35);
  box-shadow: 0 10px 28px rgba(0,0,0,0.85);
}

/* cards de reflexiones más “clicables” */
.reflexion-card {
  background: radial-gradient(circle at top, rgba(212,175,55,0.10), rgba(11,11,13,0.98));
  border: 1px solid rgba(212,175,55,0.35);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.reflexion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.9);
  border-color: rgba(212,175,55,0.6);
}

/* sección interactiva más limpia */
.interactive-section {
  background: radial-gradient(circle at top, rgba(212,175,55,0.18), rgba(8,8,10,0.97));
  border: 1px solid rgba(212,175,55,0.50);
}

.interactive-input {
  background: rgba(5,5,7,0.95);
  color: #f5f5f5;
  border-color: rgba(212,175,55,0.6);
}

.interactive-input::placeholder {
  color: rgba(220,220,220,0.55);
}

/* botón “Descubrir” un poco más protagonista */
.interactive-section .btn-primary {
  min-width: 130px;
}

/* texto final separado visualmente */
.final-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px dotted rgba(212,175,55,0.45);
}
@media (max-width: 768px) {

  nav {
    gap: 1.2rem;
    padding: 0.7rem 0;
  }

  nav a {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }

  header p {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  section {
    margin: 1.5rem auto;
    padding: 1.2rem;
  }
}
.fade {
  animation: fadeIn 1s ease both;
}
footer {
  padding: 2.2rem 1rem 1rem;
  text-align: center;
  background: rgba(10,10,10,0.9);
  border-top: 1px solid rgba(212,175,55,0.18);
  margin-top: 3rem;
}

footer p {
  color: #b9b9b9;
  font-size: 0.9rem;
}

footer a {
  color: #d4af37;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #fff6c7;
}