/**
 * Estilos específicos para fichas.php - Detalle de producto
 */

.product-detail {
    max-width: var(--max-width);
    width: 100%;
    margin: 2rem auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.product-main {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--bg-color);
    cursor: zoom-in;
    border: 2px solid var(--border-color);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

.main-image-container:hover .main-image {
    transform: scale(1.08);
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
    gap: 0.75rem;
    max-width: 100%;
}

.thumbnail {
    aspect-ratio: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid var(--border-color);
    transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(225, 33, 30, 0.2);
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details h1 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-availability {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.product-availability.available {
    background: #d4edda;
    color: #155724;
}

.product-availability.unavailable {
    background: #f8d7da;
    color: #721c24;
}

.product-meta-detail {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-action {
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-align: center;
}

.btn-call {
    background: #28a745;
    color: white;
}

.btn-call:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-email {
    background: #007bff;
    color: white;
}

.btn-email:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-share {
    background: var(--secondary-color);
    color: white;
}

.btn-share:hover {
    background: #1a252f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.3);
}

.product-description {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 4rem;
}

.product-description h2 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.product-description p,
.product-description ul {
    line-height: 1.8;
    color: var(--text-color);
}

.product-description ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
}

.modal-gallery {
    max-width: 90vw;
}

.modal-gallery .modal-body {
    padding: 1rem;
}

.modal-gallery img {
    width: 100%;
    height: auto;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.gallery-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.share-options .btn {
    padding: 1rem;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .product-detail {
        padding: 0 1rem;
    }
    
    .product-main {
        padding: 1.5rem;
    }
    
    .product-details h1 {
        font-size: 1.5rem;
    }
    
    .product-price-large {
        font-size: 2rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .share-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .breadcrumb {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }
}

/* Responsive mejorado para miniaturas */
@media (max-width: 1024px) {
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}

@media (max-width: 768px) {
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }
    
    .product-gallery {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .thumbnails-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }
}
/* ===================================
   EXTRAS EQUIPAMIENTO - RESPONSIVE
   =================================== */

/* Estilos móvil para reposicionar título EQUIPAMIENTO */
@media (max-width: 768px) {
    .extras-container {
        flex-direction: column !important;
    }
    
    .extras-title {
        writing-mode: horizontal-tb !important;
        transform: none !important;
        min-width: 100% !important;
        padding: 1rem !important;
        text-align: center !important;
    }
    
    .extras-content {
        border-left: 1px solid #e0e0e0 !important;
        border-top: none !important;
    }
}
