:root {
  --accent: #0f766e;        /* verde premium */
  --accent-dark: #0e5b59;

  --bg: #ffffff;           /* 👈 blanco real */
  --bg-soft: #f8fafc;      /* gris muy suave tipo Apple */
  --card-bg: #ffffff;

  --text: #0f172a;         /* texto oscuro elegante */
  --text-soft: #475569;    /* texto secundario */

  --shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}


* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
}

/* NAVBAR */
.navbar {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 30px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-weight: 800;
  color: var(--accent-dark);
  letter-spacing: 0.5px;
}

.logo span { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}


.cart-icon {
  background: var(--accent);
  color: white;
  padding: 6px 12px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
}

.cart-icon span {
  background: white;
  color: var(--accent);
  border-radius: 50%;
  padding: 2px 6px;
  margin-left: 6px;
}

/* HERO */
.hero {
  background: linear-gradient(120deg, #0ea5a4, #0e9de0);
  color: white;
  text-align: center;
  padding: 60px 20px;
}

.hero h2 { font-size: 2.4rem; margin-bottom: 0.4em; }

.hero p { font-size: 1.1rem; opacity: 0.95; }

.hero-badge {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
}

/* CATALOGO */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: var(--accent-dark);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: 0.25s ease;
}

.card:hover .thumb { transform: scale(1.03); }

.card h3 {
  margin: 12px;
  font-size: 1.05rem;
  color: var(--accent-dark);
}

.card p {
  margin: 0 12px 12px;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* COPY IMPLÍCITO */
.card::before {
  content: "PROYECTO LISTO • DESCARGA DIGITAL";
  display: block;
  background: linear-gradient(90deg, #0f766e, #0ea5a4);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  padding: 6px;
}

.card::after {
  content: "✔ Código incluido  ✔ Esquemas  ✔ Documentación";
  display: block;
  font-size: 0.75rem;
  color: #555;
  text-align: center;
  padding: 8px 10px 12px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-top: 1px solid #eee;
}

.price {
  font-weight: 800;
  color: var(--accent);
}

.btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.btn:hover { background: var(--accent-dark); }

.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn.full { width: 100%; margin-top: 8px; }

/* CARRITO */
.cart-panel {
  position: fixed;
  top: 70px;
  right: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  width: 340px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  z-index: 999;
}

.hidden { display: none; }

.cart-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #eee;
  padding: 6px 0;
}

input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.close-btn {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
}

/* YAPE */
.yape-copy {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 20px;
}

.yape-box {
  text-align: center;
  /*background: #fff;*/
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden { display: none; }

.modal-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

footer a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
}


/* 🔒 ALTURA FIJA PARA TODAS LAS IMÁGENES DEL CATÁLOGO */
.card .thumb,
.card img {
  width: 100%;
  height: 180px;        /* 👈 mismo alto para todas */
  object-fit: cover;   /* recorta sin deformar */
  object-position: center;
  display: block;
}


/* =========================
   🌙 BOTÓN DÍA / NOCHE
========================= */
.theme-toggle {
  margin-right: 12px;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: var(--accent);
  color: #fff;
}

/* =========================
   🌑 DARK MODE REAL
========================= */
body.dark {
  --bg: #0b1220;
  --text: #e5e7eb;
  --accent: #38bdf8;
  --accent-dark: #0ea5e9;
  --shadow: 0 6px 20px rgba(0,0,0,0.4);
  background: var(--bg);
  color: var(--text);
}

body.dark .navbar,
body.dark footer,
body.dark .card,
body.dark .cart-panel,
body.dark .modal-card {
  background: #020617;
  color: var(--text);
}

body.dark h2,
body.dark h3 {
  color: #e0f2fe;
}

body.dark .btn {
  background: #0f172a;
}

body.dark .btn.ghost {
  border-color: var(--accent);
  color: var(--accent);
}
