/* ============================================================
   VOYYO — estilo iCloud (claro, vidrio esmerilado, tarjetas suaves)
   Base compartida por el catálogo (index.html) y el panel (admin.html)
   ============================================================ */
:root {
  --bg: #f2f3f7;
  --bg2: #e9ebf2;
  --card: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #007aff;
  --accent-soft: rgba(0, 122, 255, 0.12);
  --green: #34c759;
  --red: #ff3b30;
  --amber: #ff9f0a;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.14);
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1200px 600px at 100% -10%, #dce7ff 0%, transparent 55%),
    radial-gradient(1000px 500px at -10% 0%, #e8e0ff 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.1px;
}

header {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--text);
  padding: 18px 16px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
header h1 { margin: 0 0 2px 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.3px; }
header p { margin: 0; color: var(--muted); font-size: 0.92rem; }

main { max-width: 1100px; margin: 0 auto; padding: 22px 16px 60px; }

h2 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.2px; margin: 18px 0 12px; }
h3 { font-size: 1.02rem; font-weight: 600; margin: 16px 0 10px; }
hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
a { color: var(--accent); }

/* ---------- Catálogo (index.html) ---------- */
#lista-productos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.producto-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.producto-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.producto-card h3 { margin: 0 0 8px 0; }
.producto-card .precio { font-weight: 700; font-size: 1.1em; color: var(--accent); }

/* ---------- Botones base ---------- */
button {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  border-radius: 980px;
  padding: 11px 18px;
  background: var(--accent);
  color: #fff;
  transition: filter .15s ease, transform .05s ease, box-shadow .15s ease;
}
button:hover { filter: brightness(1.05); }
button:active { transform: scale(0.98); }
button:disabled { background: #c7c7cc; color: #fff; cursor: not-allowed; filter: none; }

.producto-card button { width: 100%; margin-top: 10px; }

.error { color: var(--red); font-size: 0.9em; }

/* ---------- Inputs ---------- */
input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ---------- Modal (compartido) ---------- */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100;
}
.modal.oculto, .oculto { display: none; }
.modal-contenido {
  background: var(--card);
  border-radius: 22px;
  padding: 24px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.cerrar {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(120,120,128,0.12);
  color: var(--muted);
  border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 1em;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.cerrar:hover { background: rgba(120,120,128,0.2); filter: none; }

.opcion-retiro {
  display: block;
  margin: 8px 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.opcion-retiro.deshabilitada { color: #aaa; }

#modal-checkout input[type="tel"],
#modal-checkout input[type="file"] { width: 100%; margin: 8px 0 16px 0; }
#modal-checkout button { width: 100%; margin-top: 8px; }
