
:root{
  --accent:#0b3b73;
  --accent-2:#c92a2a;
  --muted:#666;
}
*{box-sizing:border-box}
body{font-family:Inter, Arial, sans-serif;margin:0;color:#111;background:#fff}
.container{max-width:1100px;margin:0 auto;padding:0 16px}
.site-header{position:fixed;top:0;left:0;right:0;background:#fff;border-bottom:1px solid #eee;z-index:60}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.brand img{height:56px}
.main-nav a{margin:0 12px;text-decoration:none;color:var(--muted);font-weight:600}
.header-actions{display:flex;align-items:center;gap:8px}
.header-actions input{padding:8px 10px;border-radius:6px;border:1px solid #ddd}
.header-actions button{background:none;border:1px solid #ddd;padding:8px 10px;border-radius:6px;cursor:pointer}

.hero{padding:120px 0 60px;background:linear-gradient(180deg, rgba(11,59,115,0.06), transparent 60%)}
.hero-inner{text-align:center;padding:40px 0}
.hero h1{font-size:36px;margin:0 0 6px;color:var(--accent)}
.hero p{margin:0 0 16px;color:var(--muted)}
.cta{display:inline-block;padding:12px 20px;border-radius:8px;background:var(--accent);color:#fff;text-decoration:none;font-weight:700}

.products{padding:30px 0 80px}
.products h2{margin-bottom:12px}
.products-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.card{background:#fff;border:1px solid #eee;padding:12px;border-radius:12px;display:flex;flex-direction:column;gap:10px}
.card img{width:100%;height:320px;object-fit:cover;border-radius:8px}
.card h4{margin:0;font-size:18px}
.card .price{font-weight:700;color:var(--accent-2)}

.cart-modal{position:fixed;inset:0;background:rgba(0,0,0,0.4);display:none;align-items:center;justify-content:center;padding:24px}
.cart-modal.show{display:flex}
.cart-content{background:#fff;padding:20px;border-radius:12px;max-width:520px;width:100%;position:relative}
.close{position:absolute;right:12px;top:12px;border:0;background:none;font-size:18px;cursor:pointer}
.cart-footer{display:flex;align-items:center;justify-content:space-between;margin-top:12px}

@media (max-width:900px){
  .products-grid{grid-template-columns:repeat(2,1fr)}
  .brand img{height:48px}
  .hero h1{font-size:28px}
  .card img{height:260px}
}

@media (max-width:600px){
  .products-grid{grid-template-columns:repeat(1,1fr)}
  .header-inner{flex-direction:column;gap:8px;align-items:flex-start}
  .header-actions{width:100%;justify-content:space-between}
  .brand img{height:44px}
}
/* === Modo oscuro solo visual, sin modificar layout === */

/* Fondo general negro, texto blanco */
body {
  background-color: #000 !important;
  color: #fff !important;
}

/* Secciones con fondo negro */
.hero,
.products,
footer {
  background-color: #000 !important;
  color: #fff !important;
}

/* Tarjetas y modales en tonos oscuros */
.card,
.cart-content {
  background-color: #111 !important;
  border-color: #222 !important;
  color: #fff !important;
}

/* Títulos y párrafos blancos */
h1, h2, h3, h4, h5, h6, p, span, label {
  color: #fff !important;
}

/* Header (buscador, carrito, cuenta) intacto */
.site-header {
  background-color: #fff !important;
  color: #000 !important;
}
.site-header a,
.site-header input,
.site-header button {
  color: #000 !important;
  background-color: #fff !important;
}

/* Mantiene la grilla y tamaño original de productos */
.products-grid .card img {
  height: 320px !important;
  object-fit: cover !important;
}


/* === Estilo para buscador con lupa integrada === */
.search-container {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
}

.search-container input {
  border: none;
  padding: 8px 10px;
  flex: 1;
  outline: none;
}

.search-container button {
  background: #0044cc;
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
}

.search-container button:hover {
  background: #003399;
}


/* === Botón de carrito moderno === */
#cartBtn {
  background: #0044cc;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#cartBtn:hover {
  background: #003399;
}

/* === Talles === */
.talles {
  margin-top: 8px;
  text-align: center;
}
.talle-options {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 10px 0;
}
.talle-btn {
  background: #222;
  color: #fff;
  border: 1px solid #555;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.talle-btn:hover {
  background: #0044cc;
}
.talle-btn.active {
  background: #0044cc;
  border-color: #0044cc;
  font-weight: bold;
}

/* === Contador del carrito === */
#cartBtn {
  position: relative;
}

#cartCount {
  position: absolute;
  top: -6px;
  right: -6px;
  background: red;
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}


