/* Producciones Escenia - Frontend Styles */

.pe-producciones {
    width: 100%;
    margin: 20px 0;
    max-width: 100% !important;
	padding: 25px;
}
.pe-producciones .swiper-pagination{
	bottom: -5px !important;
}
.pe-card {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Imagen con efecto hover */
.pe-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    overflow: hidden;
    background: #f0f0f0;
}

.pe-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.pe-img-secondary {
    opacity: 0;
}

.pe-card:hover .pe-img-primary {
    opacity: 0;
}

.pe-card:hover .pe-img-secondary {
    opacity: 1;
}

/* Contenido */
.pe-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.pe-card-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    color: #e74c3c;
}

.pe-card-subtitle {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
    text-align: center;
    color: #666;
}

.pe-card-description {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Redes sociales */
.pe-social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pe-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.pe-social-link:hover {
    transform: scale(1.1);
    background: #e0e0e0;
}

.pe-social-instagram:hover { background: #E1306C; color: white; }
.pe-social-youtube:hover { background: #FF0000; color: white; }
.pe-social-facebook:hover { background: #1877F2; color: white; }
.pe-social-tiktok:hover { background: #000000; color: white; }
.pe-social-web:hover { background: #4CAF50; color: white; }

/** enlace link more */
.link-more{
    display: block;
  width: auto;
  margin-left: auto;
  margin-right: auto;
}
/* Botón ver más */
.pe-btn-more {
    background: #a30707;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: background 0.3s ease;
    align-self: center;
    margin-top: auto;
}

.pe-btn-more:hover {
    background: #eff0f1;
    color: #000;
}

/* VISTA GRID */
.pe-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .pe-view-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .pe-view-grid {
        grid-template-columns: 1fr;
    }
}

/* VISTA LISTA */
.pe-view-lista {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pe-view-lista .pe-card {
    flex-direction: row;
    align-items: stretch;
}

.pe-view-lista .pe-card-image {
    width: 300px;
    min-width: 300px;
    padding-bottom: 0;
    height: auto;
}

.pe-view-lista .pe-card-image img {
    position: static;
}

@media (max-width: 768px) {
    .pe-view-lista .pe-card {
        flex-direction: column;
    }
    
    .pe-view-lista .pe-card-image {
        width: 100%;
        padding-bottom: 75%;
    }
    
    .pe-view-lista .pe-card-image img {
        position: absolute;
    }
}

/* VISTA SLIDER */
.pe-view-slider {
    position: relative;
}

.pe-slider-container {
    position: relative;
    overflow: hidden;
    padding: 0 50px;
}

.pe-slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px;
}

.pe-view-slider .pe-card {
    min-width: calc(33.333% - 14px);
    flex-shrink: 0;
}

.pe-slider-prev,
.pe-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.pe-slider-prev:hover,
.pe-slider-next:hover {
    background: rgba(0,0,0,0.8);
}

.pe-slider-prev {
    left: 5px;
}

.pe-slider-next {
    right: 5px;
}

.pe-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pe-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pe-slider-dot.active {
    background: #2271b1;
}

@media (max-width: 1024px) {
    .pe-view-slider .pe-card {
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .pe-view-slider .pe-card {
        min-width: 100%;
    }
    
    .pe-slider-container {
        padding: 0 40px;
    }
}

@media (max-width: 480px) {
    .pe-slider-container {
        padding: 0 30px;
    }
    
    .pe-slider-prev,
    .pe-slider-next {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}

/* Contenedor general */
.social-icons {
     display: flex;
    justify-content: center;   /* Centra horizontalmente */
    align-items: center;       /* Centra verticalmente */
    gap: 18px;
    width: 100%; 
}

/* Estilo base de los iconos */
.social-icons a {
    display: inline-flex;
    width: 32px;
    height: 32px;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto hover global */
.social-icons a:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Instagram: degradado y animación de giro */
.icon-instagram {
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}
.icon-instagram:hover {
    animation: insta-rotate 0.8s ease forwards;
}

@keyframes insta-rotate {
    0% { transform: rotate(0deg) scale(1.08); }
    100% { transform: rotate(360deg) scale(1.08); }
}

/* Facebook */
.icon-facebook {
    background: #1877f2;
}
.icon-facebook:hover {
    box-shadow: 0 0 15px #1877f2;
}

/* YouTube */
.icon-youtube {
    background: #ff0000;
}
.icon-youtube:hover {
    box-shadow: 0 0 15px #ff0000;
}

/* Web / Sitio */
.icon-web {
    background: #222;
}
.icon-web:hover {
    box-shadow: 0 0 15px #666;
}

/** swiperjs **/
.swiper-button-next, .swiper-button-prev{
     color: #FFF  !important;
}
.swiper-button-next::after, .swiper-rtl .swiper-button-prev::after{
    color: #FFF  !important;
}
.swiper-pagination-bullet-active{
    background: #FFF !important;
}