/* Variables CSS - Paleta de Colores */
:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #1a1f2e;
    --bg-card: #1a2332;
    --color-primary: #00d4ff;
    --color-secondary: #1a3a5c;
    --color-accent: #0099cc;
    --text-primary: #ffffff;
    --text-secondary: #b0b8c8;
    --text-muted: #6b7280;
    --border-color: #2a3441;
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.3);
    --shadow-card: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - Efecto vidrio líquido (estilo Apple) */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 31, 46, 0.52);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05) inset,
                0 4px 28px rgba(0, 0, 0, 0.15);
    transition: background 0.25s ease;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.035) 0%,
        transparent 45%,
        rgba(0, 0, 0, 0.03) 100%);
    pointer-events: none;
    z-index: 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
    position: relative;
    z-index: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-whatsapp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Hero Section / Portada con video de fondo */
.hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 26, 0.75) 0%, rgba(26, 31, 46, 0.7) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    animation: heroFadeIn 1s ease-out 0.2s both;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-primary), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-hero {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--bg-primary);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-glow);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

/* Secciones */
.section {
    padding: 4.5rem 0;
}

/* Alternancia sutil de fondo en secciones de productos */
.productos-section:nth-of-type(odd) {
    background: linear-gradient(180deg, transparent 0%, rgba(26, 31, 46, 0.25) 50%, transparent 100%);
}

.productos-section:nth-of-type(even) {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.03) 50%, transparent 100%);
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

/* ===== Revelado al hacer scroll (fade-in) ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }
.reveal-delay-6 { transition-delay: 0.48s; }
.reveal-delay-7 { transition-delay: 0.56s; }
.reveal-delay-8 { transition-delay: 0.64s; }
.reveal-delay-9 { transition-delay: 0.72s; }
.reveal-delay-10 { transition-delay: 0.8s; }

/* Retraso escalonado para tarjetas de producto dentro del grid */
.products-grid .product-card.reveal:nth-child(1) { transition-delay: 0.05s; }
.products-grid .product-card.reveal:nth-child(2) { transition-delay: 0.12s; }
.products-grid .product-card.reveal:nth-child(3) { transition-delay: 0.19s; }
.products-grid .product-card.reveal:nth-child(4) { transition-delay: 0.26s; }
.products-grid .product-card.reveal:nth-child(5) { transition-delay: 0.33s; }
.products-grid .product-card.reveal:nth-child(6) { transition-delay: 0.4s; }
.products-grid .product-card.reveal:nth-child(7) { transition-delay: 0.47s; }
.products-grid .product-card.reveal:nth-child(8) { transition-delay: 0.54s; }
.products-grid .product-card.reveal:nth-child(9) { transition-delay: 0.61s; }
.products-grid .product-card.reveal:nth-child(10) { transition-delay: 0.68s; }
.products-grid .product-card.reveal:nth-child(n+11) { transition-delay: 0.75s; }

.section-header-catalogo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-header-catalogo .section-title {
    margin-bottom: 0;
}

.link-catalogo-completo {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.link-catalogo-completo:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* Grid de Productos - tamaño exacto por tarjeta */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 255, 0.25);
}

/* Contenedor de imagen: tamaño exacto igual para todas (300x420 px ratio) */
.product-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 300 / 420;
    min-height: 280px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    flex-shrink: 0;
}
@supports not (aspect-ratio: 300 / 420) {
    .product-image-container {
        aspect-ratio: unset;
        padding-top: 140%;
    }
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff4757, #ff6348);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-platform {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.price-original {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-badge {
    background-color: var(--color-primary);
    color: var(--bg-primary);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
}

.btn-comprar {
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-comprar:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
}

.btn-comprar:active {
    transform: translateY(0);
}

/* Categorías */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.categoria-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.categoria-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.categoria-card:hover::before {
    left: 100%;
}

.categoria-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--color-primary);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 0 25px rgba(0, 212, 255, 0.2);
}

.categoria-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    transition: transform 0.3s ease;
}

.categoria-card:hover .categoria-icon {
    transform: scale(1.1) rotate(5deg);
}

.hexagon-icon {
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.categoria-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

.categoria-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-primary);
}

.whatsapp-link {
    color: #25D366;
    text-decoration: none;
    font-weight: 600;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background-color: var(--bg-card);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border: 1px solid var(--border-color);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* ========== Responsive: tablet y móvil ========== */
@media (max-width: 992px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .hero {
        min-height: 400px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1.25rem;
        margin-top: 1.5rem;
    }

    .categorias-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }

    .header .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0.75rem 14px;
        gap: 0.75rem;
    }

    .logo-img {
        height: 38px;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 0.75rem;
        padding-top: 0.25rem;
        border-top: 1px solid var(--border-color);
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .btn-whatsapp-header {
        padding: 0.5rem 0.9rem;
        font-size: 0.9rem;
    }

    .btn-whatsapp-header svg {
        width: 18px;
        height: 18px;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
        padding-bottom: 0.5rem;
    }

    .section-header-catalogo {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .section-header-catalogo .section-title {
        font-size: 1.4rem;
    }

    .link-catalogo-completo {
        font-size: 0.85rem;
    }

    .hero {
        min-height: 320px;
    }

    .hero-content {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 1.85rem;
        margin-bottom: 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .btn-hero {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.9rem;
        margin-top: 1.25rem;
    }

    .product-card {
        border-radius: 10px;
    }

    .product-image-container {
        aspect-ratio: 1 / 1.2;
        min-height: 0;
    }

    .product-info {
        padding: 0.85rem;
    }

    .product-badge {
        top: 6px;
        right: 6px;
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }

    .product-title {
        font-size: 0.95rem;
        min-height: 2.5rem;
        -webkit-line-clamp: 2;
    }

    .product-platform {
        font-size: 0.7rem;
        margin-bottom: 0.5rem;
    }

    .product-price {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .price-current {
        font-size: 1.15rem;
    }

    .price-original {
        font-size: 0.85rem;
    }

    .btn-comprar {
        padding: 0.65rem;
        font-size: 0.85rem;
    }

    .categorias-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .categoria-card {
        padding: 1rem 0.75rem;
    }

    .categoria-card h3 {
        font-size: 1rem;
    }

    .categoria-card p {
        font-size: 0.8rem;
    }

    .categoria-icon svg {
        width: 32px;
        height: 32px;
    }

    .footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-description,
    .footer-links a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        padding-top: 1.25rem;
        font-size: 0.85rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 16px;
        right: 16px;
    }

    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }

    .whatsapp-tooltip {
        display: none;
    }

    /* Páginas de catálogo en móvil */
    .catalogo-page {
        padding: 1.5rem 0 2.5rem;
    }

    .catalogo-back {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .catalogo-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .header .container {
        padding: 0.6rem 12px;
    }

    .logo-img {
        height: 34px;
    }

    .nav-link {
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    .section-header-catalogo .section-title {
        font-size: 1.25rem;
    }

    .hero {
        min-height: 280px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn-hero {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .product-title {
        font-size: 0.9rem;
    }

    .price-current {
        font-size: 1.05rem;
    }

    .btn-comprar {
        padding: 0.55rem;
        font-size: 0.8rem;
    }

    .categoria-card {
        padding: 0.85rem 0.5rem;
    }

    .categoria-card h3 {
        font-size: 0.95rem;
    }

    .whatsapp-float {
        width: 48px;
        height: 48px;
        bottom: 12px;
        right: 12px;
    }
}

/* Las tarjetas usan .reveal para animación al hacer scroll (ver más arriba) */

/* Página de Detalle de Producto */
.product-detail-section {
    padding: 4rem 0;
    min-height: 80vh;
}

.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn-volver {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    margin-bottom: 2rem;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
}

.btn-volver:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    border-color: var(--color-primary);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.product-detail-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    aspect-ratio: 300 / 420;
    max-width: 400px;
}

.product-detail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-badge-large {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff4757, #ff6348);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: 700;
    z-index: 10;
}

.product-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-detail-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.product-detail-platform {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.product-detail-price {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    margin: 1rem 0;
}

.product-precio-licencia-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    width: 100%;
}

.price-current-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

.price-original-large {
    font-size: 1.5rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.product-precios-licencia {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0.75rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color);
}

.precio-licencia {
    font-size: 1rem;
    color: var(--text-secondary);
}

.precio-licencia strong {
    color: var(--color-primary);
}

.product-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.option-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.select-option {
    padding: 0.8rem 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-option:hover {
    border-color: var(--color-primary);
}

.select-option:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.2);
}

.btn-comprar-detalle {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

.btn-comprar-detalle:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
}

.btn-comprar-detalle:active {
    transform: translateY(-1px);
}

.product-description {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.product-description h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.product-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.error-message {
    text-align: center;
    padding: 4rem 2rem;
}

.error-message h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--color-primary);
    margin-bottom: 2rem;
}

/* Responsive para página de producto */
@media (max-width: 968px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-detail-title {
        font-size: 2rem;
    }
    
    .price-current-large {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .product-detail-title {
        font-size: 1.8rem;
    }
    
    .price-current-large {
        font-size: 1.8rem;
    }
    
    .product-options {
        padding: 1rem;
    }
}

/* Página Garantía y Términos */
.legal-page {
    padding: 3rem 0 4rem;
    min-height: 60vh;
}

.legal-page-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.legal-intro {
    color: var(--text-secondary);
    text-align: center;
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-nav a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
}

.legal-nav a:hover {
    background: rgba(0, 212, 255, 0.15);
    color: #fff;
}

.legal-section {
    margin-bottom: 3rem;
    scroll-margin-top: 80px;
}

.legal-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.legal-content {
    max-width: 720px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.legal-back {
    margin-top: 2.5rem;
    text-align: center;
}

.legal-back .btn-volver {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
}

.legal-back .btn-volver:hover {
    background: var(--color-primary);
    color: var(--bg-primary);
}

/* Páginas de catálogo completo */
.catalogo-page {
    padding: 2rem 0 4rem;
}

.catalogo-back {
    display: inline-block;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

.catalogo-back:hover {
    opacity: 0.85;
}

.catalogo-title {
    margin-bottom: 0.5rem;
}

.catalogo-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

/* Fondo con formas flotantes */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.background-shapes .shape {
    position: absolute;
    opacity: 0.5;
    animation: floatY 10s ease-in-out infinite;
    will-change: transform;
}

.background-shapes .shape svg {
    width: 100%;
    height: 100%;
    display: block;
}

.background-shapes .shape.shape-square svg,
.background-shapes .shape.shape-x svg {
    animation: spin 60s linear infinite;
    transform-origin: 50% 50%;
}

@keyframes floatY {
    0% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(10px, -18px, 0); }
    100% { transform: translate3d(0, 0, 0); }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
