/* Estilos inline temporales - luego los movemos a product.css */
.product-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: start; /* Alinear arriba */
}

/* Galería */
.product-gallery {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.gallery-main {
    position: relative;
    margin-bottom: 20px;
    border-radius: 20px;
    overflow: hidden;
    background: #f5f5f5;
}

.gallery-main img,
.gallery-main video {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-video-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.gallery-thumb {
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    background: #f5f5f5;
    aspect-ratio: 1;
}

.gallery-thumb.active {
    opacity: 1;
    box-shadow: 0 0 0 3px var(--kk-primary);
}

.gallery-thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.gallery-thumb img,
.gallery-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info del producto */
.product-info {
    padding-top: 20px;
}

.product-title {
    font-family: var(--kk-font-heading);
    font-size: 2.5rem;
    color: var(--kk-dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 1.125rem;
    color: #666;
    margin-bottom: 20px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #FFD700;
}

.rating-text {
    color: #666;
    font-size: 14px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 30px;
}

.price-current {
    font-size: 2rem;
    font-weight: 700;
    color: var(--kk-primary);
}

.price-original {
    font-size: 1.5rem;
    color: #999;
    text-decoration: line-through;
}

.price-save {
    background: var(--kk-terracotta);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* Features */
.product-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
    padding: 30px;
    background: var(--kk-light);
    border-radius: 20px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.feature-title {
    font-weight: 600;
    color: var(--kk-dark);
    margin-bottom: 5px;
}

.feature-desc {
    font-size: 14px;
    color: #666;
}

/* Formulario de compra */
.product-form {
    padding: 30px;
    background: white;
    border: 2px solid var(--kk-primary);
    border-radius: 20px;
    margin: 30px 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--kk-dark);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--kk-primary);
    background: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--kk-primary);
    color: white;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
}

/* Apoya al equipo */
.support-team,
.support-block {
    background: linear-gradient(135deg, #FFE5E5, #FFF5E5);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
}

.support-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.support-title {
    font-weight: 600;
    color: var(--kk-dark);
}

.support-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.support-option {
    padding: 10px;
    background: white;
    border: 2px solid transparent;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.support-option:hover {
    border-color: var(--kk-primary);
}

.support-option.selected {
    background: var(--kk-primary);
    color: white;
    border-color: var(--kk-primary);
}

.add-to-cart-btn {
    width: 100%;
    padding: 18px;
    background: var(--kk-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.add-to-cart-btn:hover {
    background: var(--kk-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Garantías */
.product-guarantees {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 15px;
    margin-top: 30px;
}

.guarantee {
    text-align: center;
    font-size: 14px;
}

.guarantee-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

/* Tabs de información */
.product-tabs {
    margin: 80px 0;
}

.tabs-nav {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 40px;
}

.tab-link {
    padding: 15px 0;
    color: #999;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
}

.tab-link.active {
    color: var(--kk-primary);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--kk-primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Reviews */
.reviews-section {
    margin: 80px 0;
}

.reviews-header {
    text-align: center;
    margin-bottom: 50px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--kk-secondary);
}

.review-name {
    font-weight: 600;
}

.review-date {
    font-size: 12px;
    color: #999;
}

.review-rating {
    margin-bottom: 15px;
}

.review-text {
    line-height: 1.6;
    color: #666;
}

/* Responsive */
@media (min-width: 600px) and (max-width: 899px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SECCIÓN DE COMENTARIOS Y RESEÑAS - MEJORADA
   ========================================================================== */

/* Contenedor principal de comentarios */
#reviews {
    margin: 80px auto;
    max-width: 1200px;
    padding: 3rem;
    border: 2px solid #f4f4f4;
    border-radius: 20px;
}

#reviews .woocommerce-Reviews-title {
    font-size: 2.2rem;
    color: var(--kk-dark, #2c3e50);
    margin-bottom: 15px;
    font-weight: 600;
}

/* Lista de comentarios/reseñas */
#comments {
    margin-bottom: 60px;
}

.woocommerce-Reviews {
    background: #fff;
}

.commentlist {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.commentlist .comment {
    padding: 30px;
    margin-bottom: 25px;
    background: #f9fafb;
    border-radius: 15px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.commentlist .comment:hover {
    border-color: var(--kk-primary, #7FCDCD);
    box-shadow: 0 4px 12px rgba(127, 205, 205, 0.1);
    transform: translateY(-2px);
}

.commentlist .comment .comment-text {
    margin-top: 15px;
}

/* Encabezado del comentario */
.comment_container {
    display: block;
}

.commentlist .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.commentlist .meta strong {
    font-size: 1.1rem;
    color: var(--kk-dark, #2c3e50);
    font-weight: 600;
}

.commentlist .meta .woocommerce-review__published-date {
    color: #999;
    font-size: 0.9rem;
}

.commentlist .meta .woocommerce-review__verified {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.commentlist .meta .woocommerce-review__verified::before {
    content: "✓";
    font-weight: bold;
}

/* Estrellas de valoración */
.commentlist .star-rating {
    float: none !important;
    display: inline-flex;
    margin-bottom: 15px;
}

.star-rating {
    position: relative;
    height: 1.2em;
    line-height: 1.2;
    font-size: 1.2em;
    width: 6em;
    font-family: star;
    font-weight: 400;
}

.star-rating::before {
    content: "★★★★★";
    color: #e0e0e0;
    letter-spacing: 0.1em;
}

.star-rating span {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    padding-top: 0;
}

.star-rating span::before {
    content: "★★★★★";
    color: #ffd700;
    letter-spacing: 0.1em;
}

/* Texto del comentario */
.commentlist .description {
    line-height: 1.8;
    color: #4b5563;
    font-size: 1rem;
    margin-top: 15px;
}

.commentlist .description p {
    margin-bottom: 15px;
}

/* Avatar del usuario */
.commentlist img.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    float: left;
    border: 3px solid var(--kk-primary, #7FCDCD);
}

/* Formulario de comentarios/reseñas */
#review_form_wrapper {
    background: #f9fafb;
    padding: 40px;
    border-radius: 20px;
    border: 2px solid #e5e7eb;
    margin-top: 40px;
}

#review_form_wrapper #reply-title {
    font-size: 1.8rem;
    color: var(--kk-dark, #2c3e50);
    margin-bottom: 25px;
    font-weight: 600;
}

#review_form_wrapper .comment-reply-title {
    font-size: 1.8rem;
    color: var(--kk-dark, #2c3e50);
    margin-bottom: 25px;
}

/* Formulario */
#commentform {
    margin: 0;
}

#commentform .comment-form-rating {
    margin-bottom: 25px;
}

#commentform .comment-form-rating label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--kk-dark, #2c3e50);
}

#commentform .stars {
    display: flex;
    gap: 8px;
}

#commentform .stars a {
    font-size: 1.8rem;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s ease;
}

#commentform .stars a:hover,
#commentform .stars a.active {
    color: #ffd700;
    transform: scale(1.2);
}

#commentform p {
    margin-bottom: 25px;
}

#commentform label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--kk-dark, #2c3e50);
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform textarea:focus {
    outline: none;
    border-color: var(--kk-primary, #7FCDCD);
    box-shadow: 0 0 0 3px rgba(127, 205, 205, 0.1);
}

#commentform textarea {
    min-height: 150px;
    resize: vertical;
}

#commentform .form-submit {
    margin: 0;
}

#commentform .submit {
    background: var(--kk-primary, #7FCDCD);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#commentform .submit:hover {
    background: var(--kk-dark, #2c3e50);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Mensaje cuando no hay reseñas */
.woocommerce-noreviews {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 15px;
    color: #6b7280;
    font-size: 1.1rem;
    margin: 40px 0;
}

/* Responsive para comentarios */
@media (min-width: 600px) and (max-width: 899px) {
    #reviews {
        margin: 40px auto;
    }
    
    #reviews .woocommerce-Reviews-title {
        font-size: 1.8rem;
    }
    
    .commentlist .comment {
        padding: 20px;
    }
    
    .commentlist img.avatar {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    #review_form_wrapper {
        padding: 25px;
    }
    
    #review_form_wrapper #reply-title {
        font-size: 1.5rem;
    }
    
    #commentform input[type="text"],
    #commentform input[type="email"],
    #commentform textarea {
        padding: 12px 15px;
    }
}