/* Variables de color tecnológico - Manteniendo consistencia con la página principal */
:root {
    --primary: #0a0e29;
    --secondary: #1a237e;
    --accent: #00b8ff;
    --accent-glow: rgba(0, 184, 255, 0.6);
    --accent2: #ff3e80;
    --accent2-glow: rgba(255, 62, 128, 0.6);
    --light: #f8f9ff;
    --dark: #070a1f;
    --gray: #8a92b3;
    --light-gray: #f0f2ff;
    --border: #d1d6ff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 10px 30px rgba(0, 184, 255, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-tech: linear-gradient(135deg, #0a0e29 0%, #1a237e 50%, #283593 100%);
    --gradient-accent: linear-gradient(90deg, #00b8ff 0%, #0066ff 100%);
    --gradient-accent2: linear-gradient(90deg, #ff3e80 0%, #ff1a5e 100%);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background-color: var(--light);
    font-weight: 300;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Header Styles - Manteniendo consistencia */
.main-header {
    background: rgba(10, 14, 41, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 55px;
    margin-right: 30px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.asesoria {
    display: flex;
    flex-direction: column;
    line-height: 1;
    margin-left: 30px;
    text-align: right;
}

.asesoria-main {
    font-size: 1.3rem;
    background: var(--gradient-accent2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.asesoria-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}

.asesoria-link i {
    font-size: 2.2rem;
    color: var(--accent2);
}

.logo-main {
    font-size: 1.8rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

.asesoria-sub {
    font-size: 0.8rem;
    color: var(--accent2);
    font-weight: 400;
    letter-spacing: 2px;
}

.logo-sub {
    font-size: 0.7rem;
    color: var(--accent);
    font-weight: 400;
    letter-spacing: 2px;
}

.search-cart-container {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    max-width: 800px;
    justify-content: flex-end;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: var(--transition);
    font-weight: 300;
    backdrop-filter: blur(10px);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.2rem;
    z-index: 2;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
}

.cart-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent2);
    color: white;
    font-size: 0.7rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(255, 62, 128, 0.5);
}

/* Botón para volver al catálogo */
.back-to-catalog {
    margin: 20px 0;
    display: flex;
    justify-content: flex-start;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--light-gray);
    color: var(--primary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border);
    font-size: 0.95rem;
}

.back-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateX(-5px);
    box-shadow: var(--shadow-glow);
}

/* Product Detail Container - Más compacto */
.product-detail-container {
    padding: 20px 0 60px;
    position: relative;
}

.product-detail-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 250px;
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 70%, 0 100%);
}

/* Product Detail Layout - Más compacto */
.product-detail {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-top: 15px;
    position: relative;
    border: 1px solid var(--border);
}

/* Sección de Imágenes - Más compacta */
.product-images {
    position: relative;
}

.images-container {
    display: flex;
    gap: 15px;
    height: 380px;
}

/* Miniaturas en el lado izquierdo - Más pequeñas */
.thumbnails-container {
    width: 80px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding-right: 8px;
}

.thumbnails-container::-webkit-scrollbar {
    width: 3px;
}

.thumbnails-container::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.thumbnails-container::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

.thumbnail {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    background: white;
    position: relative;
}

.thumbnail:hover {
    border-color: var(--accent);
    transform: translateX(3px);
}

.thumbnail.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.thumbnail:hover img {
    transform: scale(1.05);
}

/* Imagen Principal - Más compacta */
.main-image-container {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 15px;
    transition: var(--transition);
}

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

/* Indicadores de Zoom y Fullscreen */
.image-actions {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.image-action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(10, 14, 41, 0.8);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.image-action-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Información del Producto - Más compacta */
.product-info-detail {
    position: relative;
}

.sku {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
    background: var(--light-gray);
    padding: 6px 15px;
    border-radius: 15px;
    display: inline-block;
    border: 1px solid var(--border);
}

.product-info-detail h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.price-container {
    margin: 20px 0;
    padding: 20px;
    background: var(--light-gray);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.price-detail {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
    margin-bottom: 8px;
}

.old-price-detail {
    color: var(--gray);
    text-decoration: line-through;
    font-size: 1.4rem;
    font-weight: 500;
    margin-right: 12px;
}

.discount-badge {
    background: var(--gradient-accent2);
    color: white;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 62, 128, 0.3);
}

/* Tabla de Especificaciones - Más compacta */
.specifications-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.specifications-table th {
    background: var(--gradient-accent);
    color: white;
    text-align: left;
    padding: 16px;
    font-weight: 600;
    font-size: 1rem;
}

.specifications-table tr {
    transition: var(--transition);
}

.specifications-table tr:nth-child(even) {
    background: var(--light-gray);
}

.specifications-table tr:hover {
    background: rgba(0, 184, 255, 0.05);
}

.specifications-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.specifications-table td:first-child {
    font-weight: 600;
    color: var(--secondary);
    width: 40%;
}

/* Botones de Acción - Más compactos */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 30px 0;
}

.btn {
    padding: 14px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-cart {
    background: var(--gradient-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 184, 255, 0.3);
}

.btn-cart:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 184, 255, 0.5);
}

.btn-buy {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(10, 14, 41, 0.3);
}

.btn-buy:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(10, 14, 41, 0.5);
}

.btn-whatsapp {
    grid-column: span 2;
    background: linear-gradient(90deg, #25D366, #128C7E);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

/* Sección de Descripción - Más compacta */
/* Sección de Descripción - Al lado de la información */

.description-content p {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--gray);
}

/* Texto en negrita */
.description-content strong {
    color: var(--gray);
    font-weight: 600;
}

/* Lista */
.description-content ul {
    margin-top: 8px;
    padding-left: 18px;
}

/* Items de lista */
.description-content li {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--gray);
    list-style: disc;
}

.description-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    height: fit-content;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.description-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.description-section h2 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
    position: relative;
    padding-bottom: 10px;
}

.description-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.description-content {
    line-height: 1.6;
    color: var(--gray);
    font-size: 0.95rem;
    overflow: hidden;
    transition: max-height 0.35s ease;
    position: relative;
}

/* Estado colapsado con degradado */
.description-content.collapsed {
    max-height: 260px;
    mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 60%,
            rgba(0, 0, 0, 0.7) 80%,
            rgba(0, 0, 0, 0.4) 90%,
            rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to bottom,
            rgba(0, 0, 0, 1) 60%,
            rgba(0, 0, 0, 0.7) 80%,
            rgba(0, 0, 0, 0.4) 90%,
            rgba(0, 0, 0, 0) 100%);
}

/* Estado expandido */
.description-content.expanded {
    max-height: 2000px;
    mask-image: none;
    -webkit-mask-image: none;
}

/* Scrollbar para contenido expandido */
.description-content.expanded {
    padding-right: 10px;
}

.description-content.expanded::-webkit-scrollbar {
    width: 4px;
}

.description-content.expanded::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.description-content.expanded::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
}

/* Botón "Ver más/Ver menos" - Mejorado */
.btn-show-more {
    margin-top: 15px;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(0, 184, 255, 0.3);
}

.btn-show-more::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.15),
            transparent);
    transition: 0.6s ease;
}

.btn-show-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 255, 0.5);
}

.btn-show-more:hover::before {
    left: 100%;
}

.btn-show-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.description-content.collapsed::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.6) 50%,
            rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

/* Animación del icono cuando está expandido */
.description-content.expanded+.btn-show-more i {
    transform: rotate(180deg);
}

/* Indicador visual para hacer clic en el contenedor */
.description-section::after {
    content: '';
    position: absolute;
    bottom: 10px;
    right: 20px;
    width: 24px;
    height: 24px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    opacity: 0.3;
    transition: var(--transition);
    pointer-events: none;
}

.description-section:hover::after {
    opacity: 0.5;
}

.description-section.collapsed::after {
    content: '↙';
}

.description-section.expanded::after {
    content: '↖';
}

/* Efecto de pulso para indicar interactividad */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .description-section {
        padding: 15px;
    }

    .description-content.collapsed {
        -webkit-mask-image: linear-gradient(to bottom,
                rgba(0, 0, 0, 1) 50%,
                rgba(0, 0, 0, 0.7) 70%,
                rgba(0, 0, 0, 0.4) 85%,
                rgba(0, 0, 0, 0) 100%);
    }

    .btn-show-more {
        padding: 6px 16px;
        font-size: 0.85rem;
    }

    .description-section::after {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .description-content.collapsed {
        max-height: 100px;
    }

    .btn-show-more {
        width: 100%;
        justify-content: center;
    }
}


/* Productos Sugeridos - Más compactos */
.suggested-products {
    margin: 50px 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-card-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    padding: 15px;
    background: white;
    transition: var(--transition);
}

.product-card:hover .product-card-img {
    transform: scale(1.05);
}

.product-card-info {
    padding: 20px;
}

.product-card-title {
    font-size: 1rem;
    margin-bottom: 10px;
    height: 50px;
    overflow: hidden;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.4;
}

.product-card-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.3rem;
    display: block;
}

.product-card-old-price {
    color: var(--gray);
    text-decoration: line-through;
    margin-left: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-card-prices {
    margin-bottom: 10px;
}

.product-card-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
}

.product-card-btn:hover {
    background: linear-gradient(90deg, #0066ff 0%, #0044cc 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 255, 0.4);
}

/* Responsive */
@media (max-width: 1200px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .images-container {
        height: 350px;
    }
}

@media (max-width: 992px) {
    .product-detail {
        padding: 25px;
    }

    .images-container {
        height: 320px;
    }

    .product-info-detail h1 {
        font-size: 1.6rem;
    }

    .price-detail {
        font-size: 1.8rem;
    }

    .action-buttons {
        grid-template-columns: 1fr;
    }

    .btn-whatsapp {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .search-cart-container {
        width: 100%;
        justify-content: center;
    }

    .images-container {
        flex-direction: column-reverse;
        height: auto;
    }

    .thumbnails-container {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        padding: 10px 0;
    }

    .thumbnail {
        width: 70px;
        height: 70px;
        flex-shrink: 0;
    }

    .main-image-container {
        height: 300px;
    }

    .product-info-detail h1 {
        font-size: 1.5rem;
    }

    .price-detail {
        font-size: 1.6rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }

    .btn-show-more {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .product-detail {
        padding: 20px;
    }

    .main-image-container {
        height: 250px;
    }

    .price-detail {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .btn-show-more {
        width: 100%;
        justify-content: center;
    }
}

/* Animaciones adicionales */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-detail {
    animation: fadeIn 0.6s ease-out;
}

.description-section,
.suggested-products {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

footer {
    background: var(--gradient-tech);
    color: white;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Marca más ancha que contacto */
    gap: 80px;
    align-items: start;
    margin-bottom: 60px;
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--accent);
    position: relative;
    padding-bottom: 12px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-column p,
.footer-column li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.5;
}

.footer-column ul {
    list-style-type: none;
}

.footer-column li i {
    margin-right: 10px;
    color: var(--accent);
    font-size: 0.9rem;
    width: 18px;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: var(--transition);
    color: white;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 184, 255, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* Preview del carrito mejorado */
.cart-preview-container {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.61);
    z-index: 1000;
    margin-top: 15px;
    margin-right: 155px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.cart-preview-container::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 25px;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
}

.cart-preview-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.cart-preview-header h4 {
    margin: 0;
    color: var(--dark);
    font-size: 18px;
    font-weight: 700;
}

.clear-cart-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.clear-cart-btn:hover {
    background: #ffebee;
    transform: translateY(-1px);
}

.cart-preview-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.3s ease;
    position: relative;
}

.cart-preview-item:hover {
    background: #f9f9f9;
    transform: translateX(5px);
}

.cart-preview-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
    border: 2px solid #f0f0f0;
}

.cart-preview-info {
    flex: 1;
    min-width: 0;
}

.cart-preview-info h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.3;
}

.cart-preview-info p {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: var(--accent2);
    font-weight: bold;
}

.cart-preview-info small {
    font-size: 11px;
    color: var(--gray);
    display: block;
}

.cart-preview-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 15px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    color: var(--dark);
}

.quantity-btn:hover {
    background: var(--accent2);
    color: white;
    border-color: var(--accent2);
    transform: scale(1.1);
}

.cart-preview-quantity span {
    min-width: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.remove-item {
    background: none;
    border: none;
    color: #ff6b6b;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item:hover {
    background: #ffebee;
    transform: rotate(90deg);
}

.cart-preview-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 20px;
    color: var(--dark);
    padding-bottom: 15px;
    border-bottom: 2px dashed #ddd;
}

.cart-preview-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-view-cart,
.btn-checkout {
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-view-cart {
    background: var(--dark);
    color: white;
}

.btn-view-cart:hover {
    background: #2d3436;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-checkout {
    background: linear-gradient(135deg, var(--accent2), #ff6b35);
    color: white;
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #e74c3c, #ff6b35);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* Animación mejorada */
.cart-animation {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 18px 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(120px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid var(--accent2);
}

.cart-animation.show {
    transform: translateX(0);
    opacity: 1;
}

.cart-animation-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-animation-content i {
    color: var(--accent2);
    font-size: 22px;
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.cart-animation-content span {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

/* Botón de carrito en producto mejorado */
.btn-cart[data-in-cart="true"] {
    background: var(--accent2) !important;
    color: white !important;
}

.btn-cart.active-animation {
    animation: buttonPop 0.5s ease;
    background: linear-gradient(135deg, var(--accent2), #ff6b35) !important;
    color: white !important;
}

@keyframes buttonPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

/* Efecto de pulso en el ícono del carrito cuando se agrega algo */
.cart-icon.pulse {
    animation: cartPulse 0.6s ease;
}

@keyframes cartPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive para preview del carrito */
@media (max-width: 768px) {
    .cart-preview-container {
        width: 320px;
        right: -50px;
    }

    .cart-preview-container::before {
        right: 70px;
    }

    .cart-preview-item {
        padding: 12px;
    }

    .cart-preview-item img {
        width: 50px;
        height: 50px;
    }
}

/* ===== CARRITO VACÍO ===== */
.empty-cart {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #eef1f4);
    border-radius: 12px;
}

.empty-cart i {
    font-size: 48px;
    color: var(--accent2);
    margin-bottom: 15px;
    opacity: 0.8;
    animation: emptyCartFloat 2s ease-in-out infinite;
}

.empty-cart p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
}

.empty-cart::after {
    content: "Agrega productos para comenzar tu compra";
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--gray);
}

/* Animación suave del icono */
@keyframes emptyCartFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

.cart-status {
    margin-bottom: 20px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    display: none;
}

.cart-status-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2e7d32;
    font-weight: 600;
}

.cart-status-info i {
    font-size: 1.2rem;
}

.view-cart-link {
    margin-left: auto;
    color: var(--accent2);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.view-cart-link:hover {
    text-decoration: underline;
}

.discount-badge2 {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--gradient-accent2);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 15px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(255, 62, 128, 0.3);
}