
CSS

/* ==========================================
   1. ESTILOS GENERALES Y FONDO DE LA PÁGINA
   ========================================== */
html {
    background-color: #0b0512; /* Evita destellos blancos al cargar */
}

body {
    background-color: #0b0512;
    background-image: url('../imagenes/fondo-hermandad.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #e0e0e0;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* ==========================================
   2. ENCABEZADO Y MENÚ DE NAVEGACIÓN
   ========================================== */
header {
    background: #0f071a;                  /* Color morado oscuro sólido (sin transparencia) */
    border-bottom: 2px solid #d4af37;     /* Borde dorado elegante */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 47px; 
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8); /* Sombra para despegarlo de la página */
}

header .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;         
    gap: 20px;                  /* Espacio entre enlaces */
}

nav a {
    color: #ffffff;             /* Letras blancas puras para mayor visibilidad */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;         
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9); 
    transition: color 0.3s;
}

nav a:hover {
    color: #ffd700;             /* Dorado brillante al pasar el mouse */
}

/* ==========================================
   3. BANNER PRINCIPAL (INDEX) - ANCHO COMPLETO
   ========================================== */
.banner-container {
    width: 100%;
    background: #0b0512;
    overflow: hidden; /* Evita cualquier desborde extraño */
    border-bottom: 2px solid #4a154b;
}

.img-banner {
    width: 100%;       /* OBLIGA a que la imagen ocupe el 100% del ancho de la pantalla */
    height: auto;      /* Mantiene la proporción natural */
    display: block;
}

/* ==========================================
   4. SECCIÓN PRINCIPAL (HERO Y CAJAS)
   ========================================== */
.hero {
    text-align: center;
    padding: 40px 20px;
}

.hero h1 {
    color: #d4af37;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.hero h2 {
    color: #b084cc;
    font-size: 1.3rem;
    margin-top: 0;
    font-weight: normal;
}

.historia-box, .convocatoria-box {
    background: rgba(15, 6, 26, 0.85);
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 25px;
    margin: 25px auto;
    max-width: 900px;
    text-align: left;
}

.historia-box h3, .convocatoria-box h3 {
    color: #d4af37;
    margin-top: 0;
}

.juramento {
    font-style: italic;
    color: #d4af37;
    font-size: 1.1rem;
    border-left: 3px solid #d4af37;
    padding-left: 15px;
    margin: 15px 0;
}

.btn-cta {
    display: inline-block;
    background: #4a154b;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    border: 1px solid #d4af37;
    transition: background 0.3s, transform 0.2s;
    text-align: center;
}

.btn-cta:hover {
    background: #6a1f6c;
    transform: scale(1.03);
}

/* ==========================================
   5. CONSEJO DE MAGOS
   ========================================== */
#consejo, #novedades {
    padding: 40px 20px;
}

#consejo h2, #novedades h2 {
    text-align: center;
    color: #d4af37;
    font-size: 2rem;
}

.grid-consejo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 25px;
    padding: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.miembro-card {
    background: rgba(21, 9, 36, 0.85);
    border: 1px solid #4a154b;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s;
}

.miembro-card:hover {
    transform: translateY(-5px);
    border-color: #d4af37;
}

.miembro-card img {
    width: 100%;
    height: auto; 
    object-fit: contain; 
    border-radius: 6px;
    border: 2px solid #4a154b;
    margin-bottom: 15px;
}

.miembro-card h3 {
    color: #d4af37;
    margin: 10px 0 5px 0;
    font-size: 1.3rem;
}

.miembro-card .cargo {
    color: #b084cc;
    font-weight: bold;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.miembro-card p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #ccc;
    margin: 0;
}

/* ==========================================
   6. EDICTOS SAGRADOS Y ADVERTENCIAS
   ========================================== */
.edictos-box {
    background: rgba(10, 3, 18, 0.92);
    border: 2px solid #5c2c77;
    border-radius: 10px;
    padding: 30px;
    margin: 40px auto;
    max-width: 950px;
    box-shadow: 0 0 20px rgba(74, 21, 75, 0.6);
}

.edictos-box h2 {
    color: #d4af37;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 1px solid #d4af37;
    padding-bottom: 10px;
    margin-top: 0;
}

.intro-edictos {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.edicto-item {
    background: rgba(25, 12, 40, 0.6);
    border-left: 4px solid #8a2be2;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
}

.edicto-item h3 {
    color: #e0aaff;
    margin-top: 0;
}

.edicto-item small {
    color: #aaa;
    font-size: 0.85rem;
}

.regla-destacada {
    background: rgba(40, 15, 60, 0.7);
    border: 1px dashed #d4af37;
    padding: 12px;
    margin-top: 10px;
    border-radius: 6px;
}

.edicto-fuego {
    border-left-color: #ff4500;
}

.alerta-traicion {
    color: #ff6b6b;
    font-weight: bold;
}

.advertencia-expulsion {
    background: rgba(139, 0, 0, 0.3);
    border: 2px solid #ff3333;
    color: #ffcccc;
    text-align: center;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 8px;
    margin: 30px 0;
}

.guardiana-box {
    background: radial-gradient(circle, rgba(45, 10, 60, 0.9) 0%, rgba(10, 2, 15, 0.95) 100%);
    border: 2px solid #8a2be2;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
}

.guardiana-box h3 {
    color: #da70d6;
    margin-top: 0;
}

.juicio-bruja {
    color: #e6e6fa;
    font-style: italic;
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #ba55d3;
    margin-top: 15px;
}

/* ==========================================
   7. CRÓNICAS ARCANAS (DESPLEGABLES)
   ========================================== */
.cronicas-container {
    background: rgba(12, 5, 20, 0.9);
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 25px;
    margin: 30px auto;
    max-width: 900px;
    text-align: left;
    box-shadow: 0 0 15px rgba(92, 44, 119, 0.5);
}

.cronicas-container h3 {
    color: #d4af37;
    margin-top: 0;
    text-align: center;
    font-size: 1.5rem;
    text-transform: uppercase;
}

.intro-cronicas {
    text-align: center;
    color: #b084cc;
    font-style: italic;
    margin-bottom: 25px;
}

.cronica-item {
    background: rgba(25, 12, 40, 0.7);
    border: 1px solid #4a154b;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.cronica-item:hover {
    border-color: #d4af37;
}

.cronica-item summary {
    padding: 15px;
    font-weight: bold;
    color: #e0aaff;
    cursor: pointer;
    background: rgba(40, 18, 60, 0.5);
    user-select: none;
    outline: none;
}

.cronica-item summary:hover {
    color: #d4af37;
}

.cronica-contenido {
    padding: 20px;
    border-top: 1px solid #4a154b;
    background: rgba(10, 3, 18, 0.6);
    line-height: 1.6;
    color: #ddd;
}

/* ==========================================
   8. PANEL FLOTANTE HISTORIAL DE AVENTURAS
   ========================================== */
.caja-torre-contenedor {
    position: relative;
}

.toggle-torneo-checkbox {
    display: none;
}

.btn-flotante-borde {
    position: absolute;
    right: -15px;
    top: 0px;
    background: #d4af37;
    color: #150924;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 20px 0 0 20px;
    cursor: pointer;
    box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-flotante-borde:hover {
    background: #ffdf73;
    right: -12px;
}

.panel-posiciones-flotante {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(18, 7, 30, 0.98);
    border: 1px solid #d4af37;
    border-radius: 6px;
    padding: 35px 15px 15px 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 15;
}

.panel-posiciones-flotante h4 {
    color: #d4af37;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #4a154b;
    padding-bottom: 8px;
    padding-right: 35px;
    text-align: left;
    font-size: 0.95rem;
}

.lista-posiciones {
    overflow-y: auto;
    max-height: 180px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    padding-right: 5px;
}

.item-posicion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(45, 18, 74, 0.6);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.item-posicion .fecha {
    color: #ccc;
}

.item-posicion .puesto.oro { color: #ffd700; font-weight: bold; }
.item-posicion .puesto.plata { color: #e0e0e0; font-weight: bold; }
.item-posicion .puesto.bronze { color: #cd7f32; font-weight: bold; }

.toggle-torneo-checkbox:checked ~ .panel-posiciones-flotante {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toggle-torneo-checkbox:checked ~ .btn-flotante-borde {
    background: #4a154b;
    color: #d4af37;
    border: 1px solid #d4af37;
    right: 12px;
    top: 12px;
    border-radius: 4px;
    z-index: 20;
    padding: 4px 10px;
}

.toggle-torneo-checkbox:checked ~ .btn-flotante-borde::after {
    content: " ✕";
}

/* ==========================================
   9. TABLA DE MIEMBROS Y BUSCADOR
   ========================================== */
.miembros-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
    background: rgba(13, 7, 20, 0.25); 
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 8px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.titulo-miembros {
    text-align: center;
    color: #d4af37;
    font-size: 2rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.subtitulo-miembros {
    text-align: center;
    margin-bottom: 30px;
    color: #aaa;
    font-style: italic;
}

.tabla-miembros {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.tabla-miembros th, .tabla-miembros td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #4a154b;
}

.tabla-miembros th {
    background-color: rgba(42, 8, 51, 0.4);
    color: #d4af37;
    font-size: 1.05rem;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px #000;
}

.tabla-miembros tr:hover {
    background-color: rgba(74, 21, 75, 0.35);
}

.rango-archimago { color: #ff4500; font-weight: bold; }
.rango-maga { color: #ba55d3; font-weight: bold; }
.rango-embajador { color: #1e90ff; font-weight: bold; }
.rango-hermano { color: #d4af37; font-weight: bold; }

.btn-volver {
    display: inline-block;
    margin-bottom: 20px;
    padding: 10px 20px;
    background-color: #4a154b;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid #d4af37;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-volver:hover {
    background-color: #d4af37;
    color: #0d0714;
}

.num-col {
    color: #888;
    font-size: 0.85rem;
    width: 30px;
}

/* ==========================================
   10. PIE DE PÁGINA
   ========================================== */
footer {
    background: rgba(11, 5, 18, 0.95);
    border-top: 2px solid #4a154b;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

footer h3 {
    color: #d4af37;
    margin-top: 0;
}

/* ==========================================
   11. ESTILOS PARA ENLACES Y BOTONES DE CORREO
   ========================================== */
footer a {
    color: #d4af37;
    text-decoration: underline;
    transition: color 0.3s;
}

footer a:hover {
    color: #ffd700;
}

.tabla-miembros td a {
    color: #ffd700;
    font-weight: bold;
    transition: color 0.3s;
}

.tabla-miembros td a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ==========================================
   12. MENÚ DESPLEGABLE: PERGAMINO DE LA LEY DE ORO
   ========================================== */
.menu-pergamino-container {
    position: relative;
    display: inline-block;
}

.btn-pergamino-nav {
    color: #ffd700 !important;
    border: 1px dashed #d4af37;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(212, 175, 55, 0.1);
    cursor: pointer;
    font-weight: bold;
}

.pergamino-flotante {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: radial-gradient(circle, rgba(45, 10, 60, 0.95) 0%, rgba(15, 5, 25, 0.98) 100%);
    border: 2px solid #d4af37;
    border-radius: 8px;
    padding: 15px;
    width: 280px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.9);
    z-index: 2000;
    text-align: left;
    margin-top: 8px;
}

/* Al pasar el mouse por encima del contenedor, se despliega el pergamino */
.menu-pergamino-container:hover .pergamino-flotante {
    display: block;
}

.pergamino-flotante h4 {
    color: #ffd700;
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 0.95rem;
    text-transform: uppercase;
    border-bottom: 1px solid #4a154b;
    padding-bottom: 5px;
    text-align: center;
}

.pergamino-flotante p {
    color: #e0e0e0;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 5px 0;
}

