@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --bg:          #faf7f2;
  --bg2:         #f3ede3;
  --card:        #ffffff;
  --gold:        #b8752a;
  --gold2:       #d4943e;
  --amber:       #c4783a;
  --purple:      #6b5f82;
  --purple2:     #8a7aa0;
  --cream:       #fdf9f2;
  --text:        #2c2010;
  --text2:       #5a4a34;
  --muted:       #9b8a72;
  --border:      #e6ddd0;
  --green:       #4a7a4e;
  --green-light: #eaf3ea;
  --shadow-sm:   0 1px 4px rgba(44,32,16,0.07);
  --shadow-md:   0 4px 20px rgba(44,32,16,0.10);
  --shadow-lg:   0 8px 40px rgba(44,32,16,0.14);
  --radius-sm:   10px;
  --radius:      16px;
  --radius-lg:   24px;
  --font-head:   'Cormorant Garamond', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;
  --t:           0.22s ease;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Navbar ─────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 76px; gap: 1rem;
  background: rgba(250,247,242,0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.75rem; font-weight: 600;
  color: var(--text); letter-spacing: 0.01em; white-space: nowrap;
}
.nav-logo span { color: var(--amber); }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem; list-style: none;
}
.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 500; color: var(--text2);
  transition: background var(--t), color var(--t);
}
.nav-links a:hover { background: var(--bg2); color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 0.5rem; }

.cart-icon-wrap {
  position: relative; padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--text); font-size: 1.15rem;
  transition: background var(--t);
}
.cart-icon-wrap:hover { background: var(--bg2); }

.cart-badge {
  position: absolute; top: -3px; right: -5px;
  background: var(--amber); color: #fff;
  font-size: 0.62rem; font-weight: 700;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.user-name {
  font-size: 0.875rem; font-weight: 600; color: var(--text);
  padding: 0.4rem 0.75rem; border-radius: var(--radius-sm);
}

.nav-btn-login {
  padding: 0.45rem 1rem;
  background: var(--amber); color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600;
  transition: background var(--t);
}
.nav-btn-login:hover { background: var(--gold); }

.btn-admin {
  padding: 0.35rem 0.8rem;
  background: var(--text); color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.78rem; font-weight: 600;
  transition: background var(--t);
}
.btn-admin:hover { background: var(--amber); }

.btn-logout {
  padding: 0.35rem 0.75rem; border-radius: var(--radius-sm);
  font-size: 0.85rem; color: var(--muted); transition: all var(--t);
}
.btn-logout:hover { background: #fce4e4; color: #c0392b; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block; padding: 0.8rem 1.8rem;
  background: var(--amber); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(196,120,58,0.28);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.btn-primary:hover {
  background: var(--gold); transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(196,120,58,0.36);
}

.btn-secondary {
  display: inline-block; padding: 0.8rem 1.8rem;
  background: transparent; color: var(--amber);
  border: 1.5px solid var(--amber); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: all var(--t);
}
.btn-secondary:hover { background: #fdf3e7; }

.btn-submit-full {
  display: block; width: 100%; padding: 0.9rem 1.5rem;
  background: var(--amber); color: #fff;
  border: none; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: background var(--t), transform var(--t);
  box-shadow: 0 2px 10px rgba(196,120,58,0.22);
}
.btn-submit-full:hover { background: var(--gold); transform: translateY(-1px); }

.btn-back {
  display: inline-block; color: var(--muted);
  font-size: 0.875rem; margin-top: 1rem; transition: color var(--t);
}
.btn-back:hover { color: var(--text); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: 104px 2rem 60px; text-align: center;
  background: linear-gradient(155deg, #fdf9f0 0%, #f6efe2 45%, #ece4d5 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 700px 500px at 15% 60%, rgba(74,122,78,0.05) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 85% 30%, rgba(196,120,58,0.06) 0%, transparent 70%);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--green-light); color: var(--green);
  border: 1px solid rgba(74,122,78,0.2);
  padding: 0.35rem 1rem; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 600; line-height: 1.08;
  color: var(--text); margin-bottom: 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--amber); }

.hero-sub {
  font-size: 1.05rem; color: var(--text2);
  max-width: 500px; margin: 0 auto 2.5rem; line-height: 1.75;
}
.hero-float {
  font-size: 3.5rem; margin-bottom: 1rem;
  animation: float 4s ease-in-out infinite;
}
.hero-ctas { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section-inner { max-width: 1100px; margin: 0 auto; }

#naturales { padding: 50px 2rem; background: var(--bg); }
#audios    { padding: 50px 2rem; background: #f5f1f9; }

#naturales .section-inner,
#audios    .section-inner { text-align: center; }

#naturales .section-desc,
#audios    .section-desc { margin-left: auto; margin-right: auto; }


.section-label {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem;
}
#naturales .section-label { color: var(--green); }
#audios    .section-label { color: var(--purple); }

.section-heading {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 600;
  color: var(--text); margin-bottom: 0.5rem; line-height: 1.15;
}
.section-heading em { font-style: italic; }
#naturales .section-heading em { color: var(--amber); }
#audios    .section-heading em { color: var(--purple); }

.section-desc {
  color: var(--muted); font-size: 0.95rem;
  margin-bottom: 1.75rem; max-width: 460px; line-height: 1.7;
}

.subsection-title {
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 600; color: var(--text2);
  margin: 1.5rem 0 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.subsection-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── Product Grid & Card ────────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 400px));
  gap: 1.5rem;
  justify-content: center;
}

.product-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.7rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.product-emoji { font-size: 2.5rem; line-height: 1; }

.product-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.2rem 0.65rem; border-radius: 100px;
}
#naturales .product-tag { background: var(--green-light); color: var(--green); }
#audios    .product-tag { background: #ede9f5; color: var(--purple); }

.product-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 600; color: var(--text); line-height: 1.3;
}
.product-card p {
  font-size: 0.86rem; color: var(--text2); line-height: 1.65; flex: 1;
}

.product-price {
  font-family: var(--font-head);
  font-size: 1.65rem; font-weight: 600; color: var(--amber);
}
.product-price small {
  font-size: 0.75rem; font-family: var(--font-body);
  color: var(--muted); font-weight: 400; margin-left: 0.2rem;
}

.btn-add-cart {
  width: 100%; padding: 0.7rem;
  background: var(--bg2); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 600;
  color: var(--text); cursor: pointer; transition: all var(--t);
}
#naturales .btn-add-cart:hover { background: var(--amber); border-color: var(--amber); color: #fff; }
#audios    .btn-add-cart:hover { background: var(--purple); border-color: var(--purple); color: #fff; }

/* ── Ritual Banner ──────────────────────────────────────────────────────── */
.ritual-banner {
  padding: 60px 2rem; text-align: center;
  background: var(--green); color: #fff;
}
.ritual-banner h2 { font-family: var(--font-head); font-size: 2rem; margin-bottom: 0.5rem; }
.ritual-banner p  { opacity: 0.82; max-width: 480px; margin: 0 auto; }

/* ── Testimonials ───────────────────────────────────────────────────────── */
.testimonials { padding: 50px 2rem; background: var(--bg); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; max-width: 1100px; margin: 0 auto;
}

.testimonial {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-sm);
}
.testimonial-stars { color: var(--amber); font-size: 0.9rem; margin-bottom: 0.75rem; }
.testimonial p {
  color: var(--text2); font-size: 0.9rem;
  line-height: 1.7; font-style: italic; margin-bottom: 1rem;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.testimonial-author strong { font-size: 0.875rem; color: var(--text); display: block; }
.testimonial-author span   { font-size: 0.75rem; color: var(--muted); }

/* ── Pack especial ──────────────────────────────────────────────────────── */
.pack-section {
  padding: 50px 2rem;
  background: linear-gradient(140deg, #f5efe3 0%, #ece5d6 100%);
}
.pack-card {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 2rem 2rem; max-width: 600px; margin: 0 auto; text-align: center;
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.pack-card h2 {
  font-family: var(--font-head); font-size: 2.2rem; font-weight: 600;
  color: var(--text); margin-bottom: 1rem;
}
.pack-card p { color: var(--text2); margin-bottom: 1.5rem; line-height: 1.7; }
.pack-pricing {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; margin-bottom: 2rem;
}
.pack-old { text-decoration: line-through; color: var(--muted); font-size: 1.1rem; }
.pack-new { font-family: var(--font-head); font-size: 2.5rem; font-weight: 600; color: var(--amber); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--text); color: rgba(255,255,255,0.55);
  text-align: center; padding: 2.5rem 1rem; font-size: 0.83rem;
}
footer strong { color: var(--gold2); font-family: var(--font-head); font-size: 1.1rem; }
footer a { color: rgba(255,255,255,0.45); transition: color var(--t); }
footer a:hover { color: #fff; }

/* ── Flash messages ─────────────────────────────────────────────────────── */
.flash-ok, .flash-error {
  padding: 0.8rem 1.1rem; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; line-height: 1.4; margin: 0.5rem 0;
}
.flash-ok    { background: #ecf9ee; color: #1a6630; border: 1px solid #a8dab5; }
.flash-error { background: #fce8e8; color: #b71c1c; border: 1px solid #f0a8a8; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--text2);
}

.form-input {
  padding: 0.75rem 1rem;
  background: var(--card); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
  outline: none; width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(196,120,58,0.1);
}

/* ── Auth ───────────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 100px 1.5rem 3rem;
  background: linear-gradient(155deg, #fdf9f0 0%, #f0ebe0 100%);
}
.auth-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-card h2 {
  font-family: var(--font-head); font-size: 2rem; font-weight: 600;
  margin-bottom: 0.4rem; color: var(--text);
}
.auth-sub  { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.auth-link { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: var(--muted); }
.auth-link a { color: var(--amber); font-weight: 600; }

/* ── Common pages ───────────────────────────────────────────────────────── */
.page-section { max-width: 1100px; margin: 0 auto; padding: 110px 2rem 4rem; }
.page-header  { margin-bottom: 2.5rem; }
.page-header h1 {
  font-family: var(--font-head); font-size: 2.5rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.4rem;
}

/* ── Cart ───────────────────────────────────────────────────────────────── */
.cart-layout {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 2rem; align-items: start;
}
.cart-items-list { display: flex; flex-direction: column; gap: 1rem; }

.cart-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.cart-item-emoji { font-size: 2rem; min-width: 40px; text-align: center; }
.cart-item-info  { flex: 1; }
.cart-item-info strong {
  display: block; font-size: 0.95rem; font-weight: 600;
  color: var(--text); margin-bottom: 0.15rem;
}
.cart-item-tag { font-size: 0.75rem; color: var(--muted); }

.qty-form { display: flex; align-items: center; gap: 0.35rem; }
.qty-btn {
  width: 28px; height: 28px; border: 1.5px solid var(--border);
  background: var(--bg2); border-radius: 6px;
  cursor: pointer; font-size: 1rem; color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t);
}
.qty-btn:hover { border-color: var(--amber); color: var(--amber); }
.qty-num { min-width: 24px; text-align: center; font-weight: 600; font-size: 0.95rem; }

.cart-item-price {
  font-family: var(--font-head); font-size: 1.2rem; font-weight: 600;
  color: var(--amber); min-width: 60px; text-align: right;
}
.btn-remove {
  background: none; border: none; color: var(--muted);
  cursor: pointer; font-size: 0.9rem; padding: 0.25rem; transition: color var(--t);
}
.btn-remove:hover { color: #c0392b; }

.cart-summary {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
  box-shadow: var(--shadow-md); position: sticky; top: 80px;
}
.cart-summary h3 {
  font-family: var(--font-head); font-size: 1.4rem;
  margin-bottom: 1rem; color: var(--text);
}
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.5rem 0; font-size: 0.9rem; color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.summary-total {
  font-size: 1.1rem; font-weight: 600;
  color: var(--text); border-bottom: none; padding-top: 0.75rem;
}
.text-gold { color: var(--amber); }

.empty-state { text-align: center; padding: 5rem 2rem; color: var(--muted); }
.empty-state h3 { font-family: var(--font-head); font-size: 1.5rem; color: var(--text); margin-bottom: 0.5rem; }

/* ── Account / Profile ──────────────────────────────────────────────────── */
.cuenta-layout { max-width: 640px; }
.cuenta-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.cuenta-card h3 {
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 600;
  margin-bottom: 1.25rem; color: var(--text);
  border-bottom: 1px solid var(--border); padding-bottom: 0.75rem;
}

.orders-list { display: flex; flex-direction: column; gap: 1rem; }
.order-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow-sm);
}
.order-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 0.75rem; flex-wrap: wrap; gap: 0.5rem;
}
.order-id    { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.order-date  { font-size: 0.8rem; color: var(--muted); }
.order-total { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--amber); }
.order-items { font-size: 0.85rem; color: var(--text2); line-height: 1.6; }

/* ── Status badges ──────────────────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 0.2rem 0.7rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em;
}
.badge-pendiente { background: #fef9c3; color: #78450d; }
.badge-pagado    { background: #dcfce7; color: #14532d; }
.badge-enviado   { background: #dbeafe; color: #1e3a8a; }
.badge-entregado { background: #f3e8ff; color: #581c87; }

/* ── Admin ──────────────────────────────────────────────────────────────── */
.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow-sm);
}
.stat-card .stat-num  { font-family: var(--font-head); font-size: 2rem; font-weight: 600; color: var(--amber); }
.stat-card .stat-label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.admin-table {
  width: 100%; border-collapse: collapse; background: var(--card);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  font-size: 0.875rem;
}
.admin-table th {
  background: var(--bg2); padding: 0.75rem 1rem; text-align: left;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text2);
  border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }

.admin-select {
  padding: 0.35rem 0.7rem; border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 0.8rem;
  color: var(--text); background: var(--card); cursor: pointer;
}

/* ── Modal ──────────────────────────────────────────────────────────────── */
.modal {
  display: none; position: fixed; inset: 0;
  background: rgba(44,32,16,0.45); backdrop-filter: blur(5px);
  z-index: 200; align-items: center; justify-content: center; padding: 1.5rem;
}
.modal.active { display: flex; }
.modal-box {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 2.5rem; max-width: 480px; width: 100%;
  box-shadow: var(--shadow-lg); position: relative;
}
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; font-size: 1.2rem;
  color: var(--muted); cursor: pointer; line-height: 1; transition: color var(--t);
}
.modal-close:hover { color: var(--text); }
.modal-box h2 { font-family: var(--font-head); font-size: 1.75rem; margin-bottom: 1.5rem; color: var(--text); }
.msg-ok  { color: #1a6630; font-size: 0.9rem; margin-top: 0.75rem; }
.msg-err { color: #b71c1c; font-size: 0.9rem; margin-top: 0.75rem; }

/* ── Progress bar ───────────────────────────────────────────────────────── */
.progress-bar-wrap {
  background: var(--border); border-radius: 8px;
  height: 8px; overflow: hidden; max-width: 400px; margin: 0 auto;
}
.progress-bar-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--amber), var(--gold2));
  border-radius: 8px; transition: width 0.8s ease;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.1); }
}
