:root {
    --bg-color: #030712;
    --panel-bg: rgba(15, 23, 42, 0.85);
    --accent-fire-orange: #00f0ff;
    --accent-fire-yellow: #a5f3fc;
    --accent-fire-red: #1d4ed8;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
}

.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    background: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.logo span {
    color: var(--accent-fire-orange);
    text-shadow: 0 0 10px var(--accent-fire-orange);
    font-size: 0.7rem;
    letter-spacing: 4px;
}

.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    align-items: center;
}

.nav-btn {
    background: transparent;
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--text-muted);
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.nav-btn:hover {
    color: var(--accent-fire-yellow);
    border-color: var(--accent-fire-orange);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}

.nav-btn-special {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--accent-fire-orange);
    color: var(--text-main);
}

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: calc(100vh - 81px);
    position: relative;
}

.flame-section {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
}

.flame-container {
    position: relative;
    width: 320px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flame-circle-wrapper {
    position: relative;
    width: 240px;
    height: 240px;
    border: 3px solid var(--accent-fire-orange);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 35px rgba(0, 240, 255, 0.4), inset 0 0 20px rgba(0, 240, 255, 0.3);
    transform-origin: bottom center;
    transition: transform 0.05s ease-out;
    z-index: 10;
}

.real-fire {
    position: relative;
    width: 90px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.fire-outer {
    position: absolute;
    width: 85px;
    height: 135px;
    background: linear-gradient(to top, var(--accent-fire-red), var(--accent-fire-orange));
    border-radius: 50% 50% 20% 20%;
    animation: fire-flicker-outer 0.8s infinite alternate ease-in-out;
    filter: blur(2px);
    opacity: 0.85;
}

.fire-mid {
    position: absolute;
    width: 65px;
    height: 110px;
    background: linear-gradient(to top, var(--accent-fire-orange), var(--accent-fire-yellow));
    border-radius: 50% 50% 20% 20%;
    animation: fire-flicker-mid 0.5s infinite alternate ease-in-out;
    bottom: 5px;
    filter: blur(1px);
}

.fire-inner {
    position: absolute;
    width: 40px;
    height: 75px;
    background: linear-gradient(to top, var(--accent-fire-yellow), #ffffff);
    border-radius: 50% 50% 20% 20%;
    animation: fire-flicker-inner 0.3s infinite alternate ease-in-out;
    bottom: 10px;
}

.fire-spark-top {
    position: absolute;
    width: 20px;
    height: 40px;
    background: linear-gradient(to top, var(--accent-fire-yellow), #ffffff);
    border-radius: 50% 50% 20% 20%;
    top: -35px;
    animation: spark-rise 0.9s infinite linear;
    box-shadow: 0 0 10px var(--accent-fire-yellow);
}

.flame-brand-text {
    margin-top: 25px;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
}

.flame-brand-text h2 {
    font-size: 1.8rem;
    color: var(--text-main);
    letter-spacing: 3px;
}

.flame-brand-text p {
    font-size: 0.9rem;
    color: var(--accent-fire-orange);
    letter-spacing: 5px;
    margin-top: 5px;
    text-transform: uppercase;
}

.content-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 80px;
    background: linear-gradient(270deg, rgba(3, 7, 18, 0.9) 0%, transparent 100%);
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.2rem;
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-title span {
    background: linear-gradient(90deg, var(--accent-fire-orange), var(--accent-fire-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    background: linear-gradient(90deg, var(--accent-fire-orange), var(--accent-fire-yellow));
    color: #030712;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    background: transparent;
    color: var(--text-main);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--accent-fire-orange);
    transition: all 0.3s ease;
    cursor: pointer;
}

.brands-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brands-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
}

.brands-grid {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.brand-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Efecto interactivo para los botones de marcas */
.filter-brand-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-brand-btn:hover {
    color: var(--accent-fire-orange);
    text-shadow: 0 0 10px var(--accent-fire-orange);
    transform: scale(1.05);
}

/* Panel de Control de Administrador */
#admin-panel {
    display: none;
    max-width: 900px;
    margin: 40px auto;
    background: var(--panel-bg);
    border: 2px solid var(--accent-fire-orange);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

#admin-panel h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--accent-fire-orange);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.admin-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.admin-form input, .admin-form select, .admin-form textarea {
    width: 100%;
    padding: 12px;
    background: #030712;
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #fff;
    border-radius: 4px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
}

.admin-form textarea {
    grid-column: span 2;
}

.admin-form button {
    grid-column: span 2;
    padding: 12px;
    background: var(--accent-fire-orange);
    color: #030712;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
    transition: 0.3s;
}

.admin-form button:hover {
    background: var(--accent-fire-yellow);
    box-shadow: 0 0 15px var(--accent-fire-orange);
}

/* Filtros y Buscador */
.filters-container {
    max-width: 1300px;
    margin: 0 auto 30px auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 15px;
}

.search-box, .filter-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--panel-bg);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #fff;
    border-radius: 6px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.search-box:focus, .filter-select:focus {
    border-color: var(--accent-fire-orange);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Video Section */
.video-section {
    padding: 80px 50px;
    background: linear-gradient(to bottom, var(--bg-color), #040c1a);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

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

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 10px;
}

.section-title span {
    color: var(--accent-fire-orange);
    text-shadow: 0 0 15px var(--accent-fire-orange);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.video-container {
    width: 100%;
    max-width: 900px;
    height: 500px;
    background: #000;
    border-radius: 12px;
    border: 2px solid rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
}

/* Catálogo Dinámico */
.catalog-section {
    padding: 80px 50px;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(0, 240, 255, 0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.product-card {
    background: var(--panel-bg);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-fire-orange);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

.img-container {
    width: 100%;
    height: 190px;
    background: #060a17;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    position: relative;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}

.product-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

.badge {
    font-size: 0.65rem;
    font-family: 'Orbitron', sans-serif;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-cond-nuevo { background: #065f46; color: #34d399; border: 1px solid #10b981; }
.badge-cond-usado { background: #78350f; color: #fbbf24; border: 1px solid #f59e0b; }
.badge-type { background: #1e3a8a; color: #93c5fd; border: 1px solid #3b82f6; }

.product-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category-tag {
    font-size: 0.75rem;
    color: var(--accent-fire-orange);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.product-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-ver-mas {
    background: none;
    border: none;
    color: var(--accent-fire-orange);
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0;
    margin-bottom: 15px;
    font-family: inherit;
    text-align: left;
    transition: text-shadow 0.2s;
}

.btn-ver-mas:hover {
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.8);
    text-decoration: underline;
}

.product-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.product-modal-container {
    background: var(--panel-bg);
    border: 2px solid var(--accent-fire-orange);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    color: #fff;
    position: relative;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--accent-fire-orange);
    cursor: pointer;
}

.modal-close-btn:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-fire-orange);
}

.modal-product-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--accent-fire-orange);
    margin-bottom: 10px;
    font-weight: bold;
}

.modal-product-specs {
    font-size: 1rem;
    color: #e0e6ed;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
    background: #030712;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 240, 255, 0.2);
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 20px;
}

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

.product-price {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--accent-fire-yellow);
}

.buy-btn {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--accent-fire-orange);
    color: var(--accent-fire-orange);
    padding: 8px 16px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    text-decoration: none;
}

.buy-btn:hover {
    background: var(--accent-fire-orange);
    color: #030712;
    box-shadow: 0 0 15px var(--accent-fire-orange);
}

#login-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--panel-bg);
    border: 2px solid var(--accent-fire-orange);
    padding: 40px;
    border-radius: 12px;
    width: 350px;
    text-align: center;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.modal-content h3 {
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
    color: var(--accent-fire-orange);
}

.modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: #030712;
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #fff;
    border-radius: 4px;
}

.modal-content button {
    width: 100%;
    padding: 10px;
    background: var(--accent-fire-orange);
    color: #030712;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

.close-modal {
    margin-top: 15px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

footer {
    background: #010409;
    padding: 30px 50px;
    text-align: center;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    color: var(--text-muted);
    font-size: 0.95rem;
}

@keyframes fire-flicker-outer {
    0% { transform: scale(1) skewX(0deg); border-radius: 50% 50% 20% 20%; }
    50% { transform: scale(1.06, 0.95) skewX(3deg); border-radius: 45% 55% 25% 15%; }
    100% { transform: scale(0.97, 1.04) skewX(-3deg); border-radius: 55% 45% 15% 25%; }
}
@keyframes fire-flicker-mid {
    0% { transform: scale(0.95) skewX(-2deg); }
    50% { transform: scale(1.05, 0.97) skewX(2deg); }
    100% { transform: scale(1.02, 1.03) skewX(-1deg); }
}
@keyframes fire-flicker-inner {
    0% { transform: scale(1) translateY(0); opacity: 0.9; }
    100% { transform: scale(1.1, 0.9) translateY(-3px); opacity: 1; }
}
@keyframes spark-rise {
    0% { transform: translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateY(-15px) scale(0.9); opacity: 0.5; }
    100% { transform: translateY(-30px) scale(0.4); opacity: 0; }
}

@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
        height: auto;
    }
    .flame-section {
        height: 45vh;
    }
    .content-section {
        padding: 40px 20px;
        text-align: center;
        align-items: center;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    .cta-btn, .cta-btn-secondary {
        width: 100%;
    }
    .video-container {
        height: 280px;
    }
    .admin-form {
        grid-template-columns: 1fr;
    }
    .admin-form textarea, .admin-form button, .admin-form select {
        grid-column: span 1;
    }
    .filters-container {
        grid-template-columns: 1fr;
    }
}