/* ===== Variables y base ===== */
:root {
  --bg: #0a0b0d;
  --bg-card: #12141a;
  --bg-elevated: #1a1d26;
  --text: #e8eaed;
  --text-muted: #9ca3af;
  --accent: #fbbf24;
  --accent-hover: #f59e0b;
  --accent-dim: rgba(251, 191, 36, 0.15);
  --border: #2d323d;
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.35rem;
}
.logo:hover {
  color: var(--text);
}
.logo-sub {
  color: var(--accent);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav a:hover {
  color: var(--text);
}

.btn-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.btn-cart:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
  color: var(--accent);
}
.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}

.btn-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}
.btn-menu span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .btn-menu {
    display: flex;
  }
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent-dim);
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

/* Carrusel de fondos difuminados */
.hero-carousel {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  transform: scale(1.08);
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide--active {
  opacity: 1;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, var(--accent-dim) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    rgba(10, 11, 13, 0.75);
}
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero-tag {
  font-size: 0.9rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ===== Secciones ===== */
.section {
  padding: 5rem 0;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* Quiénes somos */
.section-about {
  background: var(--bg-card);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.about-text p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}
.about-text strong {
  color: var(--text);
}
.about-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feature-card {
  padding: 1.25rem 1.5rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.feature-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}
.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* Servicio técnico */
.sat-content {
  max-width: 720px;
  margin-bottom: 2rem;
}
.sat-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.sat-note {
  padding: 1rem 1.25rem;
  background: var(--accent-dim);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
}
.brands-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.brands-strip span {
  padding: 0.4rem 0.9rem;
  background: var(--bg-elevated);
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* ===== Tienda ===== */
.section-shop {
  background: var(--bg-card);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg);
}
.product-card-body {
  padding: 1.25rem;
}
.product-card .brand {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.product-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
  line-height: 1.35;
}
.product-card .price {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}
.product-card .btn {
  margin-top: 1rem;
  width: 100%;
}

/* ===== Contacto ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.contact-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.contact-card h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--accent);
}
.contact-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.contact-card a {
  color: var(--text);
}
.contact-card a:hover {
  color: var(--accent);
}
.contact-map-wrap {
  margin-top: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.contact-map {
  display: block;
  width: 100%;
  height: 320px;
  border: none;
  filter: grayscale(0.2) contrast(1.05);
}

.contact-map-link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--accent);
}
.contact-map-link:hover {
  color: var(--accent-hover);
}

.contact-footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer a {
  color: var(--text-muted);
}
.footer a:hover {
  color: var(--accent);
}

/* ===== Modal producto ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.modal-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
  z-index: 1;
}
.modal-close:hover {
  background: var(--border);
}

.modal-body {
  padding: 1.5rem;
}
.modal-product img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.modal-product .brand {
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}
.modal-product h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}
.modal-product .price {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}
.modal-product .description {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.65;
}
.modal-product .btn {
  width: 100%;
}

/* ===== Drawer carrito ===== */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.drawer-overlay[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  z-index: 160;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.cart-drawer[aria-hidden="false"] {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.drawer-header h2 {
  margin: 0;
  font-size: 1.25rem;
}
.drawer-close {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--radius);
}
.drawer-close:hover {
  background: var(--bg-elevated);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.cart-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 0;
  margin: 0;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-of-type {
  border-bottom: none;
}
.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius);
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-info h4 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.cart-item-info .cart-item-price {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.9rem;
}
.cart-item-qty {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cart-item-remove {
  align-self: flex-start;
  padding: 0.35rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 4px;
}
.cart-item-remove:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.cart-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.cart-total {
  font-size: 1.1rem;
  margin: 0 0 1rem;
}
.cart-total strong {
  color: var(--accent);
}

/* ===== Checkout / Pasarela simulada ===== */
.modal-checkout {
  max-width: 440px;
}
.modal-checkout .modal-close {
  top: 0.75rem;
  right: 0.75rem;
}

.checkout-steps {
  padding: 2.5rem 1.75rem 1.75rem;
}

.checkout-step {
  padding: 0.5rem 0;
}
.checkout-step h2 {
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
}

.checkout-form label,
.payment-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text);
}
.checkout-form input,
.payment-form input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text);
  background: #1e232b;
  border: 1px solid #3d4553;
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.checkout-form input::placeholder,
.payment-form input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}
.checkout-form input:focus,
.payment-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}

.payment-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.checkout-disclaimer {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--accent-dim);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--accent);
}

.payment-total {
  margin: 1rem 0;
  font-size: 1.1rem;
}
.payment-total strong {
  color: var(--accent);
}

.checkout-success {
  text-align: center;
  padding: 1rem 0;
}
.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 2rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkout-success h2 {
  margin-bottom: 0.75rem;
}
.checkout-success p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.checkout-success .btn {
  margin-top: 0.5rem;
}
