/* assets/css/main.css */
/* Estilos Generales */
html {
    font-size: 16px;
    box-sizing: border-box;
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    height: 100%; 
    margin: 0;
    font-family: Arial, sans-serif; 
    color: #1c1e21;
    background-image: url('/Images/fondo.jpg'); 
    background-size: cover;
    background-position: center center; 
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* --- ESTILOS PARA MODALES --- */
.modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
    display: flex; 
    justify-content: center;
    align-items: center; 
    z-index: 2000; 
    opacity: 0; 
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.visible { 
    opacity: 1; 
    visibility: visible; 
}
.modal-content {
    position: relative; 
    background-image: url('/Images/fondo.jpg');
    background-size: cover; 
    background-position: center center;
    padding: 0; 
    border-radius: 0.5rem; 
    width: 95vw; 
    height: 95vh;
    max-width: 1400px; 
    box-shadow: 0 0.3125rem 0.9375rem rgba(0,0,0,0.5);
    transform: scale(0.9); 
    transition: transform 0.3s ease; 
    overflow: hidden;
}
.modal-overlay.visible .modal-content { 
    transform: scale(1); 
}
.modal-close-button {
    position: absolute; 
    top: 0.625rem; 
    right: 0.625rem; 
    width: 1.875rem;
    height: 1.875rem; 
    background: #333; 
    color: #fff; 
    border: none;
    border-radius: 50%; 
    font-size: 1.25rem; 
    line-height: 1.875rem;
    text-align: center; 
    cursor: pointer; 
    z-index: 2001;
}
.modal-content iframe {
    width: 100%; 
    height: 100%; 
    border: none;
    border-radius: 0.5rem; 
    background-color: transparent;
}

/* --- ESTILOS PARA COLUMNAS DE PUBLICIDAD --- */
.ad-column {
    position: fixed;
    top: 14.625rem;
    width: 10rem;
    z-index: 500;
}
.left-ad {
    left: 1rem;
}
.right-ad {
    right: 1rem;
}
.ad-content {
    width: 100%;
    height: 38.125rem;
    background-color: rgba(240, 240, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    backdrop-filter: blur(5px);
}

/* ESTILOS DE LA PÁGINA PRINCIPAL */
.top-nav {
    width: 100%; 
    position: fixed; 
    top: 0; 
    z-index: 1000;
    display: flex; 
    justify-content: center;
}
.nav-center {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3125rem 12rem;
}
.logo-search-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
}
.logo img {
    height: 9.375rem;
    margin-right: 1.25rem;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}
.search-container {
    position: relative; 
    max-width: 31.25rem;
    width: 100%;
}
.search-bar {
    padding: 0.5rem 2.8125rem 0.5rem 0.9375rem;
    border-radius: 1.25rem; 
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 100%; 
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.2); 
    color: #ffffff;
}
.search-bar::placeholder { 
    color: rgba(255, 255, 255, 0.8); 
}
.search-icon {
    position: absolute; 
    right: 0.9375rem; 
    top: 50%;
    transform: translateY(-50%); 
    height: 1.25rem; 
    width: 1.25rem;
    fill: #ffffff; 
    pointer-events: none;
}
.nav-links {
    list-style: none; 
    margin: 0; 
    padding: 0; 
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.nav-login-form {
    display: flex; 
    align-items: center;
    gap: 0.625rem;
    margin-left: 1.25rem;
}
.nav-links li a, .nav-button {
    text-decoration: none; 
    color: #ffffff; 
    padding: 0.625rem 0.9375rem;
    display: block; 
    font-weight: bold; 
    font-size: 1.125rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7); 
    border-radius: 0.5rem;
}
.nav-links li a:hover, .nav-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}
.nav-input {
    padding: 0.5rem 0.75rem; 
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff; 
    width: 8.75rem;
}
.nav-input::placeholder { 
    color: rgba(255, 255, 255, 0.8); 
}
.nav-button {
    background-color: #FFD700; 
    color: #333;
    border: none; 
    cursor: pointer;
}
/* Contenido Principal */
.content-wrapper {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    height: calc(100vh - 10rem);
    margin-top: 10rem;
    padding: 0 12rem;
}
.horizontal-carousels {
    flex-grow: 1; 
    min-width: 0;
    height: 100%;
    overflow-y: auto;
}
.carousel { 
    margin: 0; 
    display: flex; 
    align-items: center; 
    gap: 1.25rem; 
    margin-bottom: 0.3125rem; 
}
.carousel-title {
    font-size: 1.5rem; 
    font-weight: bold; 
    color: #FFF; 
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.6); 
    flex-shrink: 0; 
    width: 7.5rem;
    text-align: right; 
}
.carousel-wrapper { 
    background-color: transparent; 
    padding: 1.25rem 0.9375rem; 
    overflow: visible; 
    position: relative; 
    flex-grow: 1; 
    width: 0; 
}
.carousel-container { 
    display: flex; 
    cursor: grab; 
    user-select: none; 
    -ms-overflow-style: none; 
    scrollbar-width: none; 
    overflow-x: scroll; 
}
.carousel-container.active { 
    cursor: grabbing; 
}
.carousel-container::-webkit-scrollbar { 
    display: none; 
}
.carousel-item { 
    position: relative; 
    flex: 0 0 8.625rem; 
    margin-right: 0.5rem; 
    background-color: #fff; 
    border-radius: 0.5rem; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: opacity 0.1s ease-out; 
    overflow: hidden; 
    cursor: pointer; 
}
.carousel-item.original-hidden { 
    opacity: 0; 
    pointer-events: none; 
}
.floating-card {
    position: fixed;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    z-index: 9999;
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    pointer-events: none;
    transform-origin: center center;
    overflow: hidden;
}
.floating-card.active-hover {
    transform: scale(1.5);
    box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,0.3);
    pointer-events: auto;
}
.item-thumbnail { 
    width: 100%; 
    height: 3.75rem; 
    color: white; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.9375rem; 
}
.item-title { 
    padding: 0.4375rem; 
    font-weight: bold;
    font-size: 1rem; 
    color: #1c1e21; 
}
.item-description { 
    padding: 0 0.4375rem 0.4375rem; 
    font-size: 0.8125rem; 
    color: #666; 
}
.vertical-carousel {
    width: 18.75rem; 
    flex-shrink: 0; 
    background-color: transparent; 
    border-radius: 0.5rem; 
    padding: 0.9375rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.vertical-carousel .carousel-title { 
    margin-bottom: 0.9375rem; 
    color: #FFF; 
    text-shadow: 0px 1px 3px rgba(0, 0, 0, 0.6); 
    width: 100%; 
    text-align: left; 
}
.vertical-carousel-content {
    max-height: 100%;
    flex-grow: 1;
    overflow-y: auto;
    min-height: 0;
    cursor: grab; 
    user-select: none; 
    -ms-overflow-style: none; 
    scrollbar-width: none;
}
.vertical-carousel-content.active { 
    cursor: grabbing; 
}
.vertical-carousel-content::-webkit-scrollbar { 
    display: none; 
}
.following-item { 
    display: flex; 
    align-items: center; 
    margin-bottom: 0.75rem; 
    padding: 0.3125rem; 
    border-radius: 0.5rem; 
}
.following-item:last-child {
    margin-bottom: 0; 
}
.following-avatar { 
    width: 2.375rem; 
    height: 2.375rem; 
    border-radius: 50%; 
    background-color: #ccc; 
    margin-right: 0.75rem; 
}
.following-name {
    font-weight: bold; 
    font-size: 1.125rem; 
}
.following-link { 
    text-decoration: none; 
    color: inherit; 
    display: block; 
    margin-bottom: 0.75rem;
    cursor: pointer; 
}
.carousel-title-link {
    text-decoration: none;
    color: inherit;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1400px) {
    .nav-center, .content-wrapper {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .ad-column {
        display: none;
    }
}
@media (max-width: 1199px) {
    .content-wrapper {
        flex-direction: column; 
        align-items: center; 
    }
    .vertical-carousel { 
        width: 100%; 
        max-width: 43.75rem; 
    }
    .horizontal-carousels { 
        height: auto; 
    }
    .carousel { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 0.625rem; 
    }
    .carousel-title { 
        text-align: left; 
        width: 100%; 
    }
}
@media (max-width: 768px) {
    .logo-search-container { 
        flex-direction: column; 
        align-items: flex-start; 
    }
    .search-container { 
        margin-top: 0.625rem; 
    }
    .nav-center { 
        flex-wrap: wrap; 
    }
    .nav-links {
        flex-direction: column; 
        align-items: flex-start; 
        width: 100%; 
        margin-top: 1rem; 
    }
    .nav-login-form { 
        margin-left: 0; 
        flex-direction: column; 
        align-items: stretch; 
        width: 100%; 
    }
    .nav-input, .nav-button { 
        width: 100%; 
        box-sizing: border-box; 
    }
    .content-wrapper {
        margin-top: 15rem; 
        height: calc(100vh - 15rem); 
    }
}

/* --- ESTILOS PARA FLECHAS DE NAVEGACIÓN DEL CARRUSEL --- */
.carousel-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease;
    font-size: 1.2rem;
    user-select: none;
}
.carousel-nav-arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.carousel-nav-arrow.left {
    left: 5px;
}
.carousel-nav-arrow.right {
    right: 5px;
}
.carousel-wrapper:hover .carousel-nav-arrow {
    opacity: 1;
}

/* --- ESTILOS PARA EL NUEVO BOTÓN DE BÚSQUEDA --- */
.search-container {
    display: flex; 
    align-items: center;
}

.search-bar {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.search-button {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-left: none;
    padding: 0.5rem;
    height: 37px; 
    border-top-right-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

.search-button .search-icon {
    position: static;
    transform: none;
    pointer-events: auto;
    height: 1.25rem;
    width: 1.25rem;
    fill: #ffffff;
}
