body {
    margin: 0;
    font-family: 'Josefin Sans', sans-serif;
    background: linear-gradient(to right, #1e1f26, #4b0082);
    color: white;
}

header.hero {
    background-image: url('/img/TalentosOcultosFondo.webp');
     background-size: cover;
    background-position: 15% center;
    background-attachment: fixed;
    min-height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
    padding: 20px; /* Espacio interno para pantallas pequeñas */
    box-sizing: border-box;
    text-align: center;
}

.hero-content {
    max-width: 90%;
    width: 600px;
}

.hero h1 {
    font-size: clamp(2.5em, 5vw, 4em); /* Se adapta desde móviles hasta pantallas grandes */
    margin: 0;
    text-transform: uppercase;
}

.hero p {
    font-size: clamp(1em, 2vw, 1.5em);
    margin-top: 10px;
}

h2 {
    color: #ff6f61;
    border-bottom: 2px solid #ff6f61;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.introduccion p,
.ciencia p {
    font-size: 1.2em;
    line-height: 1.6;
}

.quotes blockquote {
    font-style: italic;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    margin: 20px 0;
    border-left: 4px solid #ff6f61;
}

.elenco-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.actor {
    text-align: center;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.actor:hover {
    transform: scale(1.05);
}

.actor img {
    width: 100%;
    max-width: 140px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.actor h3 {
    margin: 10px 0 5px;
    color: #ff6f61;
}

.actor p {
    margin: 0;
    color: #ddd;
}

.galeria {
    max-width: 1000px;
}

.galeria-expandible {
    display: flex;
    width: 100%;
    max-width: 900px;
    height: 430px;
    margin: auto;
    border-radius: 10px;
    overflow: hidden;
}

.galeria-expandible img {
    width: 0;
    flex-grow: 1;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.5s ease;
    height: 100%;
}

.galeria-expandible img:hover {
    cursor: zoom-in;
    width: 300px;
    opacity: 1;
    filter: contrast(120%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

footer {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 20px 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}