/* Fondo "Aurora" con toques verdes */
.background-radial {
    background-color: #f0fdf4; /* Verde muy claro base */
    background-image: 
        radial-gradient(at 0% 0%, hsla(158, 64%, 85%, 0.8) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(180, 50%, 90%, 0.6) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(150, 60%, 85%, 0.6) 0px, transparent 50%),
        radial-gradient(at 0% 100%, hsla(190, 60%, 90%, 0.5) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Barra de navegación Liquid Glass */
.glass-header {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* Tarjetas Liquid Glass */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.5rem; /* Más redondeado */
    padding: 1.75rem;
    box-shadow: 
        0 8px 32px -4px rgba(16, 185, 129, 0.1), /* Sombra verde suave */
        0 4px 12px -2px rgba(0, 0, 0, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.9); /* Reflejo interior brillante */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Efecto de "Luz" que atraviesa el cristal al pasar el ratón */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: all 0.7s ease;
    opacity: 0;
    pointer-events: none;
}

.glass-card:hover::before {
    left: 150%;
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 
        0 20px 40px -8px rgba(16, 185, 129, 0.25), /* Sombra verde más intensa */
        0 10px 20px -4px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    border-color: rgba(16, 185, 129, 0.4);
}

/* El buscador también con efecto Liquid Glass */
input[type="search"] {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02), 0 4px 12px rgba(0,0,0,0.02);
}

input[type="search"]:focus {
    background: rgba(255, 255, 255, 0.8) !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15), inset 0 2px 4px rgba(0,0,0,0.02);
}

/* Modal Liquid Glass */
.modal-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 1);
}
/* Fondo animado: queda DETRÁS de todo el contenido */
#fondo-animado {
    position: fixed;
    top: -100px;
    left: -100px;
    right: -100px;
    bottom: -100px;
    z-index: 0;
    pointer-events: none;
    /* Quitamos el overflow: hidden y el contain: paint */
}
/* Desvanecido hacia los bordes */
#fondo-animado::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(248, 250, 252, 0) 40%, rgba(248, 250, 252, 0.8) 100%);
    z-index: 1;
}

/* Cada bola es un degradado radial que llega a transparente en su propio borde */
.blob {
    position: absolute;
    border-radius: 9999px;
    will-change: transform;
    backface-visibility: hidden;
    z-index: 0;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle closest-side, rgba(110, 231, 183, 0.5) 0%, rgba(110, 231, 183, 0.2) 45%, rgba(110, 231, 183, 0) 100%);
    animation: float-around 25s ease-in-out infinite;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle closest-side, rgba(94, 234, 212, 0.5) 0%, rgba(94, 234, 212, 0.2) 45%, rgba(94, 234, 212, 0) 100%);
    animation: float-around 30s ease-in-out infinite reverse;
    animation-delay: -5s;
}

.blob-3 {
    top: 20%;
    right: 10%;
    width: 38vw;
    height: 38vw;
    background: radial-gradient(circle closest-side, rgba(187, 247, 208, 0.4) 0%, rgba(187, 247, 208, 0.15) 45%, rgba(187, 247, 208, 0) 100%);
    animation: float-around 20s ease-in-out infinite;
    animation-delay: -10s;
}

@keyframes float-around {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    25%  { transform: translate3d(15vw, 20vh, 0) scale(1.1); }
    50%  { transform: translate3d(-10vw, 35vh, 0) scale(0.9); }
    75%  { transform: translate3d(-20vw, -10vh, 0) scale(1.05); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* Respeta a quien tiene desactivadas las animaciones en su sistema */
@media (prefers-reduced-motion: reduce) {
    .blob { animation: none; }
}

/* El resto de tu CSS (glass-card, etc.) se queda igual */

.titulo-truncado {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;         
    box-orient: vertical;  
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2rem;
}

