/* ============================================
   Variables CSS - Colores Corporativos
   ============================================ */
:root {
    --color-primary: #CB6CE6;
    --color-accent-1: #E1A8F0;
    --color-accent-2: #D588EA;
    --color-accent-3: #DD9CEE;
    --color-text-dark: #2b2b2b;
    --color-text-light: #6c757d;
    --color-bg-light: #f8f9fa;
    --color-white: #ffffff;
    --font-main: 'Poppins', sans-serif;
    --border-radius: 20px;
    --transition: all 0.3s ease;
}

#sobre {
    padding: 4rem 0;
}

.text-primary2 {
    color: red;
}

.about-image-placeholder {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    height: 100%;
}

.about-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* ============================================
   Estilos Generales
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
}

p {
    margin-bottom: 1rem;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    transition: var(--transition);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--color-text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary) !important;
}

/* ============================================
   Botones Personalizados
   ============================================ */
.btn-primary {
    background: var(--color-primary);
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(203, 108, 230, 0.3);
}

.btn-second {
    background: red;
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(203, 108, 230, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(203, 108, 230, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--border-radius);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background-image: url(../img/Modelo_Navidad.png);
    background: linear-gradient(135deg, var(--color-accent-1) 0%, var(--color-accent-3) 100%);
    padding: 4rem 0;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-logo {
    max-width: 400px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.min-vh-75 {
    min-height: 75vh;
}

.text-primary {
    color: var(--color-primary) !important;
}

/* ============================================
   Cards de Categorías
   ============================================ */
.category-card {
    background: white;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(203, 108, 230, 0.2);
    border-color: var(--color-accent-1);
}

.category-icon {
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

/* ============================================
   Productos - Filtros
   ============================================ */
.products-header {
    background: linear-gradient(to bottom, var(--color-bg-light), white);
}

.filter-section {
    margin-top: 2rem;
}

.filter-btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: var(--transition);
}

/* ============================================
   Cards de Productos
   ============================================ */
.product-item {
    opacity: 1;
    transition: opacity 0.3s ease;

}

.product-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(203, 108, 230, 0.25);
}

.product-image-container {
    overflow: hidden;
    background: var(--color-bg-light);
    height: auto;
    width: 100%;

}

.product-image-container svg,
.product-image-container img {
    transition: transform 0.3s ease;
    width: 100%;
    height: 100%;
}

.product-card:hover .product-image-container svg,
.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-card .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-weight: 500;
}

.product-card .badge.bg-primary {
    background: var(--color-primary) !important;
}

.product-card .badge.bg-info {
    background: #17a2b8 !important;
}

.product-card .badge.bg-warning {
    background: #ffc107 !important;
    color: var(--color-text-dark);
}

.price-text {
    font-size: 1.1rem;
    color: var(--color-primary);
}

.product-card .form-select,
.product-card .form-control {
    border-radius: 10px;
    border: 1px solid #dee2e6;
    transition: var(--transition);
}

.product-card .form-select:focus,
.product-card .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(203, 108, 230, 0.25);
}

.add-to-quote {
    border-radius: var(--border-radius);
    font-weight: 600;
    padding: 0.75rem;
}

/* ============================================
   Botón Flotante de Cotización
   ============================================ */
.quote-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-2));
    border: none;
    box-shadow: 0 6px 25px rgba(203, 108, 230, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
}

.quote-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(203, 108, 230, 0.6);
}

.quote-cart-btn:active {
    transform: scale(0.95);
}

.cart-counter {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Sección "Sobre Peresozo"
   ============================================ */
.about-image-placeholder {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Pasos de Cotización
   ============================================ */
.step-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(203, 108, 230, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-2));
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(203, 108, 230, 0.3);
}

/* ============================================
   Testimonios
   ============================================ */
.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-left: 4px solid var(--color-primary);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(203, 108, 230, 0.15);
}

.testimonial-card .stars {
    color: #ffc107;
    font-size: 1.2rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: linear-gradient(to top, var(--color-accent-1), white);
    color: var(--color-text-dark);
}

.footer h5 {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    color: var(--color-primary) !important;
    transform: translateX(5px);
}

.social-links a {
    display: inline-block;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    color: var(--color-primary) !important;
}

/* Efecto hover para imagen clickeable */
.product-image-container[onclick] {
    position: relative;
    overflow: hidden;
}

.product-image-container[onclick]::after {
    content: ' Ver Detalles';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.product-image-container[onclick]:hover::after {
    opacity: 0.2;
}

/* ============================================
   Página de Detalle de Producto
   ============================================ */
.product-detail {
    background: white;
}

.product-gallery .main-image-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #f8f9fa;
}

.zoom-container {
    position: relative;
    cursor: zoom-in;
}

.main-product-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.zoom-container:hover .main-product-image {
    transform: scale(1.05);
}

.zoom-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(203, 108, 230, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-container:hover .zoom-icon {
    opacity: 1;
}

.thumbnail-image {
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: var(--transition);
    opacity: 0.6;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: var(--color-primary);
    opacity: 1;
    transform: scale(1.05);
}

.product-info {
    position: sticky;
    top: 100px;
}

.product-title {
    color: var(--color-text-dark);
    font-weight: 700;
}

.quantity-selector .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-features ul li {
    padding: 8px 0;
    display: flex;
    align-items: center;
}

/* ============================================
   Videos en Galería de Producto
   ============================================ */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    /* Aspect ratio 4:3 */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: var(--border-radius);
}

.main-product-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
}

/* Ícono de play en miniaturas de video */
.thumbnail-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: var(--transition);
    overflow: hidden;
}

.thumbnail-wrapper.active {
    border-color: var(--color-primary);
}

.thumbnail-wrapper:hover {
    transform: scale(1.05);
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(203, 108, 230, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.thumbnail-wrapper:hover .video-play-icon {
    background: rgba(203, 108, 230, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Productos Relacionados */
.related-products .product-card {
    transition: var(--transition);
}

.related-products .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(203, 108, 230, 0.25);
}

.related-products .product-image-container {
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.related-products .product-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-products .product-card:hover .product-image-container img {
    transform: scale(1.1);
}

/* Modal de Zoom */
#imageZoomModal .modal-content {
    background: rgba(0, 0, 0, 0.9);
}

#imageZoomModal img {
    border-radius: var(--border-radius);
}

/* Breadcrumb */
.breadcrumb-item a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--color-accent-2);
}

/* Responsive */
@media (max-width: 992px) {
    .product-info {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .main-image-container {
        margin-bottom: 2rem;
    }

    .related-products .product-image-container {
        height: auto;
    }

    .product-image-container {
        overflow: hidden;
        background: var(--color-bg-light);
        height: auto;
        width: 100%;
    }
}

/* ============================================
   Toast de Notificaciones
   ============================================ */
.toast {
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.toast-header.bg-primary {
    background: var(--color-primary) !important;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* ============================================
   Modal de Cotización
   ============================================ */
.cart-item {
    background: #f8f9fa;
    transition: var(--transition);
}

.cart-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.delete-item {
    transition: var(--transition);
}

.delete-item:hover {
    transform: scale(1.1);
}

#emptyCartMessage svg {
    opacity: 0.5;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        min-height: auto;
    }

    .hero-logo {
        max-width: 250px;
        margin-top: 2rem;
    }

    .display-3 {
        font-size: 2rem;
    }

    .display-4 {
        font-size: 1.8rem;
    }

    .display-5 {
        font-size: 1.6rem;
    }

    .quote-cart-btn {
        width: 60px;
        height: 60px;
        bottom: 20px;
        right: 20px;
    }

    .cart-counter {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }

    .filter-section {
        justify-content: center !important;
    }

    .filter-btn {
        font-size: 0.9rem;
        padding: 0.4rem 1rem;
    }

    .product-image-container {
        overflow: hidden;
        background: var(--color-bg-light);
        height: 600px;


    }
}

@media (max-width: 576px) {

    .btn-primary,
    .btn-outline-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .product-image-container {
        height: 250px;
    }

    .category-icon svg {
        width: 60px;
        height: 60px;
    }

    .product-image-container {
        overflow: hidden;
        background: var(--color-bg-light);
        height: 600px;
    }
}

/* ============================================
   Modal de Cotización
   ============================================ */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
}

.modal-header.bg-primary {
    background: var(--color-primary) !important;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.cart-item {
    background: #f8f9fa;
    transition: var(--transition);
}

.cart-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.delete-item {
    transition: var(--transition);
}

.delete-item:hover {
    transform: scale(1.1);
}

#emptyCartMessage svg {
    opacity: 0.5;
}

/* ============================================
   Animaciones Adicionales
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-item {
    animation: fadeInUp 0.5s ease forwards;
}

/* Stagger animation para productos */
.product-item:nth-child(1) {
    animation-delay: 0.1s;
}

.product-item:nth-child(2) {
    animation-delay: 0.2s;
}

.product-item:nth-child(3) {
    animation-delay: 0.3s;
}

.product-item:nth-child(4) {
    animation-delay: 0.4s;
}

.product-item:nth-child(5) {
    animation-delay: 0.5s;
}

.product-item:nth-child(6) {
    animation-delay: 0.6s;
}

.product-item:nth-child(7) {
    animation-delay: 0.7s;
}

.product-item:nth-child(8) {
    animation-delay: 0.8s;
}

.product-item:nth-child(9) {
    animation-delay: 0.9s;
}

/* ============================================
   Utilidades
   ============================================ */
.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-2)) !important;
}

.bg-gradient-light {
    background: linear-gradient(135deg, var(--color-accent-1), var(--color-accent-3)) !important;
}

/* ============================================
   Scrollbar Personalizado
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-2);
}