/**
 * Estilos para el plugin Telepath Projects
 */

/* Estilos para la cuadrícula de proyectos */
.telepath-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

/* Estilos para las tarjetas de proyecto */
.telepath-project-card {
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.telepath-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.telepath-project-card .project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.telepath-project-card .project-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 66.67%; /* Proporción 3:2 */
}

.telepath-project-card .project-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.telepath-project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}

.telepath-project-card .project-info {
    padding: 20px;
}

.telepath-project-card .project-title {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.telepath-project-card .project-year {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.telepath-project-card .project-services {
    font-size: 0.85rem;
    color: #888;
}

/* Estilos para los filtros */
.project-filters {
    margin: 20px 0;
}

.filter-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.service-filter {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-filter li {
    margin: 0 10px 10px 0;
}

.service-filter a {
    display: inline-block;
    padding: 5px 15px;
    background-color: #f0f0f0;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.service-filter a:hover,
.service-filter a.active {
    background-color: #333;
    color: #fff;
}

/* Estilos para la vista individual de proyecto - Fullscreen */
.telepath-single-project-fullscreen {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Ajustes para compatibilidad con el tema Astra */
.telepath-single-project-fullscreen #main,
.telepath-single-project-fullscreen .site-main,
.telepath-single-project-fullscreen .content-area {
    margin: 0;
    padding: 0;
}

/* Ya no necesitamos ocultar el header y footer ya que usamos los del tema */

.telepath-project-fullscreen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Banner Section (80vh) */
.project-banner {
    height: 800px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;

}

.project-banner-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.project-banner .project-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

/* Navigation arrows */
.project-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.project-nav-prev {
    left: 30px;
}

.project-nav-next {
    right: 30px;
}

.nav-arrow {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Content Section - Altura automática */
.project-content-section {
    min-height: 20vh;
    background: white;
    padding: 0;
    overflow: visible;
}

.project-content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin: 0 auto;
    padding: 20px 40px;
}

.project-main-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.project-description-section h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.description-text {
    color: black;
    font-size: .875rem;
    line-height: 19px;
    margin-bottom: 15px;
}

.description-text p {
    margin: 0 0 10px 0;
    
}

/* Galería en carrusel horizontal */
.project-gallery-carousel {
    margin-top: 10px;
}

.gallery-carousel-container {
    overflow: hidden;
    width: 100%;
    height: 60px;
    border-radius: 4px;
}

.gallery-carousel-track {
    display: flex;
    animation: scroll-horizontal 25s linear infinite;
    height: 100%;
}

.gallery-carousel-item {
    flex-shrink: 0;
    width: 90px;
    height: 60px;
    margin-right: 10px;
    border-radius: 3px;
    overflow: hidden;
}

.gallery-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-carousel-item:hover img {
    transform: scale(1.05);
}

/* Mensaje cuando no hay galería */
.no-gallery-message {
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 4px;
    color: #666;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Metadata sidebar */
.project-metadata-sidebar {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 3rem;
    padding: 5px 1rem 0 0;
    
}

.metadata-item {
    display: flex;
    flex-direction: column;
}

.metadata-item h3 {
    text-transform: uppercase;
    font-size: 14px;
    font-weight: bold;
}

.metadata-value {
    color: black;
    font-size: .875rem;
    line-height: 19px;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .project-banner .project-title {
        font-size: 2.5rem;
    }
    
    .project-nav {
        width: 50px;
        height: 50px;
    }
    
    .project-nav-prev {
        left: 20px;
    }
    
    .project-nav-next {
        right: 20px;
    }
    
    .nav-arrow {
        font-size: 1.2rem;
    }
    
    .project-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px 20px;
    }
    
    .project-metadata-sidebar {
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }
    
    .metadata-item {
        min-width: 100px;
        flex: 1;
    }
    
    .gallery-carousel-item {
        width: 80px;
        height: 50px;
    }
    
    .gallery-carousel-container {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .project-banner .project-title {
        font-size: 2rem;
    }
    
    .project-content-section {
        height: auto;
        min-height: 20vh;
    }
}

/* Estilos para el grid de galería del proyecto */
.project-gallery-grid {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Estilos base para todos los rows */
.gallery-row {
    width: 100%;
    display: flex;
    gap: 20px;
}

/* Estilos base para todos los items */
.gallery-item {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.02);
}

/* ROW 1: Fullwidth - Aspect ratio 1200/800 */
.gallery-row-fullwidth {
    width: 100%;
}

.gallery-item-fullwidth {
    aspect-ratio: 1200/800;
}

/* ROW 2: Dos Medianas - Aspect ratio 590/400 cada una */
.gallery-row-two-medium {
    display: flex;
    gap: 20px;
}

.gallery-item-medium {
    aspect-ratio: 590/400;
    flex: 1;
}

/* ROW 3: Una Mediana + Dos Pequeñas */
.gallery-row-mixed {
    display: flex;
    gap: 20px;
}

.gallery-item-small-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex: 1;
}

.gallery-item-small {
    aspect-ratio: 285/400;
}

/* Video fullwidth */
.gallery-item-video {
    aspect-ratio: 16/9;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item-video iframe,
.gallery-item-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-video .embed-video {
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-item-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    border: none;
}

/* Responsive para tablets */
@media (max-width: 768px) {
    .project-gallery-grid {
        gap: 15px;
    }
    
    .gallery-row {
        gap: 15px;
    }
    
    .gallery-row-two-medium,
    .gallery-row-mixed {
        flex-direction: column;
    }
    
    .gallery-item-small-wrapper {
        gap: 15px;
    }
    
    /* Ajustar aspect ratios para móvil si es necesario */
    .gallery-item-fullwidth,
    .gallery-item-medium {
        aspect-ratio: 4/3;
    }
    
    .gallery-item-small {
        aspect-ratio: 4/3;
    }
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .project-gallery-grid {
        gap: 10px;
    }
    
    .gallery-row {
        gap: 10px;
    }
    
    .gallery-item-small-wrapper {
        gap: 10px;
    }
}

.proyecto-template-default .ast-container{background:white;}

/* Responsive */
@media (max-width: 768px) {
    #content .telepath-project-fullscreen{
        padding-left: 0!important;
        width:90%;
        margin: 0 5%;
    }
    .project-content-container {
        grid-template-columns: 1fr;
    }
    
    .telepath-projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

.telepath-projects-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.telepath-project-grid-item .project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.telepath-project-grid-item .project-thumbnail {
    position: relative;
    overflow: hidden;
    padding-top: 66.67%;
}

.telepath-project-grid-item .project-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.telepath-project-grid-item:hover .project-thumbnail img {
    transform: scale(1.03);
}

.telepath-project-grid-item .project-title {
    margin-top: 1rem;
    font-family: "Director", Sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .telepath-projects-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .telepath-projects-grid-3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.project-hero-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    padding: 170px 20px 20px 0px;
}

/* Padding adicional para pantallas más grandes */
@media (min-width: 2400px) {
    .project-hero-row {
        padding-top: 190px!important;
    }
}

.project-hero-media {
    width: 100%;
}

.project-hero-media .hero-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.project-hero-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.project-hero-info *{
    font-family: "FaktPro", Sans-serif;
}

.project-hero-title {
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
}

.project-hero-info .project-metadata-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

@media (max-width: 768px) {
    .project-hero-row {
        grid-template-columns: 1fr;
        gap: 20px;
        padding:0!important;
    }
}
