/* ========================================
   ESTILOS PARA PÁGINA DE PRODUCTO INDIVIDUAL
   ======================================== */

/* Estilos personalizados para la página de producto */
.custom-product-header {
    background: linear-gradient(180deg, #082146 0%, rgb(8, 186, 88) 80%);
    color: white;
    padding: 60px 0 40px;
    margin-bottom: 0;
}

.custom-product-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.custom-product-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: white;
    max-width: 50%;
}

.custom-product-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 60%;
}

.custom-product-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.custom-instructor-image {
    margin-bottom: 15px;
    text-align: center;
}

.custom-instructor-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.custom-instructor {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-instructor img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.custom-categories {
    display: flex;
    align-items: center;
    gap: 30px;
}

.custom-categories a {
    color: #fff;
}

.custom-categories::before {
    content: '';
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.3);
}

/* Estilos para el rating en el header */
.custom-rating {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 30px;
}

.custom-rating::before {
    content: '';
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.3);
}

.custom-rating-stars-header {
    display: flex;
    gap: 2px;
}

.custom-rating-stars-header i {
    color: #fbbf24;
    font-size: 1rem;
}

.custom-rating-text-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.custom-rating-number-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.custom-rating-count-header {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

/* Estilos para la sección del instructor */
.custom-instructor-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.custom-instructor-section {
    display: flex;
    align-items: flex-start;
    gap: 25px;
}

.custom-instructor-photo {
    flex-shrink: 0;
}

.custom-instructor-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.custom-instructor-info {
    flex: 1;
    text-align: left;
}

.custom-instructor-name {
    color: #1d2530;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.custom-instructor-bio {
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
}

.custom-instructor-bio p {
    margin-bottom: 12px;
}

.custom-instructor-bio p:last-child {
    margin-bottom: 0;
}

/* Layout principal */
.custom-product-layout {
    background: #f7f7f8;
    min-height: 100vh;
}

.custom-product-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 10px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: start;
}

/* Columna izquierda - Descripción */
.custom-product-description {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.custom-section-title {
    color: #1d2530;
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 60px;
    margin-bottom: 20px;
}

.custom-duration {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 25px;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.custom-content-description {
    color: #334155;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    padding: 20px;
}

.custom-content-description p {
    margin-bottom: 15px;
    color: #334155;
    line-height: 1.7;
}

.custom-content-description p:last-child {
    margin-bottom: 0;
}

.custom-content-description h1,
.custom-content-description h2,
.custom-content-description h3,
.custom-content-description h4,
.custom-content-description h5,
.custom-content-description h6 {
    color: #1e3a8a;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.custom-content-description ul,
.custom-content-description ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.custom-content-description li {
    margin-bottom: 5px;
    line-height: 1.6;
}

.custom-content-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-content-list li {
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    line-height: 1.6;
    color: #334155;
}

.custom-content-list li:last-child {
    border-bottom: none;
}

.custom-content-list li::before {
    content: '•';
    color: #1d2530;
    font-weight: bold;
    margin-right: 10px;
}

/* Columna derecha - Información del producto */
.custom-product-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15), 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    position: sticky;
    top: 155px;
    margin-top: -320px;
    z-index: 10;
    transition: all 0.3s ease;
}

/* Efecto cuando está anclado */
.custom-product-sidebar.is-sticky {
    box-shadow: 0 15px 35px rgba(0,0,0,0.2), 0 8px 15px rgba(0,0,0,0.15);
    transform: translateY(5px);
}

.custom-product-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.custom-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* .custom-image-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fbbf24;
    color: #1e3a8a;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
} */

.custom-product-info {
    padding: 30px;
}

.custom-price-label {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.custom-price {
    color: #1e3a8a;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
}

/* Mensaje "Empieza HOY" / "Empieza mañana" (cuando faltan menos de 48h) */
.custom-countdown-message {
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 12px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
}
.countdown-message-hoy {
    background: #dcfce7;
    border: 2px solid #08ba58;
    color: #166534;
}
.countdown-message-manana {
    background: #e0f2fe;
    border: 2px solid #0284c7;
    color: #0369a1;
}

.countdown-message-dos-dias {
    background: #e0f2fe;
    border: 2px solid #0284c7;
    color: #0369a1;
}

/* Estilos para el countdown */
.custom-countdown {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.countdown-title {
    color: #1d2530;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-number {
    color: #1d2530;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-label {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-buy-button {
    background: #08ba58;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.custom-buy-button:hover {
    background: rgb(6, 134, 63);
    transform: translateY(-2px);
}

.custom-out-of-stock {
    background: #dd3333;
    color: white;
    border: none;
    padding: 20px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    text-align: center;
    margin-bottom: 25px;
    cursor: not-allowed;
    opacity: 0.9;
    line-height: 1.4;
}

.custom-coming-soon {
    font-size: 1.4rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 25px;
}

.custom-product-stats {
    list-style: none;
    padding-left: 15px;
    margin: 0;
}

.custom-product-stats li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #1d2530;
    font-size: 1.1rem;
}

.custom-product-stats li:last-child {
    border-bottom: none;
}

.custom-product-stats i {
    width: 20px;
    color: #1d2530;
}

.custom-social-share {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px 0;
    border-top: 1px solid #f1f5f9;
    margin-top: 20px;
}

.custom-social-share a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

/* a.icon-circle:hover, a.remove:hover, a:hover {
    color: white!important;
} */

.custom-social-share a:hover {
    transform: scale(1.1);
}

.custom-social-share .facebook {
    background: #1877f2;
}

.custom-social-share .twitter {
    background: #1da1f2;
}

/* Estilos para medios de pago */
.custom-payment-methods {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 25px 20px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.payment-title {
    color: #1d2530;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 15px;
    margin-top: 0;
}

.payment-logos {
    margin-bottom: 12px;
}

.payment-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
}

.payment-subtitle {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

/* Estilos para calificaciones de clientes */
.custom-product-reviews {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-top: 30px;
}

.custom-reviews-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.custom-average-rating {
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-rating-stars {
    display: flex;
    gap: 2px;
    margin-top: -57px;
}

.custom-rating-stars i {
    color: #fbbf24;
    font-size: 1.2rem;
}

.custom-rating-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.custom-rating-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d2530;
}

.custom-rating-total {
    font-size: 0.9rem;
    color: #64748b;
}

.custom-review-count {
    font-size: 0.9rem;
    color: #64748b;
}

.custom-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.custom-review-item {
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    margin-bottom: 5px;
}

.custom-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.custom-review-author {
    color: #1d2530;
    font-size: 1rem;
}

.custom-review-rating {
    display: flex;
    gap: 1px;
}

.custom-review-rating i {
    color: #fbbf24;
    font-size: 0.9rem;
}

.custom-review-content {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 10px;
}

.custom-review-date {
    font-size: 0.8rem;
    color: #94a3b8;
}

.custom-reviews-more {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.custom-reviews-link {
    color: #08ba58;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.custom-reviews-link:hover {
    color: #059669;
}

.custom-no-reviews {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-style: italic;
}

/* Estilos para el mensaje de oferta */
.oferta-notification {
    background-color: rgb(250, 255, 223);
    border-color: rgb(218, 230, 57);
    border-width: 1px;  
    border-style: solid;
    color: #292d32;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    text-align: left;
    font-size: 1rem;
    line-height: 1.4;
    transition: all 0.3s ease;
}

/* Estilos para el countdown */
.custom-countdown {
    color: white;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(206, 206, 206, 0.3);
    margin-bottom: 25px;
}

.countdown-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-timer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.countdown-number {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 4px;
    border-radius: 6px;
    min-width: 40px;
    display: inline-block;
    text-align: center;
}

.countdown-label {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 5px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ocultar countdown cuando la semana llegue a 0 */
.custom-countdown.hide-weeks .countdown-item:first-child {
    display: none;
}

/* Ocultar countdown cuando los días lleguen a 0 */
.custom-countdown.hide-days .countdown-item:nth-child(2) {
    display: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .custom-product-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .custom-product-description {
        padding: 10px;
    }
    
    .custom-product-sidebar {
        order: -1;
        margin-top: -60px;
        top: 80px;
        position: static;
        z-index: auto;
    }
    
    .custom-product-description {
        order: 1;
    }
    
    .custom-product-header {
        padding: 40px 0 30px;
    }
    
    .custom-product-title {
        font-size: 2rem;
    }
    
    .custom-product-meta {
        flex-direction: row;
        align-items: center;
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .custom-categories::before {
        display: none;
    }
    
    .custom-rating::before {
        display: none;
    }
    
    .custom-rating {
        margin-top: 10px;
    }
    
    .custom-product-subtitle {
        max-width: 100%;
    }
    
    .custom-product-title {
        max-width: 100%;
        font-size: 2rem;
    }
    
    /* En mobile, la descripción aparece antes de los reviews */
    .custom-product-description {
        order: 1;
    }
    
    .custom-product-reviews {
        order: 2;
        padding: 10px !important;
    }

    /* Responsive para la sección del instructor */
    .custom-instructor-container {
        padding: 15px;
    }
    
    .custom-instructor-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .custom-instructor-photo img {
        width: 100px;
        height: 100px;
    }
    
    .custom-instructor-name {
        font-size: 1.2rem;
    }

    /* Responsive para calificaciones */
    .custom-reviews-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .custom-review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* Responsive para countdown */
    .countdown-timer {
        gap: 5px;
    }
    
    .countdown-number {
        font-size: 1.4rem;
        min-width: 35px;
        padding: 6px 2px;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
}
