/* ===== Paleta del proyecto (tomada de aa2.us/LYV/aa1.html) ===== */
:root {
  --wine: #7b1022;
  --wine-dark: #3a0710;
  --gold: #d9aa43;
  --gold-light: #f6df9a;
  --ink: #241d1f;
  --muted: #6f6266;
  --paper: #fffdf8;
  --soft: #f7efe7;
  --line: #e7d8cb;
  /* Café/crema usados en KeyByMe (keybyme.com) para tablas con filas
     alternadas — mismos valores, para que ambos sitios luzcan igual. */
  --cafe: #6A3E28;
  --cafe-dark: #5B3725;
  --cafe-darker: #4A2A1A;
  --cream: #FBF7F2;
  --cream-soft: #F4EADF;
  --cream-dark: #D8C8B5;
  --beige: #E9D9C7;
  /* Colores de Radio Luz y Vida (tomados del logo) — sección propia dentro
     del sitio, distinta del vino/dorado editorial, como suele verse en
     reproductores (Spotify, iHeartRadio, etc.). El dorado se comparte con
     el resto del sitio para que igual se sienta parte de la misma marca. */
  --radio-navy: #16234a;
  --radio-navy-dark: #0b1226;
  --radio-blue: #2f6fdb;
}

body {
  background: var(--paper);
  color: var(--ink);
}

a {
  color: var(--wine);
}
a:hover {
  color: var(--wine-dark);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--wine-dark);
}

/* Navbar */
.navbar.bg-primary {
  background: var(--wine) !important;
  border-bottom: 3px solid var(--gold);
}
.navbar-dark .navbar-brand {
  color: var(--gold-light);
}
.navbar-dark .navbar-nav .nav-link {
  color: #fff8e9;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: var(--gold-light);
}
.navbar-dark .navbar-toggler {
  border-color: var(--gold);
}
.dropdown-menu {
  background: var(--paper);
  border-color: var(--line);
}
.dropdown-item {
  color: var(--wine-dark);
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--soft);
  color: var(--wine);
}

/* Botones */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--wine);
  --bs-btn-border-color: var(--wine);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--wine-dark);
  --bs-btn-hover-border-color: var(--wine-dark);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--wine-dark);
  --bs-btn-active-border-color: var(--wine-dark);
  --bs-btn-focus-shadow-rgb: 123, 16, 34;
}
.btn-success {
  --bs-btn-color: var(--wine-dark);
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-hover-color: var(--wine-dark);
  --bs-btn-hover-bg: var(--gold-light);
  --bs-btn-hover-border-color: var(--gold-light);
  --bs-btn-active-color: var(--wine-dark);
  --bs-btn-active-bg: var(--gold-light);
  --bs-btn-active-border-color: var(--gold);
  --bs-btn-focus-shadow-rgb: 217, 170, 67;
}
.btn-danger {
  --bs-btn-bg: var(--wine-dark);
  --bs-btn-border-color: var(--wine-dark);
  --bs-btn-hover-bg: #2a0509;
  --bs-btn-hover-border-color: #2a0509;
  --bs-btn-active-bg: #2a0509;
  --bs-btn-active-border-color: #2a0509;
}
.btn-secondary {
  --bs-btn-bg: var(--muted);
  --bs-btn-border-color: var(--muted);
  --bs-btn-hover-bg: var(--ink);
  --bs-btn-hover-border-color: var(--ink);
  --bs-btn-active-bg: var(--ink);
  --bs-btn-active-border-color: var(--ink);
}

/* Alertas */
.alert-success {
  background: var(--gold-light);
  border-color: var(--gold);
  color: var(--wine-dark);
}

/* Tablas y fondos suaves — mismo patrón "cebra" que KeyByMe:
   odd:bg-white even:bg-cream-soft hover:bg-beige */
.table-striped > tbody > tr:nth-of-type(odd) > * {
  background: #ffffff;
}
.table-striped > tbody > tr:nth-of-type(even) > * {
  background: var(--cream-soft);
}
.table-striped > tbody > tr:hover > * {
  background: var(--beige);
}
.bg-light {
  background: var(--soft) !important;
}
.text-muted {
  color: var(--muted) !important;
}

.form-layout{

    border-radius: 15px;
    width: 500px;

}

table {
  
  width: 100%;
}

/* td, th {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 3px;
} */

/* tr:nth-child(even) {
  background-color: #dddddd;
} */

 
#marker{
  -webkit-text-size-adjust: 100%;
  text-indent: 0;
  position: relative;
  line-height: normal;
  top: auto;
  font-size: .7rem;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,Arial;
  font-weight: 700;
  vertical-align: text-top;
  display: inline;
  color:red
}

/* ===== Radio Luz y Vida ===== */

.radio-hero {
  background: radial-gradient(circle at 15% 20%, #1c2c5c 0%, var(--radio-navy) 45%, var(--radio-navy-dark) 100%);
  color: #fff;
  border-radius: 1rem;
  padding: 3rem 1.5rem;
  margin-bottom: 2rem;
}

.radio-logo {
  width: 200px;
  height: 200px;
  max-width: 55vw;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08);
}

.radio-tagline {
  color: #cfd8f0;
}

.radio-live-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(220, 53, 69, .18);
  border: 1px solid #dc3545;
  color: #ff8a94;
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 50rem;
  padding: .35rem 1rem;
}

.radio-live-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: #dc3545;
  animation: radio-pulse 1.6s ease-in-out infinite;
}

@keyframes radio-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(1.3); }
}

.radio-player-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: .75rem;
  backdrop-filter: blur(2px);
}

.radio-now-label {
  color: var(--gold-light);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.radio-now-title {
  font-size: 1.1rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.radio-now-artist {
  color: #cfd8f0;
  font-size: .9rem;
}

.radio-player-card audio {
  filter: invert(1) grayscale(1) contrast(1.1);
  border-radius: .5rem;
}

.radio-info-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: .75rem;
  padding: 1.5rem;
  height: 100%;
}

.radio-info-card h3 {
  color: var(--wine-dark);
}

.radio-info-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--radio-navy);
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: .75rem;
}

/* Banner de la radio en el home */
.radio-home-banner {
  background: linear-gradient(120deg, var(--radio-navy) 0%, var(--radio-navy-dark) 100%);
  border-radius: 1rem;
  padding: 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
}

.radio-home-banner img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  flex-shrink: 0;
}

.radio-home-banner .btn {
  --bs-btn-color: var(--radio-navy-dark);
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-hover-color: var(--radio-navy-dark);
  --bs-btn-hover-bg: var(--gold-light);
  --bs-btn-hover-border-color: var(--gold-light);
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .radio-home-banner {
    text-align: center;
    justify-content: center;
  }
}
 

/* Genealogia */
.gen-controles { margin-bottom: 1rem; }
.gen-cadena { list-style: none; margin: 0; padding: 0; }
.gen-persona {
  border-left: 3px solid #ced4da;
  padding: .35rem 0 .35rem .75rem;
  margin-left: .25rem;
}
.gen-persona.gen-linea { border-left-color: #0d6efd; }
.gen-persona.gen-jesus {
  border-left-color: #b8860b;
  background-color: #fff8e1;
  border-radius: 0 .375rem .375rem 0;
}
.gen-nombre { font-weight: 700; margin-right: .5rem; }
.gen-linea > .gen-nombre { color: #0a58ca; }
.gen-jesus > .gen-nombre { color: #8a6500; font-size: 1.25rem; }
.gen-cita { font-size: .875rem; overflow-wrap: anywhere; }
.gen-nota { font-size: .875rem; color: #6c757d; }
.gen-ramas { margin-top: .25rem; }
.gen-ramas > summary { cursor: pointer; font-size: .875rem; color: #495057; }
.gen-ramas > .gen-cadena { margin-left: .5rem; }
.gen-sucesor > .gen-nombre::before { content: "\21B3\00A0"; color: #6c757d; font-weight: 400; }
.gen-ramas > .gen-cadena + .gen-cadena { margin-top: .5rem; }
@media (max-width: 575.98px) {
  .gen-persona { padding-left: .4rem; margin-left: .1rem; }
  .gen-ramas > .gen-cadena { margin-left: .2rem; }
}
.gen-tribus { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.gen-tribu { margin-top: 1.5rem; scroll-margin-top: .5rem; }
.gen-grupo { margin-top: 1rem; }
.gen-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .25rem .75rem; }
.gen-lista > li { border-left: 3px solid #ced4da; padding: .2rem 0 .2rem .5rem; }
.gen-ayuda { margin: .35rem 0 0; }
.gen-buscador { margin: 1rem 0 .5rem; max-width: 36rem; }
.gen-resultados { margin-bottom: 1.5rem; max-width: 48rem; }
.gen-resultados .gen-nombre { color: inherit; }
.gen-resultados .badge { font-weight: 500; }
.gen-persona:target > .gen-nombre { background-color: #fff3cd; box-shadow: 0 0 0 .2rem #fff3cd; border-radius: .15rem; }
.gen-persona:target { scroll-margin-top: 30vh; }
.gen-resultado a.gen-nombre { text-decoration: none; }
.gen-resultado a.gen-nombre:hover { text-decoration: underline; }
.gen-parentesco { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-top: .35rem; padding-top: .35rem; border-top: 1px dashed #ced4da; font-size: .875rem; }
.gen-abajo { text-align: right; margin-left: auto; }
@media (max-width: 575.98px) {
  .gen-parentesco { flex-direction: column; }
  .gen-abajo { text-align: left; margin-left: 0; }
}

/* Tabernaculo en 3D */
.tab3d { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; gap: 1rem; margin-bottom: 1.5rem; }
.tab3d-escena { position: relative; height: min(76vh, 42rem); min-height: 22rem; border-radius: .5rem; overflow: hidden; background: #bcd4ee; }
#tab3d-lienzo { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#tab3d-lienzo:active { cursor: grabbing; }
.tab3d-estado { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; background: rgba(255, 255, 255, .75); font-weight: 600; }
.tab3d-estado[hidden] { display: none; }
.tab3d-error { color: #842029; background: #f8d7da; }
.tab3d-paradas { position: absolute; left: .5rem; right: .5rem; bottom: .5rem; display: flex; gap: .3rem; overflow-x: auto; padding-bottom: .15rem; }
.tab3d-paradas .btn { flex: 0 0 auto; }
.tab3d-paradas .btn[aria-pressed="true"] { background-color: #7a1022; border-color: #7a1022; color: #fff; }
.tab3d-panel { height: min(76vh, 42rem); min-height: 22rem; overflow-y: auto; padding: .75rem; border: 1px solid #dee2e6; border-radius: .5rem; background: #fff; }
.tab3d-medidas { font-weight: 600; margin-bottom: .35rem; }
.tab3d-interpretacion { font-size: .875rem; padding: .35rem .5rem; border-left: 3px solid #b8860b; background: #fff8e1; }
.tab3d-cita { margin-bottom: .5rem; }
.tab3d-cita summary { cursor: pointer; font-weight: 600; color: #7a1022; }
.tab3d-verso { font-size: .9rem; margin: .3rem 0; }
.tab3d-verso sup { color: #c00; font-weight: 700; }
.tab3d-capas { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid #dee2e6; }
.tab3d-lista-capas { margin-top: .5rem; }
.tab3d-lista-capas .form-check { display: block; margin-bottom: .15rem; }
.tab3d-notas { max-width: 48rem; margin-bottom: 2rem; }
tr:target > td { scroll-margin-top: 30vh; }
@media (max-width: 991.98px) {
  .tab3d { grid-template-columns: minmax(0, 1fr); }
  .tab3d-escena { height: 62vh; }
  .tab3d-panel { height: auto; min-height: 0; }
}
