/**
 * Estilos para Producto con Tabs y Módulo de Citas
 * Theme Santé - Diseño basado en imagen de referencia
 */

/* ============================================
   BANNER DE IMAGEN
   ============================================ */
.product-image-banner {
    width: 100%;
    max-height: 300px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
}

.product-image-banner img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* ============================================
   DESCRIPCIÓN DEL PRODUCTO
   ============================================ */
.product-description-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #666;
}

.product-description-section p {
    margin-bottom: 15px;
}

.product-description-section p:last-child {
    margin-bottom: 0;
}

/* ============================================
   CARDS DE CARACTERÍSTICAS
   ============================================ */
.product-characteristics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.characteristic-card {
    background: white;
    border: 2px solid #E6E7E8;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
}

.characteristic-card:hover {
    border-color: #C41E3A;
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.15);
    transform: translateY(-3px);
}

.card-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: linear-gradient(135deg, #C41E3A, #9a1729);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    font-size: 1.5rem;
    color: white;
}

.card-content h4 {
    color: #666;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.card-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   TABS HORIZONTALES (removidos, pero se mantiene por compatibilidad)
   ============================================ */
.product-tabs-horizontal {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 30px;
}

.tabs-navigation {
    display: flex;
    background: #f5f5f5;
    border-bottom: 2px solid #E6E7E8;
    gap: 5px;
    padding: 5px;
}

.tab-button {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: rgba(196, 30, 58, 0.1);
    color: #C41E3A;
}

.tab-button.active {
    background: white;
    color: #C41E3A;
    border-bottom: 3px solid #C41E3A;
}

.tab-button i {
    font-size: 0.9rem;
}

/* Contenido de Tabs */
.tabs-content {
    padding: 30px;
    min-height: 250px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.tab-content-wrapper h3 {
    color: #666;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.tab-content-wrapper p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.duration-info,
.results-note {
    background: #f9f9f9;
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 4px solid #C41E3A;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.duration-info i,
.results-note i {
    color: #C41E3A;
    font-size: 1.1rem;
}

/* ============================================
   MÓDULO DE CITAS
   ============================================ */
.citas-module {
    background: white;
    border: 2px solid #E6E7E8;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.citas-module-title {
    color: #666;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #E6E7E8;
    text-align: center;
}

.citas-subtitle {
    color: #666;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 20px 0;
}

.citas-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Form Groups */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    color: #666;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #C41E3A;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E6E7E8;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #666;
    background: white;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #C41E3A;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

/* Variantes Radio Group */
.variantes-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border: 2px solid #E6E7E8;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.radio-option:hover {
    border-color: #C41E3A;
    background: rgba(196, 30, 58, 0.05);
}

.radio-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + .radio-label {
    color: #C41E3A;
    font-weight: 700;
}

.radio-label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.95rem;
}

.radio-label i {
    font-size: 0.7rem;
    color: #C41E3A;
}

.radio-label small {
    display: block;
    color: #C41E3A;
    font-weight: 700;
    margin-left: auto;
}

.radio-time {
    font-size: 0.85rem;
    color: #999;
}

/* ============================================
   SELECTOR DE MES Y CALENDARIO
   ============================================ */
.month-selector {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
}

.month-nav {
    background: none;
    border: none;
    color: #C41E3A;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.month-nav:hover {
    background: rgba(196, 30, 58, 0.1);
    border-radius: 5px;
}

.month-display {
    color: #666;
    font-weight: 700;
    font-size: 1rem;
}

/* Mini Calendario */
.mini-calendar {
    border: 2px solid #E6E7E8;
    border-radius: 8px;
    overflow: hidden;
    background: white;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: #f5f5f5;
    padding: 10px 5px;
    gap: 5px;
}

.calendar-header span {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
    padding: 10px 5px;
}

.day-cell {
    aspect-ratio: 1;
    border: none;
    background: white;
    border: 2px solid #E6E7E8;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-cell:hover:not(.disabled) {
    background: rgba(196, 30, 58, 0.1);
    border-color: #C41E3A;
    color: #C41E3A;
}

.day-cell.selected {
    background: linear-gradient(135deg, #7B9FE8, #5B8EE6);
    color: white;
    border-color: #5B8EE6;
}

.day-cell.disabled {
    background: #f5f5f5;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.5;
}

/* ============================================
   SELECTOR DE HORARIO
   ============================================ */
.time-selector-label {
    color: #666;
    font-weight: 600;
    font-size: 0.95rem;
    margin: 15px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.time-selector-label i {
    color: #28a745;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.time-slot {
    padding: 10px 15px;
    border: 2px solid #E6E7E8;
    border-radius: 6px;
    background: white;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.time-slot:hover {
    background: rgba(196, 30, 58, 0.1);
    border-color: #C41E3A;
    color: #C41E3A;
}

.time-slot.selected {
    background: linear-gradient(135deg, #7B9FE8, #5B8EE6);
    color: white;
    border-color: #5B8EE6;
}

/* ============================================
   RESUMEN Y PRECIO
   ============================================ */
.citas-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 10px;
}

.citas-summary h4 {
    color: #666;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #666;
    font-size: 0.95rem;
}

.summary-row.total {
    border-top: 2px solid #E6E7E8;
    margin-top: 10px;
    padding-top: 15px;
    font-size: 1.1rem;
}

.summary-row strong {
    color: #C41E3A;
    font-weight: 700;
}

.summary-row.total strong {
    font-size: 1.3rem;
}

/* ============================================
   LLAMADA A LA ACCIÓN (CTA)
   ============================================ */
.citas-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 15px;
    border-top: 2px solid #E6E7E8;
}

.citas-cta > strong {
    color: #666;
    font-size: 0.95rem;
    text-align: center;
}

.citas-cta-button {
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(135deg, #7B9FE8, #5B8EE6);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(91, 142, 230, 0.3);
}

.citas-cta-button:hover {
    background: linear-gradient(135deg, #5B8EE6, #4A7DD5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 142, 230, 0.4);
}

.citas-cta-button i {
    font-size: 1.1rem;
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .product-chopo-layout {
        grid-template-columns: 1fr;
    }
    
    .citas-module {
        order: 1;
    }
}

@media (max-width: 768px) {
    .tabs-navigation {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1 1 calc(50% - 5px);
        min-width: 150px;
    }
    
    .tabs-content {
        padding: 20px 15px;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr);
    }
    
    .time-slots {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tab-button {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    
    .citas-module {
        padding: 15px;
    }
    
    .day-cell {
        font-size: 0.8rem;
    }
}

/* ============================================
   AJUSTE ADICIONAL PARA COLORES DEL TEMA
   ============================================ */

/* Usar colores corporativos del theme */
:root {
    --citas-primary: #7B9FE8;    /* Azul para botones de cita */
    --citas-primary-dark: #5B8EE6;
    --theme-primary: #C41E3A;     /* Rojo corporativo */
    --theme-secondary: #6D6E71;   /* Gris corporativo */
    --theme-light: #E6E7E8;       /* Gris claro */
    --theme-success: #28a745;     /* Verde para disponibilidad */
}

/* Mantener coherencia con el resto del sitio */
.product-category-label {
    background: #f5f5f5;
    color: #666;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: inline-block;
}


/* ============================================
   RESPONSIVE PARA CARDS
   ============================================ */
@media (max-width: 768px) {
    .product-characteristics-cards {
        grid-template-columns: 1fr;
    }
    
    .product-description-section {
        padding: 15px;
    }
    
    .characteristic-card {
        padding: 15px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .product-characteristics-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
