/* ---
   V7 - VERSIÓN DEFINITIVA (FUSIONADA POR GEMINI)
   Contiene todas las secciones previas + CORRECCIÓN FLIP CARDS (Universo)
--- */
body.hologram-active {
    overflow: hidden !important; 
}
/* --- 1. ESTILOS GLOBALES --- */
:root {
    --color-primario: #00aaff; /* Un azul neón */
    --color-acento: #FFD700;   /* ORO ANUNNAKI */
    --color-acento-oscuro: #DAA520;
    --color-fondo: #0a0e1a;    /* Azul oscuro casi negro */
    --color-texto: #e0e0e0;   /* Texto gris claro */
    --color-titulos: #ffffff; /* Títulos blancos */
    --color-tarjeta: #121a2a; /* Fondo para tarjetas y secciones */
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--color-titulos);
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.8rem; color: var(--color-acento); margin-top: 30px;}

img { max-width: 100%; height: auto; }

a { color: var(--color-primario); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--color-acento); }

/* --- Navbar --- */
.navbar {
    background-color: var(--color-tarjeta);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-acento);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.navbar-brand { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--color-acento); }
.navbar-nav a { color: var(--color-texto); font-weight: 700; margin-left: 20px; }
.navbar-nav a:hover, .navbar-nav a.active { color: var(--color-acento); }

/* --- Footer --- */
.footer {
    background-color: var(--color-tarjeta);
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid #222;
    font-size: 0.9rem;
}

/* --- Botones --- */
.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-acento-oscuro) 0%, #B8860B 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.4);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-acento) 0%, var(--color-acento-oscuro) 100%);
    box-shadow: 0 6px 20px rgba(218, 165, 32, 0.6);
    transform: translateY(-2px);
}
.btn-secondary {
    background: transparent;
    color: var(--color-acento-oscuro);
    border: 2px solid var(--color-acento-oscuro);
}
.btn-secondary:hover {
    background: rgba(218, 165, 32, 0.1);
    border-color: var(--color-acento);
    color: var(--color-acento);
    transform: translateY(-2px);
}
.btn-discord {
    background-color: #5865F2; color: #ffffff; font-weight: 700;
    padding: 15px 30px; border-radius: 5px; transition: transform 0.3s ease; border: none;
}
.btn-discord:hover { transform: scale(1.05); }


/* --- 2. ESTILOS DEL HERO (INDEX.HTML) --- */
.hero#hero-v1 {
    font-family: 'Georgia', serif; 
    position: relative;
    min-height: 90vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    overflow: hidden;
}
.particles { position: absolute; width: 100%; height: 100%; overflow: hidden; z-index: 1; }
.particle {
    position: absolute;
    background: rgba(218, 165, 32, 0.3);
    border-radius: 50%;
    animation: float 20s infinite;
}
.glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(218, 165, 32, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
    z-index: 2;
}
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.book-cover { display: flex; justify-content: center; align-items: center; animation: fadeInLeft 1s ease-out; }
.book-wrapper { position: relative; width: 100%; max-width: 400px; aspect-ratio: 2/3; perspective: 1000px; }
.book-image {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(218, 165, 32, 0.3);
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease;
    border: 2px solid rgba(218, 165, 32, 0.3);
}
.book-image:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 60px rgba(218, 165, 32, 0.5);
}
.placeholder-text { color: rgba(218, 165, 32, 0.5); font-size: 1.5rem; text-align: center; padding: 2rem; font-style: italic; }
.book-info { color: #fff; animation: fadeInRight 1s ease-out; }
.saga-label {
    font-size: 0.9rem; color: var(--color-acento-oscuro); text-transform: uppercase;
    letter-spacing: 3px; margin-bottom: 1rem; display: inline-block;
    border-bottom: 2px solid var(--color-acento-oscuro); padding-bottom: 0.5rem;
    animation: fadeIn 1.5s ease-out;
}
.book-title {
    font-family: 'Georgia', serif; font-size: 3rem; font-weight: bold; margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-acento) 0%, var(--color-acento-oscuro) 50%, #B8860B 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    line-height: 1.2; animation: fadeIn 2s ease-out;
}
.book-subtitle { font-family: 'Georgia', serif; font-size: 2rem; color: #C0C0C0; margin-bottom: 1.5rem; font-weight: normal; animation: fadeIn 2.5s ease-out; }
.status-badge {
    display: inline-block; background: rgba(218, 165, 32, 0.2);
    color: var(--color-acento-oscuro); padding: 0.5rem 1.5rem; border-radius: 25px;
    font-size: 0.9rem; text-transform: uppercase; letter-spacing: 2px;
    margin-bottom: 2rem; border: 1px solid var(--color-acento-oscuro);
    animation: pulse 2s ease-in-out infinite;
}
.book-description {
    font-size: 1.1rem; line-height: 1.8; color: #d0d0d0;
    margin-bottom: 2rem; text-align: justify; animation: fadeIn 3s ease-out;
}
.book-description::first-letter {
    font-size: 2.5rem; color: var(--color-acento-oscuro); font-weight: bold;
    float: left; line-height: 1; margin-right: 0.5rem;
}
.cta-buttons { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeIn 3.5s ease-out; }


/* --- 3. ESTILOS DE UNIVERSO (ACTUALIZADO Y CORREGIDO) --- */
#universo-page {
    font-family: 'Georgia', serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    padding: 4rem 2rem;
}
.section-header { text-align: center; margin-bottom: 3rem; animation: fadeInDown 1s ease-out; }
.section-title {
    font-family: 'Georgia', serif; font-size: 3rem;
    background: linear-gradient(135deg, var(--color-acento) 0%, var(--color-acento-oscuro) 50%, #B8860B 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 1rem;
}
.section-subtitle { font-size: 1.2rem; color: #C0C0C0; font-style: italic; }
.tab-navigation { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; animation: fadeIn 1.5s ease-out; }
.tab-btn {
    padding: 1rem 2.5rem; background: transparent; color: var(--color-acento-oscuro);
    border: 2px solid var(--color-acento-oscuro); border-radius: 4px; font-size: 1rem;
    text-transform: uppercase; letter-spacing: 2px; cursor: pointer;
    transition: all 0.3s ease; font-family: 'Georgia', serif; font-weight: bold;
}
.tab-btn:hover {
    background: rgba(218, 165, 32, 0.1);
    border-color: var(--color-acento); color: var(--color-acento);
    transform: translateY(-2px);
}
.tab-btn.active {
    background: linear-gradient(135deg, var(--color-acento-oscuro) 0%, #B8860B 100%);
    color: #000; border-color: var(--color-acento-oscuro);
}
.cards-container {
    max-width: 1400px; margin: 0 auto; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem; padding: 2rem 0;
}
.tab-content { display: none; }
.tab-content.active { display: grid; animation: fadeIn 0.5s ease-out; }

/* --- ESTILOS FLIP CARDS DEFINITIVOS (CORREGIDOS) --- */
.flip-card {
    perspective: 1000px;
    height: 480px; /* Altura ajustada para que quepa el contenido trasero */
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(218, 165, 32, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Frente de la carta */
.flip-card-front {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    position: relative;
}
.card-front-image {
    background-size: cover;
    background-position: center;
}
.card-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    padding: 2rem 1.5rem; z-index: 2;
}
.card-name { font-family: 'Georgia', serif; font-size: 1.8rem; color: var(--color-acento); margin-bottom: 0.5rem; font-weight: bold; }
.card-role { font-family: 'Roboto', sans-serif; font-size: 1rem; color: #C0C0C0; text-transform: uppercase; letter-spacing: 1px; }
.hover-hint {
    position: absolute; bottom: 1rem; right: 1rem;
    background: rgba(218, 165, 32, 0.3); color: var(--color-acento-oscuro);
    padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.8rem;
    border: 1px solid var(--color-acento-oscuro); z-index: 3;
    animation: pulse 2s ease-in-out infinite;
}

/* Reverso de la carta (Detalles) */
.flip-card-back {
    transform: rotateY(180deg);
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px;
    text-align: left;
}

.card-back-image {
    /* La imagen viene del HTML inline style */
}

.card-back-title {
    color: var(--color-acento);
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--color-primario);
    display: inline-block;
    text-shadow: 2px 2px 4px #000;
}

/* Mini Tabla de Estadísticas */
.mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.8rem;
    background: rgba(0,0,0,0.6);
    padding: 10px;
    border-radius: 5px;
    border-left: 3px solid var(--color-acento);
}
.mini-stats strong {
    color: var(--color-primario);
    text-transform: uppercase;
}
.mini-stats span {
    color: #fff;
}

.card-description {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #eee;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px #000;
}

.card-quote {
    margin-top: auto;
    font-style: italic;
    color: var(--color-acento);
    font-size: 0.9rem;
    text-align: center;
    border-top: 1px dashed rgba(255,255,255,0.2);
    padding-top: 10px;
}


/* --- 4. ESTILOS DE PÁGINAS (SAGA, AUTOR) --- */
.page-section { padding: 80px 0; }
.page-section.bg-dark { background-color: var(--color-tarjeta); }
.autor-content { display: flex; gap: 40px; align-items: flex-start; }
.autor-bio { flex: 2; }
.autor-foto {
    flex: 1; max-width: 350px; background: #333;
    height: 400px; border: 4px solid var(--color-acento); border-radius: 5px;
    text-align: center; padding-top: 180px; color: #777; font-style: italic;
    background-size: cover;
    background-position: center;
}
.libro-item {
    display: flex; gap: 40px; background: var(--color-tarjeta);
    padding: 30px; border-radius: 5px; margin-bottom: 40px;
    border: 1px solid #222;
}
.libro-portada { flex: 0 0 250px; }
.libro-portada img { width: 100%; border-radius: 5px; }
.libro-info { flex: 1; }
.libro-info h3 { margin-top: 0; }
.libro-status {
    display: inline-block; background: var(--color-acento); color: var(--color-fondo);
    padding: 5px 10px; font-size: 0.9rem; font-weight: 700;
    border-radius: 5px; margin-left: 10px;
}
.libro-links { margin-top: 25px; }
.btn-amazon { background-color: #FF9900; color: #111; border-color: #FF9900; }
.btn-amazon:hover { background: transparent; color: #FF9900; }

/* --- 5. ESTILOS CTA LIBRO 1 (INDEX.HTML) --- */
.index-cta-book1 {
    background: var(--color-fondo);
    border-top: 1px solid var(--color-acento);
    border-bottom: 1px solid var(--color-acento);
}
.index-cta-book1 .libro-item {
    background: transparent; border: none; align-items: center;
}
.index-cta-book1 .libro-portada { flex: 0 0 300px; }
.index-cta-book1 .libro-info p { font-size: 1.1rem; }

/* --- 6. GALERÍA, BLOG Y TESTIMONIOS --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; }
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 5px;
    border: 2px solid var(--color-acento-oscuro); transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item img:hover { transform: scale(1.05); box-shadow: 0 0 20px var(--color-acento-oscuro); }

/* Blog Styles */
#blog-page { font-family: 'Georgia', serif; padding: 4rem 2rem; }
.filter-tabs { display: flex; justify-content: center; gap: 1rem; margin-bottom: 3rem; flex-wrap: wrap; animation: fadeIn 1.5s ease-out; }
.filter-btn {
    padding: 0.8rem 1.5rem; background: transparent; color: var(--color-acento-oscuro);
    border: 2px solid var(--color-acento-oscuro); border-radius: 25px; font-size: 0.9rem;
    text-transform: uppercase; cursor: pointer; transition: all 0.3s ease;
}
.filter-btn:hover { background: rgba(218, 165, 32, 0.1); border-color: var(--color-acento); color: var(--color-acento); }
.filter-btn.active { background: linear-gradient(135deg, var(--color-acento-oscuro) 0%, #B8860B 100%); color: #000; border-color: var(--color-acento-oscuro); }

.featured-post {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    border-radius: 12px; overflow: hidden; margin-bottom: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(218, 165, 32, 0.3);
    border: 2px solid rgba(218, 165, 32, 0.3);
}
.featured-grid { display: grid; grid-template-columns: 1fr 1fr; }
.featured-image {
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    min-height: 400px; display: flex; align-items: center; justify-content: center;
    font-size: 5rem; color: rgba(218, 165, 32, 0.3); position: relative; overflow: hidden;
}
.featured-content { padding: 3rem; display: flex; flex-direction: column; justify-content: center; }
.post-category { color: var(--color-acento-oscuro); font-size: 0.9rem; text-transform: uppercase; margin-bottom: 1rem; }
.post-title { font-family: 'Georgia', serif; font-size: 2.5rem; color: var(--color-acento); margin-bottom: 1rem; }
.post-meta { display: flex; gap: 2rem; margin-bottom: 1.5rem; color: #888; font-size: 0.9rem; }
.post-excerpt { font-size: 1.1rem; line-height: 1.8; color: #d0d0d0; margin-bottom: 2rem; }
.read-more {
    display: inline-block; padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-acento-oscuro) 0%, #B8860B 100%);
    color: #000; border-radius: 4px; text-transform: uppercase; font-weight: bold;
}

/* --- NUEVOS ESTILOS: EFECTO HOLOGRAMA LATERAL --- */

.hologram-panel {
    position: fixed;
    width: 400px; /* Ancho fijo para que no haya salto de layout */
    max-width: 90vw;
    height: auto;
    max-height: 80vh;
    padding: 30px;
    background: rgba(0, 51, 102, 0.95); /* Azul oscuro transparente */
    border: 1px solid var(--color-primario);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.7); /* Resplandor azul */
    z-index: 1100;
    backdrop-filter: blur(5px); /* Borroso para fondo */
    overflow-y: auto;
    opacity: 0;
    pointer-events: none; /* Ignora clics cuando está inactivo */
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
}

.hologram-panel.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.hologram-close-btn {
    position: absolute;
    top: 10px; right: 15px;
    background: none;
    border: none;
    color: var(--color-acento);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.hologram-close-btn:hover {
    color: #fff;
}

.hologram-content {
    /* Asegura que el contenido se muestre bien */
    color: #ccf; 
    padding-top: 10px;
}

.hologram-content h3 {
    color: var(--color-primario); /* Títulos en azul brillante */
    border-bottom: 1px solid rgba(0, 170, 255, 0.3);
    padding-bottom: 5px;
}

/* Efecto de líneas de escaneo (Para hacerlo más holográfico) */
.hologram-scanline {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: rgba(0, 170, 255, 0.5);
    animation: scanline 4s infinite linear;
    pointer-events: none;
}
@keyframes scanline {
    0% { top: 0; opacity: 0.5; }
    50% { top: 100%; opacity: 0.7; }
    100% { top: 0; opacity: 0.5; }
}

/* Opcional: Asegurarnos de que el cuerpo no se mueva */
body.hologram-open {
    overflow: hidden;
}

/* --- Animaciones --- */
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 0.8; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes float { 0% { transform: translateY(0); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0); } }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .featured-grid { grid-template-columns: 1fr; }
    .featured-image { min-height: 300px; }
}
@media (max-width: 968px) {
    .hero-content { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
    .book-title { font-size: 2.5rem; }
    .cards-container { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
    .flip-card { height: 400px; }
    .libro-item { flex-direction: column; }
}
@media (max-width: 640px) {
    .navbar .container { flex-direction: column; gap: 10px; }
    .book-title { font-size: 2rem; }
    .cards-container { grid-template-columns: 1fr; }
}