/* styles.css */

/* --- VARIABLES Y RESET --- */
:root {
    --bg-dark: #0B0F1A;
    --bg-card: #151A25;
    --bg-card-hover: #1C2230;
    --primary-cyan: #00D4FF;
    --secondary-violet: #7F00FF;
    --text-white: #FFFFFF;
    --text-gray: #B0B0B0;
    --gradient-hero: linear-gradient(90deg, #001f3f 0%, #2e004f 50%, #001f3f 100%);
    --gradient-btn: linear-gradient(135deg, #00D4FF 0%, #0072ff 100%);
    --shadow-glow: 0 0 15px rgba(0, 212, 255, 0.3);
    --font-main: 'Poppins', sans-serif;
    --font-title: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; outline: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- ANUNCIO ENCABEZADO (CARRUSEL SUPERIOR) --- */
.top-announcement-bar {
    background: linear-gradient(90deg, #300012 0%, #ff0055 50%, #300012 100%);
    color: #fff;
    text-align: center;
    font-size: 0.85rem;
    padding: 0 10px;
    position: sticky;
    top: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1001;
}

.announcement-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.5s ease;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.announcement-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.announcement-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 500;
}

.announcement-slide img {
    height: 24px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.highlight-price {
    color: #00ff88;
    font-weight: 800;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.4);
}

.discount-badge-mini {
    background: #000;
    color: #ff0055;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid rgba(255,0,85,0.5);
}

/* --- HEADER --- */
#main-header {
    position: sticky;
    top: 40px;
    z-index: 1000;
    background: rgba(11, 15, 26, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    transition: 0.3s;
}

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

.logo img {
    height: 40px;
}

/* Navegación */
.nav-links {
    display: flex;
    gap: 10px;
}

.nav-item {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

/* Efectos Hover/Active solicitados */
.nav-item:hover {
    background-color: var(--secondary-violet);
    color: white;
    box-shadow: 0 0 10px rgba(127, 0, 255, 0.4);
}

.nav-item.active {
    background-color: rgba(0, 212, 255, 0.15);
    color: var(--primary-cyan);
    border: 1px solid var(--primary-cyan);
}

/* Acciones Derecha */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    background: transparent;
    color: var(--text-white);
    font-size: 1.2rem;
    position: relative;
    transition: 0.3s;
}

.icon-btn:hover { color: var(--primary-cyan); }

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--primary-cyan);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.login-btn:hover {
    background: var(--secondary-violet);
}

.menu-toggle { display: none; color: white; font-size: 1.5rem; background: none; }

/* --- HERO SECTION --- */
.hero {
    position: relative;
    aspect-ratio: 1940 / 481;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--bg-dark);
    overflow: hidden;
}

/* --- HERO SLIDER --- */
.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active, .hero-dot:hover {
    background: var(--primary-cyan);
    box-shadow: 0 0 10px var(--primary-cyan);
    transform: scale(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(46, 0, 79, 0.4) 0%, rgba(11, 15, 26, 1) 70%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-title);
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #00D4FF, #7F00FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--primary-cyan);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-white);
    color: var(--text-white);
}

.btn-outline:hover {
    background: var(--text-white);
    color: #000;
}

/* --- PRESALE HERO SECTION (Nuevo Encabezado) --- */
.presale-hero {
    width: 100%;
    background: var(--bg-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.presale-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    min-height: 65vh;
}

.presale-card {
    position: relative;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 50px 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    border-right: 1px solid rgba(255,255,255,0.05);
}

.presale-card:last-child {
    border-right: none;
}

.presale-card:hover {
    transform: scale(1.02);
    z-index: 10;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.presale-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(11,15,26,1) 0%, rgba(11,15,26,0.5) 40%, rgba(11,15,26,0.1) 100%);
    z-index: 1;
    transition: 0.4s ease;
}

.presale-card:hover .presale-overlay {
    background: linear-gradient(to top, rgba(11,15,26,0.95) 0%, rgba(0,212,255,0.2) 50%, rgba(11,15,26,0.1) 100%);
}

.presale-content {
    position: relative;
    z-index: 2;
    text-align: center;
    transform: translateY(10px);
    transition: 0.4s ease;
}

.presale-card:hover .presale-content {
    transform: translateY(0);
}

.presale-badge {
    background: #FF8C00;
    color: white;
    padding: 6px 15px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: inline-block;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.presale-title {
    font-family: var(--font-title);
    font-size: 2.2rem;
    color: var(--text-white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -1px;
}

.countdown {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.time-box {
    background: rgba(11, 15, 26, 0.85);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    min-width: 65px;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
}

.presale-card:hover .time-box {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.time-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-cyan);
    line-height: 1;
}

.time-label {
    font-size: 0.7rem;
    color: var(--text-gray);
    text-transform: uppercase;
    margin-top: 5px;
    font-weight: 600;
}

/* Estado urgente para menos de 24 horas */
.time-box.urgent {
    border-color: rgba(255, 68, 68, 0.5);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
}

.time-box.urgent .time-val {
    color: #ff4444;
}

.presale-card:hover .time-box.urgent {
    border-color: #ff4444;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.6);
}

/* --- SEARCH & FILTERS --- */
.search-filter-section {
    background: #0e121d;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.search-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.search-input-wrapper {
    flex-grow: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

.main-search {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px 12px 12px 45px;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: 0.3s;
}

.main-search:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.secondary-actions {
    display: flex;
    gap: 10px;
}

.icon-btn-secondary {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-white);
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.icon-btn-secondary:hover {
    border-color: var(--primary-cyan);
    color: var(--primary-cyan);
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    background: var(--bg-card);
    color: var(--text-gray);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.filter-tag:hover {
    color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.filter-tag.active {
    background: var(--primary-cyan);
    color: #000;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

/* --- PRODUCTS GRID --- */
.products-section {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-cyan);
    box-shadow: var(--shadow-glow);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

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

/* Contenedor apilable para múltiples etiquetas en la tarjeta */
.badges-right {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    z-index: 3;
}

.badges-right span {
    position: static !important; /* Anula las coordenadas individuales para respetar el orden flex */
}

.badge-available {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00ff88;
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

.category-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: var(--text-white);
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.included-text {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.tags-list {
    margin-bottom: 15px;
}

.game-tag {
    background: rgba(255,255,255,0.05);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    color: #ccc;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-cyan);
}

.btn-add-cart {
    background: var(--gradient-btn);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-add-cart:hover {
    filter: brightness(1.2);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* --- BENEFITS SECTION --- */
.benefits-section {
    padding: 60px 0;
    background: linear-gradient(to bottom, var(--bg-dark), #0e121d);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-white);
}

.section-header p {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    text-align: center;
    transition: 0.3s;
}

.benefit-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-5px);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-cyan);
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.benefit-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* --- FOOTER --- */
footer {
    background: #05070a;
    padding-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-cyan);
    padding-left: 5px;
}

.footer-col h4 {
    margin-bottom: 20px;
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.social-icons a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
}

.social-icons a:hover { color: var(--primary-cyan); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.badges {
    display: flex;
    gap: 15px;
}

.badge-ssl {
    background: rgba(255,255,255,0.05);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #00ff88;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .products-grid, .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    
    .navbar {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        padding: 20px;
        flex-direction: column;
        display: none; /* JS toggle */
        border-bottom: 1px solid var(--primary-cyan);
    }

    .navbar.active { display: flex; }

    .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

    .menu-toggle { display: block; }
    
    .products-grid, .benefits-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .presale-grid {
        grid-template-columns: 1fr;
    }
    .presale-card {
        min-height: 400px;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .search-bar-container {
        flex-direction: column;
    }
    
    .search-input-wrapper { width: 100%; }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    /* Ajuste para el carrusel superior en móviles */
    .announcement-slide a { font-size: 0.75rem; text-align: center; }
    .announcement-slide img { display: none; /* Ocultamos la mini foto en celular para dar lugar al texto */ }

    /* Ajuste para que el banner no rompa el ancho en móviles */
    .hero {
        aspect-ratio: auto;
        min-height: 350px;
    }

    /* El carrito ocupará todo el ancho en pantallas pequeñas */
    .cart-sidebar {
        width: 100%;
    }
}

/* --- PÁGINA DE DETALLE DE PRODUCTO --- */
.product-detail-section {
    padding: 40px 0 80px;
    margin-top: 20px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.product-gallery {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Esta regla se elimina porque entraba en conflicto con los estilos de las miniaturas del carrusel.
   El archivo script.js ahora maneja los estilos de la imagen principal y las miniaturas de forma específica. */

.product-info {
    display: flex;
    flex-direction: column;
}

.product-info h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 10px 0 20px;
    color: var(--text-white);
}

.product-meta-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.meta-tag {
    background: rgba(255,255,255,0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.denuvo-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #FFCC00; /* Amarillo */
    color: #0b0f1a;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: 0.3s ease;
}

.denuvo-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.4);
}

.product-description {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.8;
}

/* --- PRODUCT OPTIONS --- */
.product-options {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.option-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-group label {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.custom-select {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    padding: 12px 15px;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    cursor: pointer;
    outline: none;
    appearance: none; /* Oculta la flecha por defecto */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300D4FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    transition: all 0.3s ease;
}

.custom-select:hover, .custom-select:focus {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.02);
}

.custom-select option {
    background-color: var(--bg-card-hover);
    color: var(--text-white);
}

.price-box {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.price-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-cyan);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.btn-buy-large {
    width: 100%;
    background: var(--gradient-btn);
    color: white;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-buy-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
}

.features-list {
    list-style: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.features-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-gray);
}

.features-list i {
    color: #00ff88;
}

@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    .product-info h1 {
        font-size: 2rem;
    }
    .product-options {
        flex-direction: column;
        gap: 15px;
    }
}

/* --- PRODUCT TABS (Solapas Detalles) --- */
.product-tabs-container {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.product-tabs-header {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    flex: 1;
    background: transparent;
    color: var(--text-gray);
    padding: 15px 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.tab-btn:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
    color: var(--primary-cyan);
    border-bottom-color: var(--primary-cyan);
    background: rgba(0, 212, 255, 0.05);
}

.product-tabs-body {
    padding: 25px;
}

.tab-content {
    color: var(--text-gray);
    line-height: 1.8;
    animation: tabFadeIn 0.4s ease-out forwards;
    opacity: 0;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.benefits-list-tabs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.benefits-list-tabs li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-white);
    padding: 5px 0;
}

/* --- CARRITO SIDEBAR --- */
.cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 1001;
    opacity: 0; visibility: hidden; transition: 0.3s;
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-sidebar {
    position: fixed; top: 0; right: 0; width: 350px; height: 100%;
    background: var(--bg-card); z-index: 1002;
    transform: translateX(100%); transition: 0.3s;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
    border-left: 1px solid rgba(255,255,255,0.1);
}
.cart-sidebar.active { transform: translateX(0); }

.cart-header {
    padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; align-items: center;
}
.cart-header h2 { font-size: 1.2rem; color: var(--primary-cyan); margin: 0; }
.close-cart { background: none; color: white; font-size: 1.2rem; }

.cart-items {
    flex: 1; overflow-y: auto; padding: 20px;
}
.cart-item {
    display: flex; gap: 10px; margin-bottom: 15px;
    background: rgba(255,255,255,0.05); padding: 10px; border-radius: 8px;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.9rem; margin-bottom: 5px; color: white; }
.cart-item-price { color: var(--primary-cyan); font-weight: bold; font-size: 0.9rem; }
.btn-remove { color: #ff4444; font-size: 0.8rem; margin-top: 5px; background: none; padding: 0; }
.btn-remove:hover { text-decoration: underline; }

.cart-footer { padding: 20px; border-top: 1px solid rgba(255,255,255,0.1); background: var(--bg-card); }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 15px; font-size: 1.2rem; font-weight: bold; color: white; }
.btn-checkout {
    width: 100%; background: var(--gradient-btn); color: white;
    padding: 12px; border-radius: 8px; font-weight: bold; font-size: 1rem;
    transition: 0.3s;
}
.btn-checkout:hover { filter: brightness(1.2); }

.empty-cart-msg { text-align: center; color: var(--text-gray); margin-top: 20px; }

.order-success { text-align: center; padding: 20px; animation: fadeIn 0.5s; }
.order-id { color: var(--primary-cyan); font-size: 1.4rem; font-weight: 800; margin: 15px 0; display: block; letter-spacing: 1px; border: 1px dashed var(--primary-cyan); padding: 10px; border-radius: 8px; }
.order-success p { color: var(--text-gray); font-size: 0.9rem; }

/* Formulario Checkout */
.checkout-form { margin-top: 20px; text-align: left; }
.form-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
}
.form-input:focus { border-color: var(--primary-cyan); outline: none; background: rgba(255,255,255,0.1); }

.error-msg {
    color: #ff4444;
    font-size: 0.8rem;
    margin-top: -8px;
    margin-bottom: 10px;
    display: none;
}

/* --- FAQ SECTION --- */
.faq-section {
    padding: 60px 0;
    min-height: 60vh;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0; /* Oculto para animación */
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-white);
    font-size: 1.1rem;
}

.faq-question:hover {
    background: rgba(255,255,255,0.05);
    color: var(--primary-cyan);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 25px;
    color: var(--text-gray);
    line-height: 1.6;
    border-top: 1px solid transparent;
}

.faq-item.active {
    border-color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Altura suficiente para el contenido */
    padding-bottom: 25px;
    padding-top: 15px;
    border-top-color: rgba(255,255,255,0.05);
}

.faq-icon {
    transition: transform 0.3s;
    color: var(--primary-cyan);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- WHATSAPP FLOAT --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    background-color: #128c7e;
    color: white;
}