/* ==========================================
   VARIABLES GENERALES (Tema Dark Glass)
=========================================== */
:root {
    --bg-color: #000000; /* Gris oscuro elegante */
    --nav-color: rgba(0, 0, 0, 0.05); /* Fondo de cristal transparente */
    --text-color: #ffffff; /* Texto blanco para resaltar */
    --primary-color: #ce1313; /* Tu Azul Rey intacto */
    
    /* Variables para el efecto cristal */
    --glass-border: rgba(255, 255, 255, 0);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.607);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Color de respaldo por si la imagen tarda en cargar */
    background-color: var(--bg-color); 
    
    /* Configuración de tu imagen de fondo */
    background-image: url('../img/fondo.jpg'); /* Asegúrate de que el nombre coincida con tu archivo */
    background-size: cover; /* Hace que la imagen cubra toda la pantalla */
    background-position: center; /* Centra la imagen */
    background-attachment: fixed; /* Hace que el fondo se quede quieto al hacer scroll */
    background-repeat: no-repeat; /* Evita que la imagen se repita como un mosaico */
    
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
}

/* ==========================================
   ESTILOS: ANIMATED NAVBAR (Cristal)
=========================================== */
.navigation {
    position: relative;
    width: 400px;
    height: 70px;
    /* Efecto Glassmorphism */
    background: var(--nav-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    /* Manteniendo tu alineación original */
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.navigation ul {
    display: flex;
    width: 350px;
    padding: 0; 
    margin: 0;
}

.navigation ul li {
    position: relative;
    list-style: none;
    width: 70px;
    height: 70px;
    z-index: 1;
}

.navigation ul li a {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    text-align: center;
    font-weight: 500;
    text-decoration: none; 
}

.navigation ul li a .icon {
    position: relative;
    display: block;
    line-height: 75px;
    font-size: 1.5em;
    text-align: center;
    transition: 0.5s;
    color: var(--text-color);
}

.navigation ul li.active a .icon {
    transform: translateY(-32px);
    color: #fff; /* Ícono blanco al saltar */
}

.navigation ul li a .text {
    position: absolute;
    color: var(--text-color);
    font-weight: 400;
    font-size: 0.75em;
    letter-spacing: 0.05em;
    transition: 0.5s;
    opacity: 0;
    transform: translateY(20px);
}

.navigation ul li.active a .text {
    opacity: 1;
    transform: translateY(10px);
}

.indicator {
    position: absolute;
    top: -50%;
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 6px solid var(--bg-color);
    transition: 0.5s;
}

.indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -22px;
    width: 20px;
    height: 20px;
    background: transparent;
    border-top-right-radius: 20px;
    box-shadow: 1px -10px 0 0 var(--bg-color);
}

.indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -22px;
    width: 20px;
    height: 20px;
    background: transparent;
    border-top-left-radius: 20px;
    box-shadow: -1px -10px 0 0 var(--bg-color);
}

.navigation ul li:nth-child(1).active ~ .indicator { transform: translateX(calc(70px * 0)); }
.navigation ul li:nth-child(2).active ~ .indicator { transform: translateX(calc(70px * 1)); }
.navigation ul li:nth-child(3).active ~ .indicator { transform: translateX(calc(70px * 2)); }
.navigation ul li:nth-child(4).active ~ .indicator { transform: translateX(calc(70px * 3)); }
.navigation ul li:nth-child(5).active ~ .indicator { transform: translateX(calc(70px * 4)); }

/* ==========================================
   ESTILOS: MAGIC SOCIAL SHARE MENU (Cristal)
=========================================== */
.magic-menu {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.magic-menu .toggle {
    position: relative;
    width: 60px;
    height: 60px;
    /* Efecto Glassmorphism */
    background: var(--nav-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    color: var(--text-color);
    /* Manteniendo estructura original */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 2rem;
    transition: 1.25s;
    z-index: 5;
}

.magic-menu:hover .toggle {
    transform: rotate(360deg);
    /* Ajuste de sombra para el tema oscuro */
    box-shadow: 0 0 0 2px var(--glass-border),
                0 0 0 8px rgba(255, 255, 255, 0.05);
}

.magic-menu li {
    position: absolute;
    left: 0;
    list-style: none;
    transition: 0.5s;
    transform-origin: 100px;
    transform: rotate(0deg) translateX(70px); 
    opacity: 0;
    visibility: hidden;
}

.magic-menu:hover li {
    transform: rotate(calc(360deg / 8 * var(--i)));
    opacity: 1;
    visibility: visible;
}

.magic-menu li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    /* Efecto Glassmorphism */
    background: var(--nav-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    color: var(--text-color);
    /* Manteniendo estructura original */
    border-radius: 50%;
    font-size: 1.5rem;
    text-decoration: none;
    transition: 0.5s;
    transform: rotate(calc(360deg / -8 * var(--i)));
}

.magic-menu li a:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.103); /* Se ilumina un poco más */
}

/* ==========================================
   ESTILOS: TARJETAS MINIMALISTAS (Cristal)
=========================================== */
.minimal-card {
    /* Efecto Glassmorphism */
    background: var(--nav-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    color: var(--text-color);
    /* Manteniendo estructura */
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.minimal-card:hover {
    transform: translateY(-8px); 
    box-shadow: 0 12px 40px rgba(0,0,0,0.4); 
    background: rgba(255, 255, 255, 0.08); /* Se aclara ligeramente al pasar el mouse */
}

/* Forzamos que el texto gris de Bootstrap se vea claro en fondo oscuro */
.minimal-card .text-muted {
    color: #b0b3b8 !important; 
}

.icon-box {
    width: 55px;
    height: 55px;
    background: rgba(65, 105, 225, 0.2); /* Azul rey transparente */
    color: var(--primary-color);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
}
/* ==========================================
   ESTILOS: FOOTER TRANSPARENTE
=========================================== */
.glass-footer {
    /* Fondo completamente transparente */
    background: transparent; 
    
    /* Le damos un ligerísimo desenfoque detrás para que el texto resalte sobre la imagen */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* Una línea superior súper delgada y casi invisible para separar elegantemente */
    border-top: 1px solid var(--glass-border); 
    
    /* Nos aseguramos de que el texto use el color blanco que definimos en las variables */
    color: var(--text-color);
}

/* Ajuste para que los textos pequeños del footer también se vean claros */
.glass-footer small {
    color: rgba(255, 255, 255, 0);
}