/**
 * Estilos para Página de Producto Individual (Sin Imagen)
 * Theme Santé
 */

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */

.single-product-sante {
    background: transparent;
    padding: 0;
    margin-bottom: 40px;
}

.woocommerce div.product {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

/* Ocultar galería de imágenes */
.single-product .woocommerce-product-gallery {
    display: none !important;
}

/* Breadcrumb - Fuera del contenedor blanco */
.product-breadcrumb-outside {
    margin-bottom: 5px;
    padding: 5px 0;
}

.product-breadcrumb-outside .woocommerce-breadcrumb {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.product-breadcrumb-outside .woocommerce-breadcrumb a {
    color: #C41E3A;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-breadcrumb-outside .woocommerce-breadcrumb a:hover {
    color: #9a1729;
    text-decoration: underline;
}

/* ============================================
   CONTENEDOR DE CONTENIDO
   ============================================ */

.product-content-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
}

.product-info-full {
    padding: 40px;
}

/* ============================================
   HEADER DEL PRODUCTO
   ============================================ */

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 30px;
    border-bottom: 3px solid #E6E7E8;
    margin-bottom: 40px;
}

.product-header-left {
    flex: 1;
}

.product-header-right {
    display: flex;
    gap: 10px;
}

/* Título */
.product-title {
    color: #6D6E71;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px 0;
}

/* Categorías */
.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f0f0;
    color: #6D6E71;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.category-badge i {
    color: #C41E3A;
}

/* Badges */
.product-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-badges [class*="badge-"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.badge-sale {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
}

.badge-virtual {
    background: linear-gradient(135deg, #28a745, #20893a);
    color: white;
}

.badge-featured {
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #333;
}

/* ============================================
   GRID PRINCIPAL (2 COLUMNAS)
   ============================================ */

.product-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

/* ============================================
   COLUMNA IZQUIERDA - DESCRIPCIÓN
   ============================================ */

.product-description-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Precio */
.product-price-box {
    background: linear-gradient(135deg, #fff5f7, #ffe5ea);
    border: 3px solid #C41E3A;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
}

.product-price-box .price {
    color: #C41E3A;
    font-size: 3.5rem;
    font-weight: 700;
    display: block;
    margin: 0;
}

.product-price-box .price del {
    color: #999;
    font-size: 2rem;
    opacity: 0.7;
    margin-right: 10px;
}

.product-price-box .price ins {
    text-decoration: none;
}

/* Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.star-rating {
    color: #ffc107;
}

/* Descripción Corta */
.product-short-description {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #C41E3A;
}

.product-short-description h3 {
    color: #6D6E71;
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-short-description h3 i {
    color: #C41E3A;
}

.product-short-description p {
    margin: 0 0 10px 0;
    line-height: 1.8;
    color: #666;
}

.product-short-description p:last-child {
    margin-bottom: 0;
}

/* Información Rápida del Estudio */
.study-quick-info {
    background: white;
    border: 2px solid #E6E7E8;
    border-radius: 12px;
    padding: 25px;
}

.study-quick-info h3 {
    color: #6D6E71;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.study-quick-info h3 i {
    color: #C41E3A;
}

.study-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.study-info-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.info-icon-small {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #C41E3A, #9a1729);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon-small i {
    font-size: 1.3rem;
    color: white;
}

.info-content strong {
    display: block;
    color: #6D6E71;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.info-content p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* Meta Información */
.product-meta-info {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 12px;
}

.product-meta-info h3 {
    color: #6D6E71;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-meta-info h3 i {
    color: #C41E3A;
}

.product-meta-info .meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #666;
    font-size: 0.95rem;
}

.product-meta-info .meta-item:not(:last-child) {
    border-bottom: 1px solid #E6E7E8;
}

.product-meta-info .meta-item i {
    color: #C41E3A;
    width: 20px;
    text-align: center;
}

.product-meta-info .meta-item strong {
    color: #6D6E71;
    min-width: 90px;
}

.product-meta-info .meta-item a {
    color: #C41E3A;
    text-decoration: none;
}

.product-meta-info .meta-item a:hover {
    text-decoration: underline;
}

/* ============================================
   COLUMNA DERECHA - ACCIONES
   ============================================ */

.product-actions-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Caja de Acciones Principal */
.product-actions-box {
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    border: 3px solid #C41E3A;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.15);
}

.product-actions-box h3 {
    color: #6D6E71;
    font-size: 1.4rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-actions-box h3 i {
    color: #C41E3A;
}

/* Formulario de añadir al carrito */
.product-actions-box form.cart {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-actions-box .single_add_to_cart_button {
    background: linear-gradient(135deg, #C41E3A, #9a1729) !important;
    color: white !important;
    border: none !important;
    padding: 18px 40px !important;
    border-radius: 10px !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.3) !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.product-actions-box .single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #9a1729, #7a1220) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4) !important;
}

/* Garantías */
.product-guarantees {
    background: white;
    border: 2px solid #E6E7E8;
    border-radius: 12px;
    padding: 25px;
}

.product-guarantees h4 {
    color: #6D6E71;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-guarantees h4 i {
    color: #28a745;
}

.guarantees-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.guarantee-item:hover {
    background: #e8f5e9;
}

.guarantee-item i {
    font-size: 1.2rem;
    color: #28a745;
}

.guarantee-item span {
    font-weight: 600;
    color: #6D6E71;
    font-size: 0.95rem;
}

/* Compartir en Redes */
.product-share {
    background: white;
    border: 2px solid #E6E7E8;
    border-radius: 12px;
    padding: 20px;
}

.product-share strong {
    display: block;
    color: #6D6E71;
    margin-bottom: 15px;
    font-size: 1rem;
}

.product-share strong i {
    color: #C41E3A;
    margin-right: 8px;
}

.share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.share-btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.email {
    background: #6D6E71;
}

/* Información de Contacto */
.contact-info-box {
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    border: 2px solid #E6E7E8;
    border-radius: 12px;
    padding: 25px;
}

.contact-info-box h4 {
    color: #6D6E71;
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-box h4 i {
    color: #C41E3A;
}

.contact-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
}

.contact-item:not(:last-child) {
    border-bottom: 1px solid #E6E7E8;
}

.contact-item i {
    font-size: 1rem;
    color: white;
    width: 30px;
    text-align: center;
}

.contact-item strong {
    display: block;
    color: #6D6E71;
    margin-bottom: 5px;
    font-size: 1rem;
}

.contact-item p {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   TABS DE INFORMACIÓN
   ============================================ */

.product-tabs-container {
    margin: 60px 0;
}

.woocommerce-tabs {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.woocommerce-tabs .tabs {
    display: flex;
    background: #f9f9f9;
    border-bottom: 2px solid #E6E7E8;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce-tabs .tabs li {
    flex: 1;
}

.woocommerce-tabs .tabs li a {
    display: block;
    padding: 20px 30px;
    text-align: center;
    color: #6D6E71;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.woocommerce-tabs .tabs li a:hover {
    background: white;
    color: #C41E3A;
}

.woocommerce-tabs .tabs li.active a {
    background: white;
    color: #C41E3A;
    border-bottom-color: #C41E3A;
}

.woocommerce-tabs .panel {
    padding: 40px;
    line-height: 1.8;
}

.woocommerce-tabs .panel h2 {
    color: #6D6E71;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

/* ============================================
   PRODUCTOS RELACIONADOS
   ============================================ */

.related-products-container {
    margin-top: 60px;
}

.related.products h2 {
    text-align: center;
    color: #6D6E71;
    font-size: 2.5rem;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.related.products h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #C41E3A, #6D6E71);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .product-main-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .product-price-box .price {
        font-size: 2.5rem;
    }
    
    .guarantee-item span {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .single-product-sante {
        padding: 20px;
    }
    
    .product-title {
        font-size: 1.8rem;
    }
    
    .product-price-box {
        padding: 20px;
    }
    
    .product-price-box .price {
        font-size: 2rem;
    }
    
    .product-guarantees {
        grid-template-columns: 1fr;
    }
    
    .product-actions .cart {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-actions .quantity {
        justify-content: center;
    }
    
    .woocommerce-tabs .tabs {
        flex-direction: column;
    }
    
    .woocommerce-tabs .tabs li a {
        padding: 15px 20px;
        text-align: left;
    }
    
    .woocommerce-tabs .panel {
        padding: 25px;
    }
    
    .product-share {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 1.5rem;
    }
    
    .flex-control-thumbs li {
        width: calc(25% - 8px);
    }
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.single-product-sante {
    animation: fadeIn 0.6s ease-out;
}


/* ============================================
   MEJORAS ESPECÍFICAS PARA FORMULARIO DE CITAS
   ============================================ */

/* Botón Agendar Cita personalizado */
.product-actions button[type="submit"],
.product-actions .single_add_to_cart_button {
    background: linear-gradient(135deg, #C41E3A, #9a1729) !important;
    color: white !important;
    border: none !important;
    padding: 15px 40px !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3) !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

.product-actions button[type="submit"]:hover,
.product-actions .single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #9a1729, #7a1220) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4) !important;
}

/* Campos del formulario de cita */
.product-actions input[type="date"],
.product-actions input[type="time"],
.product-actions input[type="text"],
.product-actions input[type="number"],
.product-actions select {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 2px solid #E6E7E8 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    color: #333 !important;
    background-color: #fff !important;
    transition: all 0.3s ease !important;
    margin-bottom: 15px !important;
}

.product-actions input[type="date"]:focus,
.product-actions input[type="time"]:focus,
.product-actions input[type="text"]:focus,
.product-actions input[type="number"]:focus,
.product-actions select:focus {
    border-color: #C41E3A !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1) !important;
}

/* Labels del formulario */
.product-actions label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: #6D6E71 !important;
    font-size: 0.95rem !important;
}

/* Campos requeridos */
.product-actions .required {
    color: #C41E3A !important;
}

/* Info boxes dentro del formulario (Preparación, Duración) */
.product-actions .info-box,
.product-actions [class*="preparacion"],
.product-actions [class*="duracion"] {
    background: #fff9e6 !important;
    border-left: 4px solid #ffc107 !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    margin-bottom: 15px !important;
    font-size: 0.9rem !important;
}

.product-actions .info-box i,
.product-actions [class*="preparacion"] i,
.product-actions [class*="duracion"] i {
    color: #ffc107 !important;
    margin-right: 8px !important;
}

/* Contenedor del formulario */
.product-actions form {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

/* Ajustes para cantidad si es visible */
.product-actions .quantity {
    display: flex !important;
    align-items: center !important;
    border: 2px solid #E6E7E8 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    width: 120px !important;
    margin-bottom: 15px !important;
}

.product-actions .quantity input[type="number"] {
    width: 100% !important;
    text-align: center !important;
    border: none !important;
    padding: 10px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0 !important;
}

/* Variaciones de producto */
.product-actions .variations {
    margin-bottom: 20px !important;
}

.product-actions .variations td {
    padding: 10px 0 !important;
}

.product-actions .variations select {
    width: 100% !important;
}

/* Reset para inputs en el formulario de citas */
.product-actions .cart input[type="date"],
.product-actions .cart input[type="time"] {
    padding: 12px 15px !important;
    height: auto !important;
    line-height: normal !important;
}

/* ============================================
   AJUSTES PARA BADGE "CITA ONLINE"
   ============================================ */

.badge-virtual,
.cita-online-badge {
    background: linear-gradient(135deg, #28a745, #20893a) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3) !important;
}

/* ============================================
   MEJORAS PARA DESCRIPCIÓN CORTA
   ============================================ */

.woocommerce-product-details__short-description {
    background: #f9f9f9 !important;
    padding: 20px !important;
    border-radius: 10px !important;
    border-left: 4px solid #C41E3A !important;
    line-height: 1.8 !important;
    color: #666 !important;
    margin-bottom: 25px !important;
}

.woocommerce-product-details__short-description p {
    margin: 0 0 10px 0 !important;
}

.woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0 !important;
}

/* ============================================
   AJUSTES PARA IMAGEN DEL PRODUCTO
   ============================================ */

.woocommerce-product-gallery__wrapper {
    border-radius: 15px !important;
    overflow: hidden !important;
}

.woocommerce-product-gallery__image img {
    border-radius: 15px !important;
}

/* Badge "Cita Online" sobre la imagen */
.woocommerce-product-gallery__image .onsale {
    background: linear-gradient(135deg, #28a745, #20893a) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: 25px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* ============================================
   MEJORAS RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .woocommerce div.product {
        padding: 20px;
    }
    
    .product-actions {
        padding: 20px;
    }
    
    .product-actions button[type="submit"],
    .product-actions .single_add_to_cart_button {
        padding: 12px 30px !important;
        font-size: 1rem !important;
    }
}

/* ============================================
   OCULTAR ELEMENTOS NO NECESARIOS EN ESTUDIOS
   ============================================ */

/* Ocultar SKU si no es necesario */
body.single-product .product_meta .sku_wrapper {
    display: none;
}

/* Ajustar meta info */
.product_meta {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
}

.product_meta > span {
    display: block;
    padding: 8px 0;
    color: #666;
    font-size: 0.9rem;
}

.product_meta > span:not(:last-child) {
    border-bottom: 1px solid #E6E7E8;
}

.product_meta a {
    color: #C41E3A;
    text-decoration: none;
}

.product_meta a:hover {
    text-decoration: underline;
}

/* ============================================
   AJUSTES FINALES DE ESPACIADO
   ============================================ */

.summary.entry-summary {
    padding: 20px;
}

.summary.entry-summary > * {
    margin-bottom: 20px;
}

.summary.entry-summary > *:last-child {
    margin-bottom: 0;
}
