/* ==========================================================================
   DEDICA STORE - SISTEMA DE DISEÑO APPLE MINIMALISTA (MOBILE-FIRST 390px)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-page: #000000;
  --bg-card: #141416;
  --bg-sheet: #1c1c1e;
  
  --text-primary: #f5f5f7;
  --text-secondary: #86868b;
  --text-muted: #55555a;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-sheet: rgba(255, 255, 255, 0.12);

  --font-sans: -apple-system, BlinkMacSystemFont, 'Plus Jakarta Sans', 'SF Pro Text', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --ease-apple: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-sheet: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  background-color: var(--bg-page);
  color: var(--text-primary);
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 440px; /* Óptimo para 360px - 430px */
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  height: 50px;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-link {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-link:hover, .header-link.active {
  color: #fff;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s var(--ease-apple);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: #ffffff;
  color: #000000;
}

.btn-primary:hover {
  background: #e8e8ed;
}

.btn-text {
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 18px;
}

.btn-text:hover {
  color: #ffffff;
}

/* ==========================================================================
   BOTTOM SHEET DE COMPRA (NATAL, LIMPIO Y DIRECTO)
   ========================================================================== */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sheet-dialog {
  background: var(--bg-sheet);
  border: 1px solid var(--border-sheet);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 14px 20px 28px;
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-sheet);
}

.sheet-overlay.active .sheet-dialog {
  transform: translateY(0);
}

.sheet-grabber {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  margin: 0 auto 16px;
}

.sheet-header {
  margin-bottom: 22px;
}

.sheet-product-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.sheet-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.sheet-options-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sheet-option-block {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sheet-option-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
}

.sheet-option-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 4px;
}

.sheet-action-btn {
  align-self: flex-start;
  padding: 8px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
  transition: background 0.2s ease;
}

.sheet-action-btn:hover {
  background: #e5e5ea;
}

.sheet-cancel-btn {
  width: 100%;
  margin-top: 14px;
  padding: 10px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}

.sheet-cancel-btn:hover {
  color: #ffffff;
}

/* Footer */
.site-footer {
  padding: 40px 0 30px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
}
