@import './estilos.css';

body {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.95)), url('https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTvjq8KrwB6Pyo1RSKAzDNTI-6JgylmRaNSuAx9rXoWPqZs46Gac7hP1ka5YMM3yIBBCE0&usqp=CAU');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #ffffff;
    font-family: 'Nunito', sans-serif;
    margin: 0;
    min-height: 100vh;
}

.main-content {
    padding-top: 100px; 
    min-height: 80vh;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.page-subtitle {
    color: #ccc;
    font-size: 1.2rem;
}

#contenedor-actores {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
    padding: 0 60px 60px;
    max-width: 1600px;
    margin: 0 auto;
}

.actor-card {
    background-color: #1f1f1f;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    height: 100%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.actor-img {
    width: 100%;
    height: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    display: block;
    transition: all 0.5s ease;
}

.actor-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

.actor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    z-index: 5;
}

.actor-card:hover .actor-img {
    filter: blur(8px) brightness(0.6);
    transform: scale(1.1);
}

.actor-card:hover .actor-info {
    opacity: 1;
}

.actor-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.actor-popularity {
    font-size: 0.9rem;
    color: #fff;
    background-color: #e50914;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(229, 9, 20, 0.4);
}

@media (max-width: 768px) {
    #contenedor-actores {
        padding: 0 20px 40px;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    .page-title { font-size: 2rem; }
}