/* ==============================
   SOLO REGLAS PROPIAS DE ERROR
   HEREDA FUENTE, COLORES Y BASE DE styles.css
============================== */

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-x: hidden;
    background: 
        radial-gradient(circle at 10% 10%, rgba(220, 38, 38, 0.12) 0%, transparent 25%),
        radial-gradient(circle at 90% 90%, rgba(15, 23, 42, 1) 0%, transparent 40%),
        linear-gradient(180deg, #020617 0%, #0f172a 100%);
}

/* Contenedor con animación de entrada escalonada */
.contenedor-principal {
    text-align: center;
    max-width: 440px;
    width: 100%;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.contenedor-principal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Contenedor de tarjeta con profundidad */
.contenedor-tarjeta-roja {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

/* Tarjeta Roja SIN TEXTO - Diseño premium */
.tarjeta-roja {
    width: 110px;
    height: 160px;
    background: linear-gradient(160deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
    border-radius: 8px;
    position: relative;
    transform: rotate(-8deg) translateZ(20px);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 0 60px rgba(220, 38, 38, 0.3),
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 2px 2px rgba(255, 255, 255, 0.2),
        inset 0 -2px 2px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Efecto de brillo dinámico */
.tarjeta-roja::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 60%
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 1s ease;
}

.tarjeta-roja::after {
    content: '';
    position: absolute;
    inset: 2px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(160deg, rgba(239,68,68,0.1), rgba(185,28,28,0.2));
    backdrop-filter: blur(4px);
}

.brillo-externo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 220px;
    background: radial-gradient(circle, rgba(220,38,38,0.25) 0%, transparent 60%);
    filter: blur(25px);
    z-index: -1;
    opacity: 0.7;
    animation: pulso-brillo 3s ease-in-out infinite;
}

@keyframes pulso-brillo {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

/* Efecto al pasar el cursor */
.contenedor-tarjeta-roja:hover .tarjeta-roja {
    transform: rotate(0deg) translateZ(40px) scale(1.08);
    box-shadow: 
        0 0 80px rgba(220, 38, 38, 0.4),
        0 30px 60px rgba(0, 0, 0, 0.6),
        inset 0 2px 2px rgba(255, 255, 255, 0.25),
        inset 0 -2px 2px rgba(0, 0, 0, 0.25);
}

.contenedor-tarjeta-roja:hover .tarjeta-roja::before {
    transform: rotate(45deg) translateX(100%);
}

/* Textos */
.titulo-principal {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #f8fafc, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.descripcion {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    font-weight: 400;
    color: #94a3b8;
}

/* Botón hipermoderno */
.boton-volver {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #eab308, #facc15);
    color: #0f172a;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 4px 20px rgba(234, 179, 8, 0.3),
        inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.boton-volver::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.boton-volver:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 30px rgba(234, 179, 8, 0.4),
        inset 0 1px 0 rgba(255,255,255,0.4);
}

.boton-volver:hover::before {
    left: 100%;
}

.boton-volver:active {
    transform: translateY(0);
}

/* Responsivo */
@media (max-width: 480px) {
    .titulo-principal { font-size: 2rem; }
    .descripcion { font-size: 1rem; }
    .tarjeta-roja { width: 95px; height: 140px; }
    .brillo-externo { width: 150px; height: 190px; }
}
