/* reglas generales */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: inherit;
    font-weight: inherit;
}

ul {
    list-style: none; /* Elimina los puntos de la lista */
    padding-inline-start: 0; /* Elimina el espacio antes de la lista */
}

body {
    font-family: 'Work Sans', sans-serif;
    color: #ffffff;
    background: #041929;
    min-height: 100vh;
}

:root {
    --color-bg: #0b0b0d; /* Fondo específico de la página de serie */
    --color-primary: #ffffff;
    --color-secondary: #c9c9c9;
    --color-accent: #ffdc00;
    --color-divider: #b7b7b8;
    --color-highlight: #000000;
}

/* reglas del index */

.body-contact-page { /* Usa la clase para aplicar los estilos SOLO a este body */
    font-family: 'Work Sans', sans-serif;
    color: #ffffff;
    background: linear-gradient(45deg, black, #093355);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* El nuevo contenedor principal para la página de contactos */
.contact-page-wrapper {
    width: 100%;
    max-width: 900px; /* Limita el ancho máximo para una mejor presentación en pantallas grandes */
    display: flex;
    justify-content: center; /* Centra el contenido de contacto */
    align-items: center;
}


.contact-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem; /* Mantenemos el padding original */
    box-sizing: border-box;
    width: 100%; /* Para que ocupe todo el ancho disponible en el wrapper */
}

.contact-title {
    color: #ffffff;
    font-size: 1.6em;
    font-weight: 500;
    margin-bottom: 3rem;
    text-align: center;
}

.contacts-grid {
    display: grid;
    /* Definimos explícitamente 3 columnas para los contactos */
    /* Cada columna será de tamaño mínimo 120px y crecerá para llenar el espacio */
    grid-template-columns: repeat(3, minmax(120px, 1fr));
    gap: 2rem; /* Espacio entre los elementos */
    justify-items: center; /* Centra los items horizontalmente dentro de sus celdas */
    align-items: start; /* Alinea los items al inicio de su celda verticalmente */
    width: 100%;
    max-width: 600px; /* Ancho máximo para el grid, ajusta si es necesario */
    margin-bottom: 2rem;
}

.add-new-contact-item {
    grid-column: 1 / span 3; /* Comienza en la columna 1 y se extiende por 3 columnas */
    justify-self: center;
    align-self: center;
    margin-top: 5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none; /* Asegura que los enlaces no tengan subrayado */
    color: inherit; /* Hereda el color del texto del body (blanco) */
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease; /* Añadida opacidad a la transición */
}

.contact-item:hover {
    transform: scale(1.05);
    opacity: 0.9; /* Efecto de desvanecimiento sutil al pasar el ratón */
}

.contact-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    background-color: white; /* Mantén el color de fondo */
    border: 0.2em solid rgba(255, 255, 255, 0.3);
    transition: border-color 0.2s ease;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-item:hover .contact-avatar {
    border-color: rgba(255, 255, 255, 0.6);
}

.contact-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    margin-top: 8px; /* Pequeño ajuste para que el nombre no esté tan pegado al avatar */
}

.add-new-contact-item .contact-avatar {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    display: flex; /* Para centrar el plus-icon */
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    border-radius: 50%; /* Sigue siendo redondo */
    margin-bottom: 1rem;
}

.add-new-contact-item:hover .contact-avatar {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

/* El plus-icon debería estar dentro del .contact-avatar del item de añadir */
.add-new-contact-item .plus-icon {
    width: 40px; /* Tamaño más grande para que se vea bien en 120px de avatar */
    height: 40px;
    position: relative;
    /* No necesita background ni border-radius aquí, eso es para el avatar */
}

.add-new-contact-item .plus-icon::before,
.add-new-contact-item .plus-icon::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
}

.add-new-contact-item .plus-icon::before {
    width: 4px; /* Grosor de la línea vertical */
    height: 80%; /* Altura de la línea */
    top: 10%;
    left: calc(50% - 2px); /* Centrado horizontal */
}

.add-new-contact-item .plus-icon::after {
    width: 80%; /* Ancho de la línea horizontal */
    height: 4px; /* Grosor de la línea horizontal */
    top: calc(50% - 2px); /* Centrado vertical */
    left: 10%;
}


.bottom-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}


/* reglas del header */

header {
    background: #000000;
    padding: 1rem;
    text-align: center;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.navegacion ul {
    display: flex;
    gap: 1.2rem;
    justify-content: flex-end;
    align-items: center;
}

.logo img {
    height: 2.5rem;
    width: auto;
}

/* reglas del menu desplegable */

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.625rem;
    border-radius: 0.3125rem;
    transition: background 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.menu-desplegable {
    position: fixed;
    top: 4.375rem;
    right: -18.75rem;
    width: 18.75rem;
    height: calc(100vh - 4.375rem);
    background: rgba(0, 0, 0, 0.95);
    transition: right 0.3s ease;
    z-index: 999;
    padding: 1.25rem;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
}

/* Estado activo del menú (activado por JS) */
.menu-desplegable.active {
    right: 0; /* Desliza el menú para que sea visible */
}

.menu-overlay.active {
    display: block; /* Muestra el overlay */
}

body.menu-open { /* Para deshabilitar el scroll del body cuando el menú está abierto */
    overflow: hidden;
}


/* Secciones del menú */

.menu-desplegable ul {
    margin-top: 1.25rem;
}

.menu-desplegable ul li {
    margin-bottom: 0.9375rem;
}

.menu-desplegable ul li a {
    display: block;
    padding: 0.625rem 0.9375rem;
    color: #ffffff;
    font-size: 1.125rem;
    border-radius: 0.3125rem;
    transition: background-color 0.3s ease;
}

.menu-desplegable ul li a:hover {
    background-color: #1D81D0;
}

.menu-section {
    padding: 1.25rem 0;
}

.section-title {
    font-size: 0.875rem;
    color: #ccc;
    text-transform: uppercase;
    margin-bottom: 0.9375rem;
    padding: 0 1.5625rem;
    border-bottom: 1px solid #333;
}

.menu-item {
    display: block;
    padding: 0.9375rem 1.5625rem;
    color: white;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

/* reglas del slide */

.hero-section {
    position: relative;
    width: 100%;
    height: 37.5rem;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.slide-text {
    position: absolute;
    bottom: 7rem;
    left: 50%;
    transform: translateX(-50%);
    max-width: 50rem;
    color: white;
    z-index: 2;
}

.destacados {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #FBF300;
    border: 0.1rem solid #FBF300;
    border-radius: 0.5rem;
    background-color: #00000090;
    display: block;
    width: fit-content;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
}

.categoria {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #ffffff;
    border-radius: 0.5rem;
    background-color: #00000090;
    display: block;
    width: fit-content;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
}

.slide-text h2 {
    font-size: 3rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.8;
}

.slide-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.btn-info {
    display: inline-block;
    padding: 0.75rem 1.875rem;
    background-color: #1D81D0;
    color: white;
    text-decoration: none;
    border-radius: 0.3125rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-info:hover {
    background-color: #1565a7;
}

.slider-nav {
    position: absolute;
    bottom: 1.875rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.625rem;
    z-index: 2;
}

.nav-dot {
    width: 0.75rem;
    height: 0.75rem;
    border: 0.1rem solid #ffffff;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-dot.active {
    background: #FBF300;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.slider-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-arrow.prev {
    left: 1.25rem;
}

.slider-arrow.next {
    right: 1.25rem;
}

/* reglas para la navegación principal (estas ya son más generales) */

/* Contenedor principal */
.main-container {
    width: min(75rem, calc(100% - 2rem));
    margin: 0 auto;
    margin-top: 2rem;
}

/* Navegación de pestañas */
.tab-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #2a3441;
}

.tab-button {
    background: none;
    border: none;
    color: #ccc;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.9375rem 1.5625rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.0625rem;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent; /* Este es el borde que se activa */
}

.tab-button:hover {
    color: #ffffff;
}

.tab-button.active {
    color: #ffffff;
    border-bottom-color: #FBF300; /* Color del borde activo */
}

/* Contenedor de contenido */
.content-container {
    position: relative;
    min-height: 31.25rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(1.25rem); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sección de recomendaciones */
.recommendations-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.875rem;
    color: #ffffff;
    font-weight: 300;
}

.movies-container {
    position: relative;
    margin-bottom: 2.5rem;
}

.movies-grid {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.625rem 0;
    scrollbar-width: thin;
    scrollbar-color: #4a5568 #1a2332;
}

.movie-card {
    background: #1a2332;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    min-width: 17.5rem;
    flex-shrink: 0;
}

.movie-card:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.5);
}

.movie-poster {
    width: 100%;
    height: 20rem;
    background-size: cover;
    background-position: center;
    position: relative;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-info {
    padding: 1.25rem;
}

.movie-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-transform: uppercase;
}

.movie-year {
    color: #8b9dc3;
    font-size: 0.875rem;
    margin-bottom: 0.625rem;
}

.movie-rating {
    display: flex;
    align-items: center;
    gap: 0.3125rem;
}

.rating-number {
    color: #8b9dc3;
    font-size: 0.875rem;
}

/* Reglas del perfil */
.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    position: absolute;
    top: 4rem;
    left: 1rem;
    cursor: pointer;
    padding: 1rem;
    margin-top: 1rem;
}

.back-btn:hover {
    opacity: 0.8;
}

.back-btn:focus,
.edit-photo:focus,
.options button:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* FOTO DE PERFIL */
.profile-photo-wrapper {
    position: relative;
    width: 7.5rem;
    height: 7.5rem;
    margin: 2rem auto 1rem;
}

.username {
    margin-top: 0;
    margin-bottom: 2rem;
    font-size: 1.25rem;
    text-align: center;
    color: white;
}

.profile-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #ffffff88;
    object-fit: cover;
    background-color: white;
}

.edit-photo {
    position: absolute;
    bottom: 0.3125rem;
    right: 0.3125rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    border: none;
    background-color: white;
    color: #002c4c;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.edit-photo:hover {
    background-color: #1D81D0;
}

/* BOTONES DE OPCIONES */
.options {
    display: flex;
    flex-direction: column;
}

.options button {
    background: linear-gradient(to right, #0057a0, #007bbf);
    border: none;
    padding: 1rem;
    text-align: left;
    color: white;
    font-size: 1rem;
    border-bottom: 1px solid #ffffff33;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.3s;
}

.options button:hover {
    background: linear-gradient(to right, #007bbf, #0057a0);
}

/* Reglas de mis listas */
.listas-title {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
    gap: 2rem;
    max-width: 50rem;
    margin: 0 auto;
}

.playlist-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem;
    backdrop-filter: blur(1rem);
    border: 0.1rem solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

.playlist-card:hover {
    transform: translateY(-0.5rem);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.poster-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.25rem;
    height: 11rem;
    margin-bottom: 1rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.poster {
    position: relative;
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
}

.poster:hover {
    transform: scale(1.05);
    z-index: 1;
}

.poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    border-radius: 0.25rem;
}

.poster:hover img {
    transform: scale(1.1);
}

.poster-1 {
    grid-row: 1 / 3;
}

/* Fallback para imágenes que no cargan */
.poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #34495e, #5e72e4);
    opacity: 0.3;
    z-index: -1;
}

.poster img[src=""], 
.poster img:not([src]) {
    display: none;
}

.poster:has(img[src=""]) {
    background: linear-gradient(45deg, #34495e, #5e72e4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.poster:has(img[src=""])::after {
    content: "🎬";
    font-size: 1.5rem;
    color: white;
    opacity: 0.7;
}

.playlist-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.playlist-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    flex-grow: 1;
    letter-spacing: 0.05rem;
}

.playlist-icon {
    width: 1.25rem;
    height: 1.25rem;
    fill: #ffffff;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.playlist-card:hover .playlist-icon {
    opacity: 1;
}


/* ===== REGLAS DE LOS RANKINGS ===== */

.ranking-container {
    background: linear-gradient(to bottom, #002c4c, #004d7a, #006eab);
    padding: 1.25rem 1.25rem 0 ;
    min-height: 100vh;
}

/* Título principal */
.ranking-title h1 {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.ranking-title p {
    font-size: 1rem;
    color: #cfdfee;
    margin-bottom: 2rem;
    display: block;
    text-align: center;
    font-weight: 300;
    opacity: 0.9;
}

/* ===== TOP MOVIE MEJORADA ===== */
.top-movie {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.top-number {
    font-size: 5rem;
    font-weight: 900;
    color: yellow;
    margin-bottom: 1rem;
}

.top-card {
    display: inline-block;
    background: #002c4c;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: white;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        0 1px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.top-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 8px 16px rgba(0, 44, 76, 0.3);
}

.top-card img {
    width: 140px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.top-card:hover img {
    transform: scale(1.05);
}

.movie-info h2 {
    font-size: 1.3rem;
    margin: 0.8rem 0 0.5rem;
    font-weight: 600;
    color: #ffffff;
}

.movie-info .year {
    font-size: 0.9rem;
    display: block;
    color: #ccc;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.movie-info .rating {
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #f5d300;
    font-weight: 600;
}

.movie-info .rating img {
    width: 18px;
    height: 18px;
}

/* ===== OTRAS PELÍCULAS MEJORADAS ===== */
.other-movies {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.ranked-movie {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 1.5rem;
    background-color: #002c4c;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ranked-movie:hover {
    transform: translateX(10px);
    background-color: #003a66;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        0 3px 8px rgba(0, 44, 76, 0.4);
}

.ranked-movie span {
    font-size: 1.5rem;
    font-weight: 700;
    color: yellow;
    min-width: 40px;
    text-align: center;
}

/* ===== ANIMACIONES SUAVES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.top-movie {
    animation: fadeInUp 0.6s ease-out;
}

.ranked-movie {
    animation: fadeInUp 0.6s ease-out;
}

.ranked-movie:nth-child(1) { animation-delay: 0.1s; }
.ranked-movie:nth-child(2) { animation-delay: 0.2s; }
.ranked-movie:nth-child(3) { animation-delay: 0.3s; }
.ranked-movie:nth-child(4) { animation-delay: 0.4s; }
.ranked-movie:nth-child(5) { animation-delay: 0.5s; }


/* --- reglas para dentro de una serie --- */

.seriecontainer {
    background-color: var(--color-bg);
    color: var(--color-primary);
    min-height: 100vh;
}

.serieposter {
    /* Establece la altura máxima para el contenedor del póster */
    max-height: 37.5rem;
    /* Asegura que el contenido (la imagen) no se desborde */
    overflow: hidden; 
    /* Opcional: Centra la imagen si el contenedor es más ancho */
    display: flex;
    justify-content: center;
    align-items: center;
}


.serieposter img {
    /* Ajusta la imagen dentro de su contenedor */
    width: 100%; /* La imagen ocupará el 100% del ancho del contenedor */
    height: auto; /* La altura se ajustará proporcionalmente */
    object-fit: cover; /* Recorta la imagen para que cubra el área sin distorsionarla */
}

.content {
    padding: 3rem 3rem 3rem;
}

.bookmark-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.bookmark-title h1 {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--color-primary);
}

.bookmark-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.bookmark-btn img {
    width: 24px;
    height: 24px;
    display: block;
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
}

.stars img {
    width: 18px;
    height: 18px;
}

.info {
    font-size: 14px;
    color: var(--color-secondary);
    margin-bottom: 16px;
}

.synopsis {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
    color: var(--color-primary);
}

.divider {
    border-top: 1px solid var(--color-divider);
    margin: 20px 0;
}

.tags {
    margin-bottom: 16px;
}

.tags h3 {
    color: var(--color-primary);
    font-size: 14px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.tag {
    background: #1c1c1e;
    color: white;
    font-size: 10px;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    text-transform: uppercase;
    margin-right: 8px;
}

.platform {
    margin-bottom: 24px;
}

.platform button {
    background-color: var(--color-highlight);
    color: var(--color-primary);
    padding: 12px 28px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.platform button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.cast {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 16px;
    justify-content: center;
}

.cast figure {
    text-align: center;
    margin: 0;
}

.cast img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 2px solid var(--color-divider);
}

.cast figcaption {
    font-size: 11px;
    color: var(--color-secondary);
    text-transform: uppercase;
}

dl {
    margin-top: 24px;
    font-size: 14px;
    line-height: 1.6;
}

dt {
    font-weight: bold;
    color: var(--color-primary);
    margin-bottom: 4px;
}

dd {
    margin-left: 0;
    margin-bottom: 12px;
    color: var(--color-secondary);
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.review-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--color-divider);
    background-color: var(--color-highlight);
    color: var(--color-primary);
    resize: vertical;
    font-size: 14px;
    min-height: 80px;
}

.review-form textarea::placeholder {
    color: var(--color-secondary);
}

.review-form button {
    background: var(--color-accent);
    border: none;
    padding: 12px 24px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    color: var(--color-highlight);
    border-radius: 6px;
    align-self: flex-end;
    transition: background-color 0.3s ease;
}

.review-form button:hover {
    background-color: #ffd000;
}

.reviews .review {
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-primary);
}

.reviews .review strong {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-primary);
}
/* reglas para peliculas, series, cortos y documentales*/

.explorar-container {
    background-color: var(--color-bg);
    padding: 1.25rem 1.25rem 0;
    min-height: 100vh;
}

.contenido-title {
    font-size: 2.5rem;
    color: #ffffff;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.contenido-container {
    gap: 1rem;
    padding: 3rem;
}

.explorar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
}

.explorar-card {
    background: #1a2332;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    min-width: 17.5rem;
    flex-shrink: 0;
}

.explorar-card:hover {
    transform: translateY(-0.3125rem);
    box-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.5);
}

.explorar-poster {
    width: 100%;
    height: 20rem;
    background-size: cover;
    background-position: center;
    position: relative;
}

.explorar-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.explorar-info {
    padding: 1.25rem;
}

.explorar-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    text-transform: uppercase;
}

.explorar-year {
    color: #8b9dc3;
    font-size: 0.875rem;
    margin-bottom: 0.625rem;
}

.explorar-rating {
    display: flex;
    align-items: center;
    gap: 0.3125rem;
}

/* reglas del comitente */

.portada {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), #000), url('../imagenes/familia\ oesterheld.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    color: var(--color-primary);
}

.comitente-titulo {
    font-size: 2.5rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-top: 2rem;
    display: block;
    text-align: center;
    padding: 2rem;
}

.bajada {
    font-size: 0.9rem;
    line-height: 1rem;
    color: var(--color-primary); 
    margin: 0 2rem;
}

.resaltar {
    color: #ffe500;
    font-weight: 600;
}

.video-section {
    padding: 2rem;
}

.video-wrapper { /* Estilos para el contenedor del video si lo usas */
    width: 100%;
    aspect-ratio: 16 / 9; /* Esto es clave para mantener la proporción del video */
    margin-bottom: 2rem;
    background-color: black; /* Un fondo si el video tarda en cargar o para relleno */
    overflow: hidden; /* Asegura que nada se salga del contenedor */
}

.video-wrapper video { /* Apunta directamente a la etiqueta de video dentro del wrapper */
    width: 100%;
    height: 100%; /* El video llenará el contenedor manteniendo el aspect-ratio del wrapper */
    display: block; /* Para eliminar cualquier espacio extra debajo del video */
    object-fit: cover; /* Asegura que el video llene el espacio, recortando si es necesario */
}
.texto-video {
    font-size: 0.9rem;
    color: var(--color-primary);
    line-height: 1rem;
}

/* Ajustes de Responsividad (Media Queries) */

/* Dispositivos medianos (tablets, 601px a 900px) */

@media only screen and (min-width: 601px) and (max-width: 900px) {

    /* Página de Contactos */
    .contacts-grid {
        grid-template-columns: repeat(3, minmax(100px, 1fr)); /* Mantener 3 columnas, pero con min-width ajustado */
        gap: 1.5rem;
    }

    .add-new-contact-item {
        grid-column: 1 / span 3;
    }

    .contact-avatar {
        width: 110px;
        height: 110px;
    }

    .add-new-contact-item .contact-avatar {
        width: 5.5rem;
        height: 5.5rem;
    }

    /* Contenedor Principal y Pestañas */
    .main-container {
        width: min(75rem, calc(100% - 2rem));
    }

    .tab-navigation {
        flex-wrap: nowrap; /* Evita que los botones se envuelvan */
        justify-content: center;
    }

    .tab-button {
        font-size: 1rem;
        padding: 0.9375rem 1.5625rem;
        flex-grow: 0; /* No permite que los botones crezcan si no es necesario */
    }

    /* Grid de Películas */
    .movies-grid {
        padding: 0.625rem 0;
    }

    .movie-card {
        min-width: 16rem; /* Ancho mínimo ligeramente menor */
    }

    .movie-poster {
        height: 18rem;
    }

    /* Mis Listas */
    .playlist-grid {
        grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); /* 2-3 columnas según el espacio */
        gap: 1.5rem;
        max-width: 70rem;
    }

    /* Dentro de una Serie/Película */
    .content {
        padding: 2.5rem 2rem;
    }

    .bookmark-title h1 {
        font-size: 1.4em;
    }

    .info,
    .synopsis,
    dl {
        font-size: 14px;
    }

    .cast {
        gap: 18px;
    }

    .cast img {
        width: 65px;
        height: 65px;
    }

    /* Páginas de Exploración */
    .explorar-grid {
        justify-content: space-around; /* Distribuye las tarjetas */
    }

    .explorar-card {
        min-width: 16rem;
        flex-shrink: 0;
    }

    .explorar-poster {
        height: 18rem;
    }

    /* Página del Comitente */
    .comitente-titulo {
        font-size: 2.2rem;
    }

    .bajada {
        font-size: 0.9rem;
        line-height: 1.3rem;
        margin: 0 1.5rem;
    }
}

/* Dispositivos grandes (escritorios, 901px y más) */
@media only screen and (min-width: 901px) {

    /* Página de Contactos */
    .contacts-grid {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
        gap: 2rem;
    }

    .add-new-contact-item {
        grid-column: 1 / span 3;
    }

    .destacados,
    .categoria {
        margin-left: 0; /* Deshace el centrado */
        margin-right: auto;
    }

    /* Contenedor Principal y Pestañas */
    .main-container {
        width: min(75rem, calc(100% - 2rem));
        margin: 0 auto;
        margin-top: 2rem;
    }

    .tab-navigation {
        justify-content: center;
        flex-wrap: nowrap; /* Evita que los botones se envuelvan */
    }

    .tab-button {
        font-size: 1rem;
        padding: 0.9375rem 1.5625rem;
    }

    /* Grid de Películas */
    .movies-grid {
        padding: 0.625rem 0;
    }

    .movie-card {
        min-width: 17.5rem; /* Ancho original */
    }

    .movie-poster {
        height: 20rem; /* Altura original */
    }

    /* Mis Listas */
    .playlist-grid {
        grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
        max-width: 50rem;
    }

    /* Dentro de una Serie/Película */
    .content {
        padding: 3rem; /* Padding original */
    }

    .bookmark-title h1 {
        font-size: 1.5em;
    }

    .info,
    .synopsis,
    dl {
        font-size: 14px;
    }

    .cast {
        gap: 20px;
    }

    .cast img {
        width: 68px;
        height: 68px;
    }

    /* Páginas de Exploración */
    .explorar-grid {
        justify-content: flex-start; /* Alinea a la izquierda como en tu diseño original */
    }

    .explorar-card {
        min-width: 17.5rem;
    }

    .explorar-poster {
        height: 20rem;
    }

    /* Página del Comitente */
    .comitente-titulo {
        font-size: 2.5rem;
    }

    .bajada {
        font-size: 0.9rem;
        line-height: 1rem;
        margin: 0 2rem;
    }
}