/* RESET & VARIABLES */
:root {
    --primary: #ff6600;
    --bg: #0a0a0a;
    --card: #141414;
    --text: #ffffff;
    --accent: #222;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    height: 80px; background: rgba(0,0,0,0.9);
    backdrop-filter: blur(15px); position: fixed; top: 0; width: 100%;
    z-index: 1000; border-bottom: 1px solid var(--accent);
    display: flex; align-items: center;
}

.nav-container {
    width: 90%; max-width: 1200px; margin: auto;
    display: flex; justify-content: space-between; align-items: center;
}

.logo { font-family: 'Orbitron'; font-weight: 800; color: #fff; text-decoration: none; font-size: 1.5rem; letter-spacing: -1px; }
.logo span { color: var(--primary); }

.cart-trigger { 
    background: var(--primary); padding: 8px 20px; border-radius: 4px; 
    cursor: pointer; display: flex; align-items: center; gap: 10px; font-weight: 600;
    transition: 0.3s;
}

.cart-trigger:hover { transform: scale(1.05); box-shadow: 0 0 20px rgba(255, 102, 0, 0.4); }

/* HERO */
.hero {
    height: 80vh; display: flex; align-items: center; justify-content: center;
    text-align: center; background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
}

.hero h1 { font-family: 'Orbitron'; font-size: clamp(2.5rem, 8vw, 5rem); line-height: 1; margin: 20px 0; }
.hero-tag { color: var(--primary); letter-spacing: 5px; font-size: 0.9rem; font-weight: 600; }
.btn-scroll { color: var(--text); text-decoration: none; opacity: 0.6; transition: 0.3s; }
.btn-scroll:hover { opacity: 1; color: var(--primary); }

/* PRODUCTOS */
.container { max-width: 1200px; margin: 80px auto; padding: 0 20px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.card { 
    background: var(--card); border: 1px solid var(--accent); border-radius: 12px;
    padding: 20px; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover { border-color: var(--primary); transform: translateY(-10px); }

/* Fallback de imagen */
.img-placeholder { font-family: 'Orbitron'; color: #222; font-weight: 800; font-size: 1.2rem; }

/* Modifica el contenedor para asegurar que la imagen no se salga al crecer */
.img-container {
    width: 100%; 
    height: 250px; 
    border-radius: 8px; 
    margin-bottom: 20px;
    background: #080808; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    overflow: hidden; /* Esto es vital para que la imagen no desborde */
    border: 1px solid #1a1a1a;
}

/* Añade una transición suave a la imagen */
.img-container img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; /* Controla la velocidad del zoom */
}

/* Cuando el usuario pase el ratón por la CARD, la imagen dentro crecerá */
.card:hover .img-container img {
    transform: scale(1.1); /* Crece un 10% */
}


.card h3 { font-family: 'Orbitron'; margin-bottom: 10px; font-size: 1.1rem; }
.price { color: var(--primary); font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }

.btn-add {
    width: 100%; padding: 12px; background: transparent; color: #fff;
    border: 1px solid #fff; border-radius: 6px; cursor: pointer; transition: 0.3s;
}

.btn-add:hover { background: #fff; color: #000; }

/* SIDEBAR CESTA */
.sidebar {
    position: fixed; right: -400px; top: 0; width: 380px; height: 100%;
    background: #0d0d0d; z-index: 2000; transition: 0.5s; padding: 40px;
    display: flex; flex-direction: column; border-left: 1px solid var(--accent);
}
.sidebar.active { right: 0; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.close-btn { background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; }

.cart-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 0; border-bottom: 1px solid #1a1a1a;
}

.btn-remove { background: none; border: none; color: #ff4444; cursor: pointer; font-size: 0.8rem; }

/* FORMULARIO MODAL */
.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9);
    z-index: 3000; backdrop-filter: blur(10px); align-items: center; justify-content: center;
}
.modal-card {
    background: var(--card); padding: 40px; border-radius: 20px; width: 90%; max-width: 500px;
    border: 1px solid var(--primary);
}
.input-group input, .input-group textarea {
    width: 100%; padding: 15px; margin-bottom: 15px; background: #000;
    border: 1px solid var(--accent); color: #fff; border-radius: 8px;
}
.btn-send { background: var(--primary); color: #fff; border: none; padding: 15px 30px; border-radius: 8px; cursor: pointer; font-weight: bold; width: 100%; margin-bottom: 10px; }
.btn-cancel { background: none; border: none; color: #666; cursor: pointer; width: 100%; }

/* Botón de Pago Premium */
.btn-checkout {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ff6600 0%, #ff9900 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.5);
    filter: brightness(1.1);
}

.btn-checkout:active {
    transform: translateY(1px);
}

/* Efecto de brillo que pasa por el botón */
.btn-checkout::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
}

.btn-checkout:hover::after {
    left: 120%;
}

.footer-copyright {
    text-align: center;
    font-size: 0.8em;
    color: #555;
    padding: 20px;
    border-top: 1px solid #eee;
}
