/* =============================================================
   QuieroConfesarme — Estilos del sitio
   ============================================================= */

/* --- Variables globales --- */
:root {
  --primary:       #4A3080;
  --primary-dark:  #2D1B5A;
  --primary-light: #6B4CA8;
  --gold:          #C4982A;
  --gold-light:    #F0D688;
  --bg:            #FAF8F5;
  --surface:       #FFFFFF;
  --surface-alt:   #F3EDE6;
  --text:          #2C2414;
  --text-muted:    #6B5C48;
  --border:        #E4DDD4;
  --shadow:        0 2px 12px rgba(44, 36, 20, 0.08);
  --shadow-md:     0 4px 24px rgba(44, 36, 20, 0.14);
  --radius:        8px;
  --radius-lg:     16px;
}

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4, h5 {
  font-family: 'Lora', Georgia, serif;
  line-height: 1.3;
  color: var(--primary-dark);
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }
img { max-width: 100%; }

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

/* --- Encabezado / Navegación --- */
.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  position: relative;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.site-logo svg { width: 38px; height: 38px; flex-shrink: 0; }

.site-logo-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.site-logo-text span {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
}

/* Navegación */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--gold);
}

.btn-donate-nav {
  background: var(--gold) !important;
  color: var(--primary-dark) !important;
  padding: 0.4rem 1.1rem !important;
  border-radius: 20px !important;
  border-bottom: none !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.01em;
  transition: background 0.18s, box-shadow 0.18s !important;
}

.btn-donate-nav:hover {
  background: var(--gold-light) !important;
  box-shadow: 0 2px 10px rgba(196,152,42,0.35) !important;
  color: var(--primary-dark) !important;
}

/* Menú hamburguesa (móvil) */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0.4rem 0.55rem;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.2s;
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: calc(100% + 2px);
    left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem 1.25rem;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { border-bottom: none; font-size: 1rem; }
  .btn-donate-nav { align-self: flex-start; }
}

/* --- Secciones comunes --- */
section { padding: 4rem 0; }

.section-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }

.section-desc {
  color: var(--text-muted);
  max-width: 580px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-header { margin-bottom: 2.5rem; }

.divider {
  width: 52px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0.85rem 0 1.25rem;
}

.divider.center { margin-left: auto; margin-right: auto; }

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--primary-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 152, 42, 0.4);
}

.btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.55);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-lg { padding: 0.9rem 2.2rem; font-size: 1.05rem; }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.875rem; }

/* --- Hero --- */
.hero {
  background: linear-gradient(140deg, var(--primary-dark) 0%, var(--primary) 55%, #6448A0 100%);
  color: white;
  padding: 5.5rem 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025' fill-rule='evenodd'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0L80 12v2L54 40h-2zm4 0L80 16v2L58 40h-2zm4 0L80 20v2L62 40h-2zm4 0L80 24v2L66 40h-2zm4 0L80 28v2L70 40h-2zm4 0L80 32v2L74 40h-2zm4 0L80 36v2L78 40h-2zm4 0L80 40h-2v-2l2 2zM0 80V40l40 40H0zm4 0L0 76v-2l6 6H4zm4 0L0 72v-2l10 10H8zm4 0L0 68v-2l14 14h-2zm4 0L0 64v-2l18 18h-2zm4 0L0 60v-2l22 22h-2zm4 0L0 56v-2l26 26h-2zm4 0L0 52v-2l30 30h-2zm4 0L0 48v-2l34 34h-2zm4 0L0 44v-2l38 38h-2zm4 0L2 42l-2-2 40 40h-2z'/%3E%3C/g%3E%3C/svg%3E");
}

.hero > * { position: relative; }

.hero-icon {
  margin: 0 auto 1.75rem;
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.2);
}

.hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: white;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.hero-tagline {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  max-width: 540px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
}

/* --- Sobre la Confesión --- */
.about-section { background: var(--surface); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.steps-list { list-style: none; margin-top: 1.5rem; }

.steps-list li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.4rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
}

.step-body strong {
  display: block;
  color: var(--primary-dark);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.step-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.quote-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  color: white;
  position: sticky;
  top: 100px;
}

.quote-card .cross-ornament { margin-bottom: 1.25rem; opacity: 0.5; }

.quote-card blockquote {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.75;
  color: rgba(255,255,255,0.92);
  margin-bottom: 1.25rem;
}

.quote-card cite {
  font-size: 0.8rem;
  color: var(--gold-light);
  font-style: normal;
  letter-spacing: 0.05em;
}

/* --- Examen de conciencia preview --- */
.examen-section { background: var(--bg); }

.commandments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.commandment-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
  color: var(--text);
  display: block;
}

.commandment-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  color: var(--text);
}

.commandment-num {
  font-family: 'Lora', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.commandment-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

.examen-cta {
  text-align: center;
  padding: 2.5rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.examen-cta p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

/* --- Anuncios --- */
.ad-section {
  background: var(--surface-alt);
  padding: 1.5rem 0;
}

.ad-wrap {
  display: flex;
  justify-content: center;
}

.ad-placeholder {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 3rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface);
  width: 100%;
  max-width: 728px;
}

.ad-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--border);
  margin-bottom: 0.35rem;
}

.ad-placeholder p {
  font-size: 0.82rem;
  color: var(--border);
}

/* --- Donaciones --- */
.donate-section {
  background: linear-gradient(140deg, var(--primary-dark) 0%, #5A3A9A 100%);
  color: white;
  text-align: center;
}

.donate-section .section-title { color: white; }
.donate-section .section-desc { color: rgba(255,255,255,0.78); margin: 0 auto 2rem; }

.donate-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.donate-card {
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  text-align: center;
  min-width: 140px;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  text-decoration: none;
  color: white;
  display: block;
}

.donate-card:hover {
  background: rgba(255,255,255,0.17);
  transform: translateY(-3px);
  color: white;
}

.donate-card.featured {
  border-color: var(--gold);
  background: rgba(196, 152, 42, 0.15);
}

.donate-amount {
  font-family: 'Lora', serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
}

.donate-period {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  margin-top: 0.2rem;
}

.donate-featured-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--primary-dark);
  padding: 0.2rem 0.55rem;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.donate-note {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  margin-top: 1.25rem;
}

.donate-note a { color: rgba(255,255,255,0.7); text-decoration: underline; }

/* --- Próximamente --- */
.coming-soon-section { background: var(--surface); }

.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.coming-soon-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  background: var(--bg);
  transition: box-shadow 0.18s;
}

.coming-soon-card:hover { box-shadow: var(--shadow); }

.cs-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.coming-soon-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }

.coming-soon-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.badge-soon {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.65rem;
  background: var(--surface-alt);
  color: var(--text-muted);
  border-radius: 20px;
  margin-top: 0.85rem;
  border: 1px solid var(--border);
}

/* --- Pie de página --- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .site-logo-text { color: white; }
.footer-brand .site-logo-text span { color: rgba(255,255,255,0.45); }

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: 0.85rem;
  color: rgba(255,255,255,0.55);
}

.footer-heading {
  font-family: 'Lora', serif;
  color: white;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: color 0.18s;
}

.footer-links a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.45);
  transition: color 0.18s;
}
.footer-bottom a:hover { color: var(--gold-light); }

/* --- Página: Examen de conciencia --- */
.examen-page { padding: 3rem 0 5rem; }

.examen-intro {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--gold);
}

.examen-intro h2 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.examen-intro p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

.commandment-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.commandment-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
  user-select: none;
}

.commandment-section-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.commandment-section-title {
  flex: 1;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.commandment-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  color: var(--primary);
  transition: transform 0.2s;
}

.commandment-section.is-open .commandment-toggle { transform: rotate(45deg); }

.commandment-questions {
  display: none;
  list-style: none;
}

.commandment-section.is-open .commandment-questions { display: block; }

.commandment-questions li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.commandment-questions li input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.commandment-questions li label { cursor: pointer; flex: 1; }
.commandment-questions li input:checked + label {
  text-decoration: line-through;
  color: var(--border);
}

/* --- Utilidades --- */
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Banner de cookies --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--primary-dark);
  border-top: 2px solid var(--gold);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.25);
  animation: slideUp 0.35s ease;
}

.cookie-banner--hide {
  animation: slideDown 0.35s ease forwards;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}

.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.6;
  min-width: 240px;
}

.cookie-banner-text a {
  color: var(--gold-light);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.65rem;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
}

.cookie-btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.8);
}

.cookie-btn-outline:hover {
  border-color: rgba(255,255,255,0.7);
  color: white;
}

.cookie-btn-accept {
  background: var(--gold);
  color: var(--primary-dark);
}

.cookie-btn-accept:hover {
  background: var(--gold-light);
}
