/* styles.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(to bottom, #141414, #000000);
    min-height: 100vh;
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 30px;
    transition: background 0.3s;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(0,0,0,0.95);
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(45deg, #E50914, #ff4d4d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    letter-spacing: 2px;
}

/* Barra de búsqueda */
.search-container {
    margin-left: auto;
    position: relative;
    width: 300px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #E50914;
    background: rgba(255,255,255,0.15);
}

.search-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.5);
    pointer-events: none;
}

/* Resultados de búsqueda */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1f1f1f;
    border-radius: 10px;
    margin-top: 5px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    border: 1px solid #333;
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s;
    border-bottom: 1px solid #333;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #2a2a2a;
}

.search-result-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #E50914, #ff4d4d);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.search-result-info h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.search-result-info p {
    font-size: 0.7rem;
    color: #b3b3b3;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #b3b3b3;
}

/* Hero Section con transiciones */
.hero {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Hero Section con transiciones */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    transform: scale(1);
    /* Asegurar que las transformaciones sean suaves */
    will-change: transform, opacity;
}

.hero-image.active {
    opacity: 1;
    z-index: 2;
}

/* El zoom ahora es independiente de active */
.hero-image.zooming {
    animation: gentleZoom 8s ease-in-out forwards;
    /* Mantener el transform durante la transición */
    transform-origin: center center;
}

@keyframes gentleZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

/* Asegurar que el transform persista */
.hero-image.zooming {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8) 20%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 80%);
    z-index: 3;
}

.hero-content {
    position: absolute;
    bottom: 30%;
    left: 60px;
    max-width: 600px;
    z-index: 4;
    color: white;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease;
}

.hero-content.hidden {
    opacity: 0;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-btn-primary {
    background: #E50914;
    color: white;
}

.hero-btn-primary:hover {
    background: #ff0f1f;
    transform: scale(1.05);
}

.hero-btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

/* Indicadores del hero */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    right: 60px;
    z-index: 4;
    display: flex;
    gap: 10px;
}

.hero-indicator {
    width: 50px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 3px;
}

.hero-indicator.active {
    background: #E50914;
    width: 70px;
}

.hero-indicator:hover {
    background: rgba(255,255,255,0.5);
}

/* Indicadores de paneles (puntos) */
.panel-indicators {
    position: absolute;
    bottom: 30px;
    left: 60px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.panel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s;
}

.panel-indicator.active {
    background: #E50914;
    transform: scale(1.2);
}

/* Categorías */
.categories {
    padding: 20px 60px;
    position: relative;
    z-index: 5;
}

.category {
    margin-bottom: 40px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.category-title {
    font-size: 1.5rem;
    color: white;
}

/* Carrusel */
.carousel-container {
    position: relative;
    overflow-x: hidden;
}

.carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    justify-content: center;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 auto;
    width: 200px;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
}

.carousel-item:hover {
    transform: scale(1.05);
    z-index: 10;
}

.manga-card {
    background: #1f1f1f;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: all 0.3s;
}

.manga-card:hover {
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.manga-cover-container {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(145deg, #1f1f1f, #2a2a2a);
    border-radius: 8px 8px 0 0;
}

.manga-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: bicubic;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1);
}

.manga-cover-img:hover {
    transform: scale(1.08);
}

.manga-info {
    padding: 12px;
}

.manga-title {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.manga-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #b3b3b3;
}

.manga-badge {
    background: #E50914;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
}

.manga-genre {
    color: #808080;
}

/* Botones del carrusel */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 100px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 20;
    opacity: 0;
    transition: opacity 0.3s;
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(0,0,0,0.8);
}

.carousel-btn-left {
    left: 0;
    border-radius: 0 5px 5px 0;
}

.carousel-btn-right {
    right: 0;
    border-radius: 5px 0 0 5px;
}

/* Sección destacada */
.featured-section {
    padding: 40px 60px;
    background: linear-gradient(to bottom, transparent, rgba(229,9,20,0.1));
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.featured-card {
    background: linear-gradient(145deg, #1f1f1f, #2a2a2a);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s;
    cursor: pointer;
    border: 1px solid #333;
}

.featured-card:hover {
    transform: translateY(-5px);
    border-color: #E50914;
}

.featured-icon {
    font-size: 3rem;
    color: #E50914;
    margin-bottom: 15px;
}

.featured-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: white;
}

.featured-card p {
    color: #b3b3b3;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #141414;
    padding: 40px 60px;
    margin-top: 40px;
}

.footer-social {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.footer-social i {
    font-size: 1.5rem;
    color: #808080;
    cursor: pointer;
    transition: color 0.3s;
}

.footer-social i:hover {
    color: #E50914;
}

.footer-copyright {
    color: #808080;
    font-size: 0.8rem;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Modal de información tipo Netflix */
.info-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.info-modal.active {
    display: flex;
}

.info-modal-content {
    background: #181818;
    border-radius: 8px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.info-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.8);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.info-modal-close:hover {
    border-color: #E50914;
    transform: rotate(90deg);
}

.info-modal-header {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.info-modal-header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.info-modal-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, #181818);
}

.info-modal-header-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 2;
}

.info-modal-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.info-modal-buttons {
    display: flex;
    gap: 15px;
}

.info-modal-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-modal-btn-primary {
    background: #E50914;
    color: white;
}

.info-modal-btn-primary:hover {
    background: #ff0f1f;
    transform: scale(1.05);
}

.info-modal-btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}

.info-modal-btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

.info-modal-body {
    padding: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.info-modal-left {
    color: #b3b3b3;
}

.info-modal-synopsis {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: white;
}

.info-modal-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.info-modal-year {
    color: #b3b3b3;
}

.info-modal-episodes {
    color: #b3b3b3;
}

.info-modal-cast {
    margin-bottom: 20px;
}

.info-modal-cast-label {
    color: #808080;
    margin-bottom: 5px;
}

.info-modal-cast-names {
    color: white;
}

.info-modal-right {
    border-left: 1px solid #333;
    padding-left: 40px;
}

.info-modal-genres {
    margin-bottom: 30px;
}

.info-modal-genres-label {
    color: #808080;
    margin-bottom: 10px;
    font-size: 1rem;
}

.info-modal-genres-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.info-modal-genre-tag {
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.info-modal-genre-tag:hover {
    border-color: #E50914;
    background: rgba(229,9,20,0.1);
}

.info-modal-tags {
    margin-bottom: 30px;
}

.info-modal-tags-label {
    color: #808080;
    margin-bottom: 10px;
    font-size: 1rem;
}

.info-modal-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.info-modal-tag {
    background: rgba(229,9,20,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #E50914;
    border: 1px solid rgba(229,9,20,0.3);
}

.info-modal-related {
    margin-top: 30px;
    padding: 40px;
    border-top: 1px solid #333;
}

.info-modal-related-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: white;
}

.info-modal-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.info-modal-related-item {
    cursor: pointer;
    transition: transform 0.3s;
}

.info-modal-related-item:hover {
    transform: scale(1.05);
}

.info-modal-related-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 10px;
}

.info-modal-related-name {
    font-size: 0.9rem;
    color: white;
    text-align: center;
}

/* Scrollbar personalizada */
.info-modal-content::-webkit-scrollbar {
    width: 8px;
}

.info-modal-content::-webkit-scrollbar-track {
    background: #1f1f1f;
}

.info-modal-content::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

.info-modal-content::-webkit-scrollbar-thumb:hover {
    background: #E50914;
}

/* Media queries */
@media (min-width: 1920px) {
    .manga-cover-container {
        height: 320px;
    }
    
    .carousel-item {
        width: 240px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        flex-wrap: wrap;
    }

    .search-container {
        width: 100%;
        margin-top: 10px;
    }

    .hero-content {
        left: 20px;
        bottom: 20%;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-indicators {
        right: 20px;
        bottom: 20px;
    }

    .panel-indicators {
        left: 20px;
        bottom: 20px;
    }

    .categories {
        padding: 20px;
    }

    .carousel-item {
        width: 150px;
    }

    .manga-cover-container {
        height: 210px;
    }

    .featured-section {
        padding: 20px;
    }

    .footer {
        padding: 30px 20px;
    }

    .info-modal-body {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .info-modal-right {
        border-left: none;
        padding-left: 0;
    }

    .info-modal-header-content {
        left: 20px;
        right: 20px;
    }

    .info-modal-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        width: 130px;
    }

    .manga-cover-container {
        height: 180px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-btn {
        width: 100%;
        text-align: center;
    }

    .hero-indicator {
        width: 30px;
    }

    .hero-indicator.active {
        width: 50px;
    }

    .panel-indicator {
        width: 6px;
        height: 6px;
    }

    .info-modal {
        padding: 10px;
    }

    .info-modal-header {
        height: 250px;
    }

    .info-modal-buttons {
        flex-direction: column;
    }

    .info-modal-btn {
        width: 100%;
        justify-content: center;
    }
}
/* --- TEAM ROJO / TEAM AZUL --- */
.teams-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    padding: 40px 60px;
    margin-top: 20px;
}

.team-block {
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
}

.team-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

/* ROJO */
.team-red {
    background: linear-gradient(135deg, #4a0a0a, #7a0f0f);
}

.team-red .team-title {
    color: #ffb3b3;
}

/* AZUL */
.team-blue {
    background: linear-gradient(135deg, #0a1a4a, #0f2f7a);
}

.team-blue .team-title {
    color: #b3d1ff;
}

/* Ajuste de tarjetas dentro de cada team */
.team-red .manga-card,
.team-blue .manga-card {
    background: #1f1f1f;
}

.team-red .manga-card:hover {
    box-shadow: 0 10px 30px rgba(255, 50, 80, 0.4);
}

.team-blue .manga-card:hover {
    box-shadow: 0 10px 30px rgba(80, 120, 255, 0.4);
}
/* Imagen marcada como vista */
.manga-cover-img.viewed {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}
/* Centrar tarjetas dentro de Team Rojo y Team Azul */
/* GRID 2x2 para Team Rojo y Team Azul */
.team-block .carousel {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    justify-items: center;
    padding: 20px 0;
    overflow: visible !important;
}

/* Botones de selección de equipo */
/* Botones Rojo y Azul */
/* Botones Rojo y Azul */
.team-button {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
    width: 200px;
    text-align: center;

    /* CENTRADO BAJO SU CUADRO */
    display: block;
    margin: 15px auto 0 auto;
}

/* Botón rojo */
.team-button-red {
    background: #7a0f0f;
    color: #ffb3b3;
}

.team-button-red:hover {
    background: #a31212;
    transform: scale(1.05);
}

/* Botón azul */
.team-button-blue {
    background: #0f2f7a;
    color: #b3d1ff;
}

.team-button-blue:hover {
    background: #1540a3;
    transform: scale(1.05);
}
/* Cuadro morado */
.team-purple {
    background: linear-gradient(135deg, #3a0a4a, #6a0f7a);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    max-width: 500px;
    width: 100%;

    /* CENTRADO EN LA PANTALLA */
    margin: 40px auto 0 auto;
    text-align: center;
    display: block !important;   /* LO SACA DEL GRID */
    position: relative;          /* Asegura que no herede alineación del grid */
}


/* Título morado */
.team-purple .team-title {
    color: #e5b3ff;
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Tarjeta morada (1 manga) */
.purple-card {
    width: 220px;
    height: 330px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
    background: #1f1f1f;
}

/* Imagen */
.purple-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover */
.purple-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(180, 80, 255, 0.4);
}



/* Contenedor centrado */
.new-visitor-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.new-visitor-btn {
    background: linear-gradient(135deg, #6a0f7a, #b84ad6);
    color: white;
    padding: 18px 40px;
    font-size: 1.4rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: transform .25s, box-shadow .25s;
}

.new-visitor-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(180, 80, 255, 0.4);
}

/* Fondo oscuro */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
}

/* Caja del modal */
.modal-box {
    background: #141414;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    color: white;
    position: relative;
    transform: scale(0.8);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    border: 1px solid rgba(255,255,255,0.15);
}

/* Botón X */
.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 1.4rem;
    cursor: pointer;
    color: #fff;
    transition: color .2s;
}

.modal-close:hover {
    color: #e50914;
}

/* Título */
.modal-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #e50914;
}

/* Texto */
.modal-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #ddd;
}

/* Mostrar modal */
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
    opacity: 1;
}
.modal-credits {
    margin-top: 20px;
    text-align: right;
    font-size: 1.3rem;   /* tamaño aumentado */
    color: #b84ad6;      /* morado neon para que combine */
    font-style: italic;
    font-weight: 600;    /* un poco más grueso */
}
