:root {
  --font-1: 'Quicksand', sans-serif;
  --font-2: 'Cinzel', serif;
  --font-3: 'Roboto', sans-serif;
}
/* 🔮 RESET Y VARIABLES */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:before,
:after {
  content: '';
  position: absolute;
}

/* 🌌 FONDO PRINCIPAL */
body {
  background-image: url(https://i.ibb.co/N2Pr0KZN/Background-Black-GFX.gif);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-attachment: fixed;
}

/* 🔗 ENLACES Y TEXTO */
a {
  display: inline-block;
  text-decoration: none;
  text-transform: uppercase;
  text-align: center;
  color: #e7e7e7;
}

span {
  display: inline-block;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: lighter;
}

/* 🧱 CONTENEDORES PRINCIPALES */
#jd-main {
  width: 100%;
  height: 100vh;
  position: relative;
  font-size: 1em;
  font-family: var(--font-1);
  color: #fff;
  overflow: hidden;
}

.jd-app {
  width: 945px;
  height: 650px;
  position: relative;
  margin: 0 auto;
}

.jd-section-home,
.jd-modal {
  width: 100%;
  height: 525px;
}

.jd-section-home {
  text-align: center;
  margin-bottom: 40px;
}

.jd-title {
  line-height: 125px;
  font-family: var(--font-3);
  font-weight: lighter;
  font-size: 5em;
  color: #fff;
  margin-bottom: 20px;
}

/* 🧊 BLOQUES VISUALES */
.jd-block-g {
  width: 100%;
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.jd-box-g {
  background: #efdd8e;
  border: solid 10px #fff;
  box-shadow: 0 0 20px 4px rgba(0, 0, 0, .4);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.jd-box-g:nth-child(1),
.jd-box-g:nth-child(5) {
  width: 170px;
  height: 300px;
}

.jd-box-g:nth-child(2),
.jd-box-g:nth-child(4) {
  width: 185px;
  height: 340px;
}

.jd-box-g:nth-child(3) {
  width: 280px;
  height: 380px;
}

.jd-box-g:after {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: #a38838;
  opacity: 0;
}

.jd-box-g:hover:after {
  animation: pulse .2s ease-out forwards;
}

@keyframes pulse {
  0% { opacity: .8; }
  100% { opacity: 0; }
}

.jd-box-g img {
  width: auto;
  height: 100%;
  filter: grayscale(1);
  transition: all .3s ease-out;
}

.jd-box-g:hover img {
  filter: grayscale(0);
}

.jd-box-g:nth-child(3) img {
  width: 100%;
}

/* 🧭 NAVEGACIÓN */
.jd-nav {
  width: 945px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.jd-btn-nav {
  background-image: url(https://i.ibb.co/prGZ9VCX/BG-Gold.png);
  box-shadow: 0 -1px #fff inset;
  transition: all .3s ease-out;
}

.jd-btn-nav:nth-child(1),
.jd-btn-nav:nth-child(5) {
  width: 169px;
  height: 50px;
  line-height: 50px;
}

.jd-btn-nav:nth-child(2),
.jd-btn-nav:nth-child(4) {
  width: 185px;
  height: 70px;
  line-height: 70px;
}

.jd-btn-nav:nth-child(3) {
  width: 240px;
  height: 80px;
  line-height: 80px;
}

.jd-btn-nav:hover {
  color: #fff;
  box-shadow: 0 -8px #fff inset;
}

/* 🪞 MODALES */
.jd-modal {
  background-image: url(https://i.ibb.co/prGZ9VCX/BG-Gold.png);
  position: absolute;
  top: 0;
  left: 0;
  height: 540px;
  overflow: hidden;
  transform: translate(0, -100%);
  transition: all .5s ease-out;
}

[class*='page-modal'] {
  width: 100%;
  height: 540px;
  background-image: url(https://i.ibb.co/prGZ9VCX/BG-Gold.png);
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  opacity: 0;
  padding: 15px;
}

#jd-content-1:target .jd-modal,
#jd-content-2:target .jd-modal,
#jd-content-3:target .jd-modal,
#jd-content-4:target .jd-modal {
  transform: translate(0, 0);
}

#jd-content-1:target .page-modal-about,
#jd-content-2:target .page-modal-video,
#jd-content-3:target .page-modal-video {
  opacity: 1;
  visibility: visible;
}
/* =========================== PARTE 2 BOOK =========================== */
#jd-content-4:target .page-modal-love{
	opacity:1;
	visibility:visible
}
.jd-title-page{
	width:100%;
	height:20px; /* Altura ************************ */
	margin-bottom:35px
}

.jd-block{
	width:100%;
	height:430px;
	overflow-y:auto
}
.page-modal-about .jd-block{
	display:flex
}

.jd-book {
  position: relative;
  height: 430px; /* Tamaño Contenedor******************* */
  overflow: hidden;
  perspective: 1200px;
}
/*   Fuente tipo libro, elegante y legible   */
.jd-libro {
  font-family: 'Georgia', 'Merriweather', serif;
  font-size: 1.1em;              /* Tamaño mediano, ideal para lectura */
  font-weight: 600;              /* Semi-bold para buena percepción visual */
  line-height: 1.7;              /* Espaciado cómodo entre líneas */
  text-align: left;              /* Justificación a la izquierda */
  color: #f5f5f5;                /* Ajusta según fondo, puedes usar #efdd8e si deseas dorado */
  margin: 10px auto;
  max-width: 700px;              /* Controla el ancho para lectura óptima */
}

.jd-page-controls {
  position: relative;
  z-index: 10;
  text-align: center;
  margin-top: 10px;
}

/* Integracion Page & Buttons */
.jd-page-controls button {
  padding: 10px 20px;
  margin: 0 10px;
  font-size: 1rem;
  background-color: #a38838;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.jd-page-controls button:hover {
  background-color: #8B2323;
}
/* Botones RWD & FWD */
.jd-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: rotateY(-180deg);
  transition: transform 0.8s ease, opacity 0.8s ease;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.jd-page.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: rotateY(0deg);
  z-index: 1;
}

/* Contenido en Páginas */
.hidden {
  display: none;
}

.inactive {
  opacity: 0;
  pointer-events: none;
}

/* Efecto de cambio de página tipo libro */
.flip {
  transform-origin: left center;
  transition: transform 0.8s ease, opacity 0.8s ease;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* Scrolls */
.jd-block::-webkit-scrollbar {
  width: 8px;
}

.jd-block::-webkit-scrollbar-track {
  background: transparent;
}

.jd-block::-webkit-scrollbar-thumb {
  background-color: #a38838;
  border-radius: 4px;
  border: 2px solid #efdd8e;
}

.jd-block::-webkit-scrollbar-thumb:hover {
  background-color: #8B2323;
}

/* Borde Dorado */
.jd-page:not(.jd-cover) {
  border: 4px solid #efdd8e; /* Dorado suave */
  box-shadow: 0 0 12px #efdd8e;
  border-radius: 12px;
  padding: 10px;
}
/* ========================= FIN Integracion Page & Buttons ========================= */
.jd-img-about{
	width:320px;
	height:415px;
	border:solid 5px #a38838;
	background:#aaa;
	margin-right:10px
}
.img-book {
  width: 100%;
  max-width: 250px;
  height: 100%;
  max-height: 180px; /* Corte de altura */
  object-fit: cover;
  object-position: center;
  display: block;
  margin: 10px auto;
  background: #aaa;
  border: 4px solid var(--color-dorado-oscuro);
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.img-book:hover {
  transform: scale(1.05);
}

.jd-infor{
	flex-grow:1
}
/* NICK & ID */
.jd-infor span{
	letter-spacing:10.1px
}
/* WELCOME */
.jd-infor h4 {
  font-size: 2em;
  font-family: var(--font-3); /* Corrección de propiedad */
  text-align: center;         /* Centrado horizontal del texto */
  margin-bottom: 50px;
}

/* Portada */
.jd-title-index {
  font-size: 2.5em;
  font-family: 'Georgia', serif;
  color: #efdd8e;
  text-align: center;
  margin-bottom: 20px;
}

.jd-subtitle-index {
  display: block;
  font-size: 1.2em;
  color: #f5f5f5;
  text-align: center;
  margin-bottom: 10px;
}

.jd-welcome {
  font-size: 1.6em;
  color: #efdd8e;
  text-align: center;
  margin-bottom: 30px;
}

.jd-img-portada {
  width: 320px;
  height: 415px;
  border: solid 5px #a38838;
  background: #aaa;
  margin: 0 auto 20px;
  display: block;
}

.jd-flag {
  width: 24px;
  height: 16px;
  vertical-align: middle;
  margin-left: 8px;
}

/* Indice */
.jd-title-indice {
  font-size: 2em;
  font-family: 'Georgia', serif;
  color: #efdd8e;
  text-align: center;
  margin-bottom: 20px;
}

.jd-lista-indice {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 600px;
  text-align: left;
}

.jd-lista-indice li {
  font-size: 1.2em;
  color: #f5f5f5;
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
}

.jd-lista-indice li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: #efdd8e;
}

/* Capitulos */
.jd-title-chapter {
  font-size: 4.2em;
  font-family: 'Georgia', serif;
  color: #efdd8e;
  text-align: center;
  margin-top: 100px;
}

.jd-chapter .jd-block,
.jd-chapter .jd-infor {
  display: flex;
  top:
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 100%;
  text-align: center;
}

/* Paginas */
.jd-title-page {
  font-size: 1.2em;
  font-family: 'Georgia', serif;
  color: #efdd8e;
  text-align: center;
  margin-bottom: 20px;
}

.jd-number {
  font-size: 1em;
  color: #efdd8e;
  text-align: right;
  margin-top: 20px;
}

.jd-firma {
  font-family: 'Georgia', cursive;
  font-size: 1.4em;
  color: #efdd8e;
  text-align: center;
  margin-top: 30px;
  letter-spacing: 2px;
}

.jd-flag-inline {
  width: 24px;
  height: 16px;
  vertical-align: middle;
  margin-left: 6px;
}

/* Galeria? */
.jd-col-f{
	width:240px;
	height:auto;
	display:flex;
	flex-direction:column
}
.jd-row{
	width:240px;
	height:70px;
	margin-bottom:15px;
	display:flex;
	align-items:center
}
.jd-row img{
	width:70px;
	height:70px;
	background:#dbc9a0;
	border:solid 4px #76bad7
}
.jd-row span{
	background:#a38838;
	width:110px;
	line-height:40px;
	padding-left:10px;
	color:#fff;
	font-size:.8em
}
.jd-row a{
	background:#efdd8e;
	width:60px;
	line-height:30px;
	font-size:.8em;
	transition:all .3s ease-out
}
.jd-row a:hover {
  color: #ffffff;
  background: #ffffff;
}
/*.jd-video{
	width:726px;
	height:410px;
	background:#222;
	box-shadow:0 10px #efdd8e;
	margin-left:calc(50% - 363px)
}*/

/* ================================ Repro Embebido ================================ */
.centered-repro {
  position: relative;
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;         /* ← elimina scroll horizontal externo */
}

.centered-repro iframe {
  width: 100%;
  max-height: 768px;          /* ← altura máxima controlada */
  min-height: 600px;          /* ← altura mínima para no recortar */
  border-radius: 12px;
  box-shadow: 0 0 30px #efdd8eec;
  overflow: hidden;           /* ← elimina scroll interno horizontal */
}


/* Textos */
.page-modal-love .jd-block{
	text-align:center;
	font-family: var(--font-3);
}
.page-modal-love h5{
	font-size:3em
}
.page-modal-love h6{
	font-family: var(--font-3);
	letter-spacing:4px;
	line-height:32px
}
.page-modal-love p{
	font-size:1.7em
}
/* FOOTER */
.jd-footer {
  width: 100%;
  color: #fff;
  text-align: center;
  padding: 15px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95em;
  z-index: 100;
}

.jd-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.jd-credit a img {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.jd-credit a img:hover {
  opacity: 0.8;
  transform: scale(1.2);
}

.jd-year {
  font-size: 0.85em;
}
    
/*  FAMILIA ========================================= PARTE 3  */
.jd-familia-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 10px;
  justify-items: center;
}

.jd-familia-card {
  background: rgba(239, 221, 142, 0.1);
  border: 2px solid #a38838;
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 180px;
  height: auto;
  max-height: 450px;
  overflow: hidden;
}

.jd-familia-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #efdd8e;
}
    
.jd-familia-card span {
  display: block;
  font-size: 1.2em;
  font-weight: bold;
  background: linear-gradient(90deg, #d4af37, #fff8dc, #d4af37);
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: oroBrillante 3s linear infinite;
  margin-bottom: 4px;
}

@keyframes oroBrillante {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.jd-familia-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 10px;
  box-shadow: 0 0 8px #a38838;
}
/* 🪄 Degradado dorado animado para el Nick */
.jd-familia-card span {
  display: block;
  font-size: 2.0em;
  font-weight: bold;
  background: linear-gradient(90deg, #d4af37, #fff8dc, #d4af37);
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: oroBrillante 3s linear infinite;
  font-family: 'Cinzel', serif;
  margin-bottom: 4px;
}

@keyframes oroBrillante {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* 🧬 Tipografía ceremonial para parentesco */
.jd-familia-card small {
  font-size: 0.9em;
  color: #efdd8e;
  font-style: italic;
  font-family: 'Cinzel', serif;
}

.jd-familia-card span {
  margin-bottom: 8px; /* antes 4px */
}

.jd-familia-card small {
  margin-bottom: 6px;
  display: block;
}

/* 🧾 Tipografía diferenciada para el resto */
.jd-familia-card p,
.jd-familia-card a {
  font-family: 'Quicksand', sans-serif;
  color: #a38838;
}
.jd-familia-card .afectivo {
  color: #fff;
  font-size: 0.8em; /* o prueba con 12px si prefieres precisión absoluta */
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.6); /* opcional, para aura */
  font-style: italic; /* si deseas reforzar el tono emocional */
}
/* 🎯 Centrado perfecto del contenido */
.jd-familia-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.jd-familia-card .bandera {
  width: 24px;
  height: auto;
  border-radius: 4px; /* opcional, para suavizar bordes */
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3); /* aura sutil */
  margin-top: 4px;
}
