mirror of
https://github.com/Lil-Carpi/LDM-ASIR.git
synced 2025-12-06 00:03:48 +00:00
505 lines
10 KiB
CSS
505 lines
10 KiB
CSS
/* =========================================
|
|
1. RESET Y ESTILOS GENERALES
|
|
========================================= */
|
|
* {
|
|
padding: 0;
|
|
margin: 0; /* Añadido margin 0 para asegurar reset total */
|
|
box-sizing: border-box;
|
|
list-style: none;
|
|
text-decoration: none;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Manjari', sans-serif;
|
|
background: linear-gradient(135deg, #0f172a, #1e293b);
|
|
color: white;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* Contenedor principal para evitar que el contenido quede oculto por el navbar/footer fijos */
|
|
.content {
|
|
padding-top: 8rem; /* Espacio para el Navbar */
|
|
padding-bottom: 12rem; /* Espacio para el Footer */
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.section-title {
|
|
text-align: center;
|
|
font-size: 2rem;
|
|
margin-bottom: 3rem;
|
|
color: #00c3ff;
|
|
text-transform: uppercase;
|
|
letter-spacing: 2px;
|
|
text-shadow: 0 0 15px rgba(0, 195, 255, 0.6);
|
|
}
|
|
|
|
/* =========================================
|
|
2. NAVBAR (Menú de Navegación)
|
|
========================================= */
|
|
.navbar {
|
|
position: fixed;
|
|
top: 1rem;
|
|
left: 1rem;
|
|
right: 1rem;
|
|
width: calc(100% - 2rem); /* CORREGIDO: Espacios añadidos en el calc */
|
|
padding: 1rem 1.5rem;
|
|
border-radius: 20px;
|
|
z-index: 100; /* Z-index alto para estar siempre encima */
|
|
|
|
/* Glassmorphism */
|
|
background: rgba(255, 255, 255, 0.05);
|
|
backdrop-filter: blur(12px) saturate(180%);
|
|
-webkit-backdrop-filter: blur(12px) saturate(180%);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
|
|
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.logoContainer a {
|
|
color: white;
|
|
font-size: 1.125rem;
|
|
font-weight: bold;
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.logoContainer a { font-size: 1.25rem; }
|
|
|
|
.navbarLinks {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
align-items: center;
|
|
margin-right: 1rem;
|
|
}
|
|
|
|
.navbarLinks li {
|
|
margin-left: 1.5rem; /* Separación entre items */
|
|
}
|
|
}
|
|
|
|
.navbarLinks a {
|
|
color: white;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.navbarLinks a:hover {
|
|
color: #00c3ff;
|
|
}
|
|
|
|
/* =========================================
|
|
3. MENÚ MÓVIL (Checkbox Hack)
|
|
========================================= */
|
|
#menu-toggle { display: none; }
|
|
|
|
.hamburger-label {
|
|
display: none; /* Oculto en PC */
|
|
font-size: 1.5rem;
|
|
color: white;
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.hamburger-label { display: block; }
|
|
|
|
.navbarLinks {
|
|
position: absolute;
|
|
top: 80px;
|
|
left: 0;
|
|
right: 0;
|
|
display: none; /* Oculto por defecto */
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 1.5rem;
|
|
padding: 2rem;
|
|
|
|
background: rgba(15, 23, 42, 0.95);
|
|
backdrop-filter: blur(20px);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
border-radius: 20px;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
|
|
}
|
|
|
|
/* Mostrar menú al marcar checkbox */
|
|
#menu-toggle:checked ~ .navbarLinks {
|
|
display: flex;
|
|
animation: fadeIn 0.4s ease forwards;
|
|
}
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; transform: translateY(-10px); }
|
|
to { opacity: 1; transform: translateY(0); }
|
|
}
|
|
|
|
/* =========================================
|
|
4. NUEVA SECCIÓN TOP VENTAS (Ranking)
|
|
========================================= */
|
|
|
|
.section-title .highlight-neon {
|
|
color: #fff;
|
|
text-shadow: 0 0 10px #00c3ff, 0 0 20px #00c3ff;
|
|
font-style: italic;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.ranking-container {
|
|
display: flex;
|
|
height: 500px; /* Altura fija necesaria para PC */
|
|
gap: 1rem;
|
|
padding: 0 1.5rem;
|
|
margin-bottom: 5rem;
|
|
}
|
|
|
|
/* Estilo base de la tarjeta */
|
|
.rank-card {
|
|
position: relative;
|
|
flex: 1; /* Todos empiezan igual */
|
|
border-radius: 30px;
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
border: 2px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
/* Imagen de fondo */
|
|
.card-bg {
|
|
position: absolute;
|
|
inset: 0;
|
|
background-size: cover;
|
|
background-position: center top;
|
|
filter: grayscale(80%) brightness(0.5) contrast(1.2); /* Oscuro por defecto */
|
|
transition: all 0.5s ease;
|
|
z-index: 1;
|
|
}
|
|
|
|
/* Insignia (#1, #2...) */
|
|
.rank-badge {
|
|
position: absolute;
|
|
top: 20px;
|
|
left: 20px;
|
|
width: 50px;
|
|
height: 50px;
|
|
background: rgba(15, 23, 42, 0.8);
|
|
color: #00c3ff;
|
|
border: 2px solid #00c3ff;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 1.5rem;
|
|
font-weight: bold;
|
|
z-index: 3;
|
|
box-shadow: 0 0 15px rgba(0, 195, 255, 0.5);
|
|
}
|
|
|
|
/* Estilo especial para el Top 1 (Dorado) */
|
|
.rank-1 .rank-badge {
|
|
color: #ffd700;
|
|
border-color: #ffd700;
|
|
box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
|
|
}
|
|
|
|
/* Capa de texto */
|
|
.card-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 2;
|
|
background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 10%, rgba(15, 23, 42, 0.3) 60%, transparent 100%);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
padding: 2rem;
|
|
}
|
|
|
|
.card-details {
|
|
transform: translateY(20px);
|
|
transition: all 0.4s ease;
|
|
}
|
|
|
|
.card-details h3 {
|
|
font-size: 2rem;
|
|
margin-bottom: 0.5rem;
|
|
text-transform: uppercase;
|
|
color: white;
|
|
}
|
|
|
|
.short-desc {
|
|
font-size: 1.1rem;
|
|
color: #00c3ff;
|
|
font-weight: bold;
|
|
margin-bottom: 1rem;
|
|
display: block;
|
|
}
|
|
|
|
.full-desc {
|
|
font-size: 0.95rem;
|
|
color: #d1d5db;
|
|
line-height: 1.5;
|
|
opacity: 0;
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: all 0.5s ease;
|
|
}
|
|
|
|
/* --- INTERACTIVIDAD HOVER (PC) --- */
|
|
|
|
/* 1. Oscurecer las otras al pasar el mouse */
|
|
.ranking-container:hover .rank-card:not(:hover) {
|
|
flex: 0.7;
|
|
filter: brightness(0.6) blur(1px);
|
|
}
|
|
|
|
/* 2. Expandir la tarjeta activa */
|
|
.rank-card:hover {
|
|
flex: 2; /* Se ensancha */
|
|
border-color: #00c3ff;
|
|
box-shadow: 0 10px 40px -10px rgba(0, 195, 255, 0.5);
|
|
z-index: 10;
|
|
}
|
|
|
|
/* 3. Activar imagen y texto */
|
|
.rank-card:hover .card-bg {
|
|
filter: grayscale(0%) brightness(1.1);
|
|
transform: scale(1.1) rotate(1deg);
|
|
}
|
|
|
|
.rank-card:hover .card-details {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.rank-card:hover .full-desc {
|
|
opacity: 1;
|
|
max-height: 100px;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
/* --- RESPONSIVE RANKING (MÓVIL) --- */
|
|
@media (max-width: 900px) {
|
|
.ranking-container {
|
|
flex-direction: column;
|
|
height: auto;
|
|
gap: 2rem;
|
|
}
|
|
.rank-card {
|
|
height: 350px;
|
|
flex: none; /* Desactiva flex dinámico */
|
|
width: 100%;
|
|
}
|
|
/* Desactivar efectos complejos en móvil */
|
|
.ranking-container:hover .rank-card:not(:hover) { flex: none; filter: none; }
|
|
.rank-card:hover { flex: none; transform: scale(1.02); }
|
|
}
|
|
|
|
|
|
/* =========================================
|
|
5. CTA SECTION (Botón "Ver catálogo")
|
|
========================================= */
|
|
.cta-section {
|
|
padding: 0 1.5rem;
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-top: 2rem;
|
|
}
|
|
|
|
.cta-content {
|
|
width: 100%;
|
|
max-width: 900px;
|
|
background: rgba(15, 23, 42, 0.6);
|
|
backdrop-filter: blur(12px);
|
|
border: 1px solid rgba(0, 195, 255, 0.3);
|
|
border-radius: 20px;
|
|
padding: 3rem 2rem;
|
|
text-align: center;
|
|
transition: box-shadow 0.3s ease;
|
|
}
|
|
|
|
.cta-content:hover {
|
|
box-shadow: 0 0 30px rgba(0, 195, 255, 0.2);
|
|
border-color: #00c3ff;
|
|
}
|
|
|
|
.cta-icon {
|
|
font-size: 3rem;
|
|
color: #00c3ff;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.cta-content p {
|
|
font-size: 1.4rem;
|
|
margin-bottom: 2rem;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.cta-button {
|
|
display: inline-block;
|
|
padding: 14px 40px;
|
|
color: #00c3ff;
|
|
border: 2px solid #00c3ff;
|
|
font-weight: bold;
|
|
font-size: 1.1rem;
|
|
border-radius: 50px;
|
|
transition: all 0.3s ease;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
.cta-button:hover {
|
|
background-color: #00c3ff;
|
|
color: #0f172a;
|
|
box-shadow: 0 0 25px rgba(0, 195, 255, 0.8);
|
|
}
|
|
|
|
|
|
/* =========================================
|
|
6. FOOTER
|
|
========================================= */
|
|
.footer
|
|
{
|
|
bottom: 1rem;
|
|
left: 1rem;
|
|
right: 1rem;
|
|
padding: 1rem;
|
|
color: white;
|
|
z-index: 50;
|
|
border-radius: 20px;
|
|
|
|
/*Efecto cristal difuminado*/
|
|
|
|
background: rgba(255, 255, 255, 0.05);
|
|
backdrop-filter: blur(20px) saturate(180%);
|
|
-webkit-backdrop-filter: blur(20px) saturate(180%);
|
|
border: 1px solid rgba(255, 255, 255, 0.2);
|
|
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
|
|
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
/*Fila principal del footer (flex)*/
|
|
.footerRow
|
|
{
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
/*Cada columna del footer*/
|
|
.footerLinks
|
|
{
|
|
flex: 1 1 200px;
|
|
max-width: 300px;
|
|
}
|
|
|
|
/*Titulos de los bloques del footer*/
|
|
.footerLinks h4
|
|
{
|
|
font-size: 20px;
|
|
color: #FFFFFF;
|
|
margin-bottom: 25px;
|
|
font-weight: 500;
|
|
border-bottom: 2px solid #00c3ff;
|
|
padding-bottom: 10px;
|
|
display: inline-block;
|
|
}
|
|
|
|
/*Enlaces dentro de las columnas del footer*/
|
|
.footerLinks ul li a
|
|
{
|
|
font-size: 18px;
|
|
text-decoration: none;
|
|
color: #bbbbbb;
|
|
display: block;
|
|
margin-bottom: 15px;
|
|
transition: all .3s ease;
|
|
}
|
|
|
|
/*Hover del footer*/
|
|
.footerLinks ul li a:hover
|
|
{
|
|
color:#ffffff;
|
|
padding-left: 6px;
|
|
}
|
|
|
|
/*Iconos redondos de redes sociales*/
|
|
.socialLinks a
|
|
{
|
|
display: inline-block;
|
|
min-height: 40px;
|
|
width: 40px;
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
margin: 0 10px 10px 0;
|
|
text-align: center;
|
|
line-height: 40px;
|
|
border-radius: 50%;
|
|
color: #ffffff;
|
|
transition: all .5s ease;
|
|
}
|
|
|
|
.socialLinks a:hover
|
|
{
|
|
background-color: #00C3FF
|
|
}
|
|
/*Footer responsive para moviles*/
|
|
@media(max-width: 991px) {
|
|
.footerRow
|
|
{
|
|
text-align:center;
|
|
}
|
|
.footerLinks
|
|
{
|
|
width: 100%;
|
|
margin-bottom: 30px;
|
|
}
|
|
}
|
|
|
|
/*Zona de Creative Commons*/
|
|
|
|
.creativeCommons
|
|
{
|
|
width: 100%;
|
|
text-align: center;
|
|
margin-top: 2rem;
|
|
font-size: 0.875rem;
|
|
color: #bbbbbb;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.2em;
|
|
}
|
|
|
|
.creativeCommons a
|
|
{
|
|
color: #bbbbbb;
|
|
text-decoration: none;
|
|
margin: 0 0.2em;
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
.creativeCommons a:hover
|
|
{
|
|
color: #ffffff;
|
|
}
|
|
|
|
.creativeCommons img
|
|
{
|
|
vertical-align: middle;
|
|
max-width: 1em;
|
|
max-height: 1em;
|
|
margin-left: 0.2em;
|
|
}
|
|
|
|
/*Espacio para que el contenido no quede oculto por el navbar y el footer*/
|
|
|
|
.content {
|
|
padding-top: 7rem;
|
|
padding-bottom: 10rem;
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
} |