/* ================================================================
   IGLESIA ADVENTISTA EBENEZER — STYLESHEET PRINCIPAL
   Versión 2.0 | Diseño profesional con identidad visual propia
================================================================ */

/* ===== IMPORTACIONES ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

/* ===== DESIGN TOKENS ===== */
:root {
  --azul-profundo:  #0d2240;
  --azul-cielo:     #1565c0;
  --azul-medio:     #1a3870;
  --dorado:         #c9a227;
  --dorado-suave:   #f0d080;
  --dorado-pale:    #fef9ec;
  --crema:          #faf8f3;
  --blanco:         #ffffff;
  --gris-suave:     #f4f4f8;
  --gris-medio:     #e8eaf0;
  --texto:          #1a1a2e;
  --texto-muted:    #5a5a72;
  --verde:          #2e7d32;
  --naranja:        #e65100;
  --morado:         #6a1b9a;
  --rojo:           #c62828;

  /* ===== GRADIENTES PRINCIPALES ===== */
  --navbar-grad:    linear-gradient(135deg, #0d2240 0%, #1565c0 100%);
  --hero-grad:     linear-gradient(135deg, #0d2240 0%, #1a3870 50%, #0a4070 100%);
  --radio-grad:     linear-gradient(135deg, #0d2240 0%, #1a3a6e 100%);

  --sombra-xs:  0 1px  4px rgba(13,34,64,.08);
  --sombra-sm:  0 2px  8px rgba(13,34,64,.10);
  --sombra:     0 4px 24px rgba(13,34,64,.12);
  --sombra-lg:  0 8px 48px rgba(13,34,64,.16);
  --sombra-xl:  0 16px 64px rgba(13,34,64,.20);

  --radio-br:    12px;
  --radio-lg:    20px;
  --radio-full:  9999px;
  --transicion:  .3s cubic-bezier(.4,0,.2,1);

  --navbar-h:    70px;
  --topband-h:   36px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--texto);
  background: var(--blanco);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul, ol { list-style: none; }

/* ===== SCROLL BAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--crema); }
::-webkit-scrollbar-thumb { background: var(--dorado); border-radius: 3px; }

/* ===== TIPOGRAFÍA ===== */
.font-display  { font-family: 'Playfair Display', Georgia, serif; }
.font-bible    { font-family: 'Cormorant Garamond', Georgia, serif; }
.font-ui       { font-family: 'Inter', sans-serif; }

h1, h2, h3, h4, h5 { line-height: 1.2; }

/* ===== SELECTION ===== */
::selection { background: var(--dorado); color: var(--azul-profundo); }

/* ===== PRELOADER ===== */
#preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--azul-profundo);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-cross {
  font-size: 3rem; color: var(--dorado);
  animation: preloader-pulse 1.2s ease-in-out infinite;
}
@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.2); opacity: .7; }
}

/* ================================================================
   BARRA SUPERIOR
================================================================ */
.nav-top-band {
  background: var(--azul-profundo);
  padding: 7px 0;
  font-size: .76rem;
  color: rgba(255,255,255,.65);
  border-bottom: 1px solid rgba(201,162,39,.15);
  position: relative;
  z-index: 1100;
}
.nav-top-band i { color: var(--dorado); margin-right: 4px; }
.nav-top-band a { color: rgba(255,255,255,.65); transition: var(--transicion); }
.nav-top-band a:hover { color: var(--dorado-suave); }

/* ================================================================
   NAVBAR
================================================================ */
.navbar-principal {
  background: linear-gradient(135deg, var(--azul-profundo) 0%, #16368a 100%);
  padding: .7rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
  transition: background .3s ease, padding .3s ease;
}
.navbar-principal.scrolled {
  background: rgba(13,34,64,.97);
  backdrop-filter: blur(12px);
  padding: .4rem 0;
}

.navbar-principal .navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blanco) !important;
  letter-spacing: -.01em;
}

.navbar-principal .nav-link {
  color: rgba(255,255,255,.82) !important;
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .025em;
  padding: .5rem .9rem !important;
  border-radius: 7px;
  transition: var(--transicion);
  position: relative;
}
.navbar-principal .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  width: 0; height: 2px;
  background: var(--dorado);
  transform: translateX(-50%);
  transition: width .3s ease;
  border-radius: 1px;
}
.navbar-principal .nav-link:hover::after,
.navbar-principal .nav-link.active::after { width: 60%; }
.navbar-principal .nav-link:hover,
.navbar-principal .nav-link.active {
  color: var(--dorado-suave) !important;
  background: rgba(255,255,255,.08);
}

.logo-circle {
  width: 42px; height: 42px;
  background: var(--azul-profundo);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-weight: 900; font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(13,34,64,.4);
}

/* ================================================================
   BOTONES GLOBALES
================================================================ */
.btn-dorado {
  background: linear-gradient(135deg, var(--dorado), #dbb030);
  color: var(--azul-profundo);
  font-weight: 700;
  border: none;
  border-radius: 9px;
  padding: .72rem 1.8rem;
  transition: var(--transicion);
  letter-spacing: .02em;
  font-size: .9rem;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem;
}
.btn-dorado:hover {
  background: linear-gradient(135deg, #dbb030, var(--dorado-suave));
  color: var(--azul-profundo);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,162,39,.4);
}
.btn-dorado:active { transform: translateY(0); }

.btn-outline-blanco {
  border: 2px solid rgba(255,255,255,.5);
  color: var(--blanco);
  border-radius: 9px;
  padding: .72rem 1.8rem;
  transition: var(--transicion);
  background: transparent;
  font-weight: 600; font-size: .9rem;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: .4rem;
}
.btn-outline-blanco:hover {
  border-color: var(--blanco);
  background: rgba(255,255,255,.12);
  color: var(--blanco);
  transform: translateY(-2px);
}

/* ================================================================
   SECCIONES — BASE
================================================================ */
section { padding: 88px 0; }
section.compact { padding: 60px 0; }

.section-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--dorado);
  margin-bottom: 8px;
  display: block;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--azul-profundo);
  line-height: 1.18;
}
.section-title.white { color: var(--blanco); }
.section-lead {
  font-size: 1.05rem;
  color: var(--texto-muted);
  max-width: 540px;
  line-height: 1.7;
}
.section-divider {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--dorado), transparent);
  border-radius: 2px;
  margin: 14px 0 30px;
}
.section-divider.center { margin: 14px auto 30px; }

/* BG utilities */
.bg-crema    { background: var(--crema); }
.bg-profundo { background: var(--azul-profundo); }
.bg-gris     { background: var(--gris-suave); }
.bg-gradiente-azul { background: linear-gradient(135deg, var(--azul-profundo), var(--azul-medio)); }

/* ================================================================
   HERO
================================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--azul-profundo) 0%, var(--azul-medio) 50%, #0a4a80 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: calc(var(--navbar-h) + var(--topband-h) + 40px) 0 60px;
}

/* Patrón de fondo */
.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'%3E%3Cpath d='M40 0l3 10h10l-8 6 3 10-8-6-8 6 3-10-8-6h10z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Círculos decorativos */
.hero::after {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border: 80px solid rgba(201,162,39,.05);
  border-radius: 50%;
  top: -200px; right: -100px;
  pointer-events: none;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  font-weight: 900;
  color: var(--blanco);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.hero-sub {
  color: rgba(255,255,255,.68);
  font-size: 1.08rem;
  font-weight: 300;
  max-width: 520px;
  line-height: 1.75;
}

/* Versículo en hero */
.hero-versiculo {
  background: rgba(201,162,39,.12);
  border-left: 4px solid var(--dorado);
  border-radius: 0 12px 12px 0;
  padding: 16px 22px;
  margin: 24px 0;
  backdrop-filter: blur(4px);
}
.hero-versiculo blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--dorado-suave);
  margin: 0 0 6px;
  line-height: 1.65;
}
.hero-versiculo cite {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  font-style: normal;
  font-weight: 600;
  letter-spacing: .04em;
}

/* Stats en hero */
.hero-stat-box {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: var(--transicion);
}
.hero-stat-box:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-4px);
}
.hero-stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--blanco);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-stat-label {
  font-size: .75rem;
  color: var(--dorado-suave);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.4);
  font-size: 1.3rem;
  animation: hero-bounce 2.2s ease-in-out infinite;
  cursor: pointer;
}
@keyframes hero-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* ================================================================
   RADIO FLOTANTE
================================================================ */
#radioFloat {
  position: fixed;
  bottom: 100px; left: 20px;
  z-index: 9990;
  background: linear-gradient(135deg, var(--azul-profundo), #1a3a6e);
  border-radius: 16px;
  padding: 13px 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45), 0 0 0 1px rgba(201,162,39,.2);
  display: flex; align-items: center; gap: 14px;
  min-width: 270px;
  border: 1px solid rgba(201,162,39,.2);
  transition: all .4s cubic-bezier(.4,0,.2,1);
}
#radioFloat.minimized { min-width: auto; padding: 10px 14px; border-radius: 50px; }
#radioFloat.minimized .radio-details,
#radioFloat.minimized .radio-vol { display: none !important; }

.radio-pulse {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--dorado), #dbb030);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; cursor: pointer;
  transition: var(--transicion);
  box-shadow: 0 2px 12px rgba(201,162,39,.4);
}
.radio-pulse:hover { transform: scale(1.1); }
.radio-pulse i { color: var(--azul-profundo); font-size: .9rem; }
.radio-pulse.playing { animation: pulse-ring 1.8s ease-in-out infinite; }
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,162,39,.6), 0 2px 12px rgba(201,162,39,.4); }
  50%       { box-shadow: 0 0 0 12px rgba(201,162,39,0), 0 2px 12px rgba(201,162,39,.4); }
}

.radio-details { flex: 1; min-width: 0; }
.radio-name {
  color: var(--dorado-suave);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.radio-status {
  color: rgba(255,255,255,.65);
  font-size: .7rem;
}

/* Ondas de radio */
.radio-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 5px;
}
.radio-wave span {
  width: 3px;
  background: var(--dorado);
  border-radius: 2px;
  animation: wave-bar 1.2s ease-in-out infinite;
}
.radio-wave span:nth-child(1) { height: 10px; animation-delay: 0s; }
.radio-wave span:nth-child(2) { height: 20px; animation-delay: .2s; }
.radio-wave span:nth-child(3) { height: 15px; animation-delay: .1s; }
.radio-wave span:nth-child(4) { height: 25px; animation-delay: .3s; }
.radio-wave span:nth-child(5) { height: 13px; animation-delay: .15s; }
.radio-wave.paused span { animation-play-state: paused; opacity: .4; }
@keyframes wave-bar {
  0%, 100% { transform: scaleY(.35); }
  50%       { transform: scaleY(1); }
}

.radio-vol input[type="range"] {
  width: 72px;
  accent-color: var(--dorado);
  cursor: pointer;
}

.radio-min-btn {
  background: rgba(255,255,255,.08);
  border: none;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  width: 26px; height: 26px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  transition: var(--transicion);
  flex-shrink: 0;
}
.radio-min-btn:hover { background: rgba(255,255,255,.15); color: var(--blanco); }

/* ================================================================
   VERSÍCULO DEL DÍA
================================================================ */
.versiculo-section-bg {
  background: linear-gradient(135deg, #0a2245 0%, #0a4a80 50%, #1a3870 100%);
  position: relative;
  overflow: hidden;
}
.versiculo-section-bg::before {
  content: '\2767';
  position: absolute;
  top: -40px; right: 40px;
  font-size: 20rem;
  color: rgba(201,162,39,.04);
  pointer-events: none;
}

.versiculo-card-main {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201,162,39,.2);
  border-radius: 24px;
  padding: 52px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.versiculo-card-main::before {
  content: '\201C';
  font-family: 'Playfair Display', serif;
  font-size: 12rem;
  color: rgba(201,162,39,.08);
  position: absolute;
  top: -30px; left: 10px;
  line-height: 1;
  pointer-events: none;
}

.versiculo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-style: italic;
  color: var(--blanco);
  line-height: 1.75;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.versiculo-ref {
  color: var(--dorado);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  margin-bottom: 22px;
  display: block;
}
.btn-versiculo-action {
  background: transparent;
  border: 1px solid rgba(201,162,39,.4);
  color: var(--dorado);
  border-radius: 22px;
  padding: .5rem 1.4rem;
  cursor: pointer;
  transition: var(--transicion);
  font-size: .85rem;
  font-weight: 500;
  margin: 0 4px;
  display: inline-flex; align-items: center; gap: .4rem;
}
.btn-versiculo-action:hover {
  background: var(--dorado);
  color: var(--azul-profundo);
  border-color: var(--dorado);
}

.versiculo-progress-wrap {
  margin-top: 20px;
}
#versiculo-progress-bar-ext {
  height: 3px;
  background: rgba(201,162,39,.18);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 300px;
}
#versiculo-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--dorado), var(--dorado-suave));
  width: 100%;
  transition: width 1s linear;
}
.versiculo-countdown {
  font-size: .7rem;
  color: rgba(255,255,255,.35);
  margin-top: 6px;
}

/* ================================================================
   RADIO AMANECER (SECCIÓN)
================================================================ */
.radio-section { background: var(--gris-suave); }

.radio-card-hero {
  background: linear-gradient(135deg, var(--azul-profundo) 0%, #1a3870 100%);
  border-radius: 22px;
  padding: 44px;
  color: var(--blanco);
  box-shadow: var(--sombra-lg);
  position: relative;
  overflow: hidden;
}
.radio-card-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  border: 50px solid rgba(201,162,39,.07);
  border-radius: 50%;
}
.radio-card-hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 180px; height: 180px;
  background: rgba(201,162,39,.04);
  border-radius: 50%;
}

.radio-live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(198,40,40,.85);
  color: var(--blanco);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.radio-live-badge .live-dot {
  width: 7px; height: 7px;
  background: var(--blanco);
  border-radius: 50%;
  animation: blink 1s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.youtube-embed-wrap {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  position: relative;
  background: #000;
}
.youtube-embed-wrap iframe {
  width: 100%; height: 420px;
  border: none; display: block;
}

/* ================================================================
   MINISTERIOS
================================================================ */
.ministerio-card {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform .35s ease, box-shadow .35s ease;
  border: none;
  cursor: pointer;
  background: var(--blanco);
}
.ministerio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-xl);
}

.ministerio-img-wrap {
  height: 198px;
  overflow: hidden;
  position: relative;
}
.ministerio-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.ministerio-card:hover .ministerio-img-wrap img { transform: scale(1.08); }

.ministerio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,34,64,.75) 0%, rgba(13,34,64,.1) 50%, transparent 100%);
}

.ministerio-icon-badge {
  position: absolute;
  top: 14px; right: 14px;
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  box-shadow: 0 3px 12px rgba(0,0,0,.3);
}

.ministerio-body { padding: 22px; }
.ministerio-tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.ministerio-body h5 {
  font-family: 'Playfair Display', serif;
  color: var(--azul-profundo);
  font-size: 1.12rem;
  margin-bottom: 10px;
  line-height: 1.3;
}
.ministerio-body p {
  color: var(--texto-muted);
  font-size: .86rem;
  line-height: 1.65;
  margin: 0;
}
.ministerio-arrow {
  color: var(--dorado);
  font-size: .8rem;
  margin-top: 14px;
  display: flex; align-items: center; gap: 6px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-6px);
  transition: var(--transicion);
}
.ministerio-card:hover .ministerio-arrow { opacity: 1; transform: translateX(0); }

/* ================================================================
   CALENDARIO
================================================================ */
.calendario-section { background: var(--crema); }

/* FullCalendar overrides */
.fc { font-family: 'Inter', sans-serif; }
.fc .fc-toolbar-title {
  font-family: 'Playfair Display', serif;
  color: var(--azul-profundo);
  font-size: 1.3rem;
  font-weight: 700;
}
.fc .fc-button-primary {
  background: var(--azul-cielo);
  border-color: var(--azul-cielo);
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 14px;
  transition: var(--transicion);
}
.fc .fc-button-primary:hover { background: var(--azul-profundo); border-color: var(--azul-profundo); }
.fc .fc-button-primary:not(:disabled):active,
.fc .fc-button-primary:not(:disabled).fc-button-active {
  background: var(--azul-profundo); border-color: var(--azul-profundo);
}
.fc .fc-daygrid-event {
  border: none;
  border-radius: 5px;
  font-size: .73rem;
  font-weight: 600;
  padding: 2px 6px;
  margin: 1px 2px;
}
.fc .fc-daygrid-event.cat-culto  { background: var(--dorado); color: var(--azul-profundo); }
.fc .fc-daygrid-event.cat-joven  { background: var(--verde); color: var(--blanco); }
.fc .fc-daygrid-event.cat-nino   { background: var(--naranja); color: var(--blanco); }
.fc .fc-daygrid-event.cat-mujer  { background: var(--morado); color: var(--blanco); }
.fc .fc-daygrid-event             { background: var(--azul-cielo); color: var(--blanco); }
.fc .fc-col-header-cell { background: var(--azul-profundo); }
.fc .fc-col-header-cell-cushion { color: var(--blanco); font-size: .8rem; font-weight: 600; padding: 8px 4px; }
.fc .fc-day-today { background: rgba(21,101,192,.05) !important; }
.fc .fc-scrollgrid { border-radius: 12px; overflow: hidden; border: 1px solid var(--gris-medio) !important; }

.leyenda-dot { width: 13px; height: 13px; border-radius: 4px; flex-shrink: 0; }
.proximo-evento-card {
  background: var(--blanco);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--sombra-sm);
  border-left: 4px solid var(--dorado);
}

/* ================================================================
   TESTIMONIOS
================================================================ */
.testimonio-card {
  background: var(--blanco);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: var(--sombra);
  transition: transform .3s ease, box-shadow .3s ease;
  height: 100%;
}
.testimonio-card:hover { transform: translateY(-5px); box-shadow: var(--sombra-lg); }

.testimonio-stars { color: var(--dorado); font-size: .9rem; letter-spacing: 2px; margin-bottom: 14px; }

.testimonio-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.12rem;
  font-style: italic;
  color: var(--texto);
  line-height: 1.75;
}

.testimonio-author { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.testimonio-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--dorado), #dbb030);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--azul-profundo);
  font-size: 1.05rem; flex-shrink: 0;
  font-family: 'Playfair Display', serif;
}

/* ================================================================
   CONTACTO
================================================================ */
.contacto-icon-box {
  width: 44px; height: 44px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: .95rem;
}

.contacto-form-card {
  background: var(--blanco);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: var(--sombra);
}

.form-input {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--gris-medio);
  border-radius: 9px;
  font-size: .9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transicion);
  color: var(--texto);
  background: var(--blanco);
}
.form-input:focus {
  border-color: var(--azul-cielo);
  box-shadow: 0 0 0 3px rgba(21,101,192,.1);
}
.form-input::placeholder { color: var(--texto-muted); }

/* ================================================================
   CHATBOT
================================================================ */
#chatbot-toggle {
  position: fixed;
  bottom: 100px; right: 20px;
  z-index: 9998;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--azul-cielo), var(--azul-profundo));
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(21,101,192,.5);
  border: none;
  transition: var(--transicion);
}
#chatbot-toggle:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(21,101,192,.6); }
#chatbot-toggle i { color: var(--blanco); font-size: 1.25rem; }

.chatbot-badge {
  position: absolute;
  top: -6px; right: -4px;
  background: var(--dorado);
  color: var(--azul-profundo);
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: .62rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--blanco);
}

#chatbot-window {
  position: fixed;
  bottom: 168px; right: 20px;
  z-index: 9997;
  width: 368px;
  border-radius: 22px;
  background: var(--blanco);
  box-shadow: 0 20px 70px rgba(0,0,0,.22);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(21,101,192,.1);
  animation: chatSlideIn .3s ease;
}
@keyframes chatSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-header {
  background: linear-gradient(135deg, var(--azul-profundo), var(--azul-cielo));
  padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
}
.chat-avatar {
  width: 40px; height: 40px;
  background: var(--dorado);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-avatar i { color: var(--azul-profundo); }
.chat-hd-info h6 { color: var(--blanco); margin: 0; font-size: .94rem; }
.chat-hd-info span { color: rgba(255,255,255,.6); font-size: .72rem; }
.chat-online-dot {
  width: 8px; height: 8px;
  background: #4caf50; border-radius: 50%;
  display: inline-block; margin-right: 5px;
  animation: blink 2s ease-in-out infinite;
}
.chat-close {
  margin-left: auto;
  background: rgba(255,255,255,.15);
  border: none; color: var(--blanco);
  width: 32px; height: 32px;
  border-radius: 8px; cursor: pointer;
  font-size: .9rem; transition: var(--transicion);
  display: flex; align-items: center; justify-content: center;
}
.chat-close:hover { background: rgba(255,255,255,.25); }

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex; flex-direction: column;
  gap: 10px;
  max-height: 310px;
  scroll-behavior: smooth;
}
.chat-msg { max-width: 84%; }
.chat-msg.bot { align-self: flex-start; }
.chat-msg.user { align-self: flex-end; }

.chat-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: .86rem;
  line-height: 1.55;
}
.chat-msg.bot  .chat-bubble { background: var(--gris-suave); color: var(--texto); border-bottom-left-radius: 4px; }
.chat-msg.user .chat-bubble { background: var(--azul-cielo); color: var(--blanco); border-bottom-right-radius: 4px; }

.chat-time { font-size: .64rem; color: var(--texto-muted); margin-top: 4px; }
.chat-msg.user .chat-time { text-align: right; }

/* Typing indicator */
.chat-typing .chat-bubble {
  padding: 12px 16px;
  display: flex; align-items: center; gap: 4px;
}
.typing-dot {
  width: 7px; height: 7px;
  background: var(--texto-muted);
  border-radius: 50%;
  animation: typing-bounce .8s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

.chat-quick-btns {
  padding: 10px 14px;
  display: flex; flex-wrap: wrap; gap: 6px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.quick-btn {
  font-size: .73rem;
  padding: 5px 11px;
  border-radius: 22px;
  border: 1.5px solid rgba(21,101,192,.3);
  color: var(--azul-cielo);
  background: none; cursor: pointer;
  transition: var(--transicion);
  font-weight: 500;
}
.quick-btn:hover { background: var(--azul-cielo); color: var(--blanco); border-color: var(--azul-cielo); }

.chat-input-area {
  padding: 12px 14px;
  border-top: 1px solid rgba(0,0,0,.07);
  display: flex; gap: 8px; align-items: center;
}
#chat-input {
  flex: 1;
  border: 1.5px solid var(--gris-medio);
  border-radius: 24px;
  padding: 8px 16px;
  font-size: .86rem; outline: none;
  font-family: 'Inter', sans-serif;
  transition: var(--transicion);
}
#chat-input:focus { border-color: var(--azul-cielo); }
#chat-send {
  background: var(--azul-cielo);
  border: none; border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--blanco);
  flex-shrink: 0; transition: var(--transicion);
}
#chat-send:hover { background: var(--azul-profundo); transform: scale(1.08); }

/* ================================================================
   WHATSAPP
================================================================ */
#whatsapp-btn {
  position: fixed;
  bottom: 22px; right: 22px;
  z-index: 9999;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  text-decoration: none;
  transition: var(--transicion);
  animation: wa-attention 4s ease-in-out infinite;
}
#whatsapp-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 30px rgba(37,211,102,.65);
  animation: none;
}
#whatsapp-btn i { color: var(--blanco); font-size: 1.6rem; }

.wa-tooltip {
  position: absolute;
  right: 68px;
  background: var(--azul-profundo);
  color: var(--blanco);
  padding: 7px 14px;
  border-radius: 10px;
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  box-shadow: var(--sombra-sm);
}
#whatsapp-btn:hover .wa-tooltip { opacity: 1; }
.wa-tooltip::after {
  content: '';
  position: absolute; right: -5px; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--azul-profundo);
  border-right: none;
}
@keyframes wa-attention {
  0%,80%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
  90%          { box-shadow: 0 4px 30px rgba(37,211,102,.85); transform: scale(1.06); }
}

/* ================================================================
   ADMIN PANEL
================================================================ */
#admin-panel {
  position: fixed; inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
}
.admin-modal {
  background: var(--blanco);
  border-radius: 22px;
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
  animation: adminSlideIn .35s ease;
}
@keyframes adminSlideIn {
  from { opacity: 0; transform: scale(.95) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.admin-header {
  background: linear-gradient(135deg, var(--azul-profundo), #1a3870);
  padding: 20px 28px;
  display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.admin-header h4 {
  color: var(--blanco); margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
}
.admin-close {
  margin-left: auto;
  background: rgba(255,255,255,.18);
  border: none; color: var(--blanco);
  width: 36px; height: 36px;
  border-radius: 9px; cursor: pointer;
  font-size: 1rem; transition: var(--transicion);
  display: flex; align-items: center; justify-content: center;
}
.admin-close:hover { background: rgba(255,255,255,.28); }

.admin-nav {
  background: var(--gris-suave);
  border-bottom: 1px solid var(--gris-medio);
  padding: 0 4px;
  display: flex; overflow-x: auto; flex-shrink: 0;
}
.admin-nav::-webkit-scrollbar { height: 3px; }
.admin-nav-btn {
  padding: 13px 18px;
  border: none; background: none;
  font-size: .82rem; font-weight: 600;
  color: var(--texto-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transicion);
  white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.admin-nav-btn:hover { color: var(--azul-cielo); }
.admin-nav-btn.active { color: var(--azul-cielo); border-bottom-color: var(--azul-cielo); }

.admin-content { flex: 1; overflow-y: auto; padding: 26px 28px; }

.admin-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; color: var(--azul-profundo);
  margin-bottom: 16px; font-weight: 700;
}

.admin-card {
  background: var(--gris-suave);
  border-radius: 13px;
  padding: 22px;
  margin-bottom: 16px;
}
.admin-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gris-medio);
  border-radius: 9px;
  font-size: .88rem;
  outline: none;
  transition: var(--transicion);
  font-family: 'Inter', sans-serif;
  color: var(--texto);
  background: var(--blanco);
}
.admin-input:focus { border-color: var(--azul-cielo); box-shadow: 0 0 0 3px rgba(21,101,192,.1); }
textarea.admin-input { resize: vertical; }

.admin-btn {
  padding: 9px 20px;
  border: none; border-radius: 9px;
  cursor: pointer; font-size: .84rem;
  font-weight: 600; font-family: 'Inter', sans-serif;
  transition: var(--transicion);
  display: inline-flex; align-items: center; gap: 6px;
}
.admin-btn:hover { transform: translateY(-1px); }
.admin-btn-primary { background: var(--azul-cielo); color: var(--blanco); }
.admin-btn-primary:hover { background: var(--azul-profundo); }
.admin-btn-success { background: var(--verde); color: var(--blanco); }
.admin-btn-success:hover { background: #1b5e20; }
.admin-btn-danger { background: var(--rojo); color: var(--blanco); }
.admin-btn-danger:hover { background: #b71c1c; }
.admin-btn-gold { background: var(--dorado); color: var(--azul-profundo); }
.admin-btn-gold:hover { background: var(--dorado-suave); }

.stat-card-admin {
  background: var(--blanco);
  border-radius: 14px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--sombra-xs);
  border-top: 3px solid var(--azul-cielo);
}
.stat-card-admin .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700;
  color: var(--azul-cielo); line-height: 1;
}
.stat-card-admin .lbl { font-size: .72rem; color: var(--texto-muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 5px; }

.list-item-admin {
  background: var(--blanco);
  border-radius: 11px;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 9px;
  box-shadow: var(--sombra-xs);
  transition: var(--transicion);
}
.list-item-admin:hover { box-shadow: var(--sombra-sm); }
.list-item-dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.list-item-text { flex: 1; }
.list-item-title { font-weight: 600; font-size: .88rem; color: var(--texto); }
.list-item-sub   { font-size: .74rem; color: var(--texto-muted); margin-top: 2px; }

/* ================================================================
   FOOTER
================================================================ */
.footer-main {
  background: var(--azul-profundo);
  color: rgba(255,255,255,.72);
  padding: 68px 0 32px;
}
.footer-main h5 {
  font-family: 'Playfair Display', serif;
  color: var(--blanco);
  margin-bottom: 22px; font-size: 1.08rem;
}
.footer-main a { color: rgba(255,255,255,.58); text-decoration: none; transition: var(--transicion); font-size: .88rem; }
.footer-main a:hover { color: var(--dorado-suave); }

.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a { display: flex; align-items: center; gap: 7px; }
.footer-nav a::before { content: '›'; color: var(--dorado); font-size: 1rem; }

.footer-social { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: var(--transicion);
  color: rgba(255,255,255,.7);
}
.footer-social a:hover { background: var(--dorado); color: var(--azul-profundo); transform: translateY(-3px); }

.footer-divider { border-color: rgba(255,255,255,.1); margin: 44px 0 26px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { margin: 0; font-size: .78rem; color: rgba(255,255,255,.42); }

/* ================================================================
   PRELOADER (añadir en HTML si se desea)
================================================================ */
.page-loading #preloader { opacity: 1; visibility: visible; }

/* ================================================================
   UTILIDADES
================================================================ */
.text-dorado { color: var(--dorado); }
.text-azul   { color: var(--azul-cielo); }
.bg-dorado   { background: var(--dorado); }

.rounded-xl  { border-radius: 20px; }
.rounded-2xl { border-radius: 28px; }
.shadow-dorado { box-shadow: 0 6px 24px rgba(201,162,39,.3); }

.hover-lift { transition: transform .3s ease, box-shadow .3s ease; }
.hover-lift:hover { transform: translateY(-5px); }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 991.98px) {
  .hero { padding: 130px 0 70px; }
  section { padding: 64px 0; }
  .youtube-embed-wrap iframe { height: 280px; }
}

@media (max-width: 767.98px) {
  section { padding: 52px 0; }
  .versiculo-card-main { padding: 32px 22px; }
  .radio-card-hero { padding: 28px 22px; }
  .contacto-form-card { padding: 24px 18px; }
  #radioFloat { min-width: auto; left: 10px; bottom: 168px; }
  #chatbot-window { width: calc(100vw - 24px); right: 12px; bottom: 178px; }
  .admin-modal { border-radius: 16px; }
  .admin-header, .admin-content { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 575.98px) {
  .hero h1 { font-size: 2rem; }
  .hero-stat-num { font-size: 2rem; }
  .youtube-embed-wrap iframe { height: 220px; }
  #chatbot-window { width: 100vw; right: 0; border-radius: 22px 22px 0 0; bottom: 170px; }
  .nav-top-band { display: none; }
}

/* ================================================================
   ANIMACIONES EXTRA
================================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .6s ease both; }

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.shimmer {
  background: linear-gradient(90deg, var(--gris-suave) 25%, var(--gris-medio) 50%, var(--gris-suave) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease infinite;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
