/* =========================================================
   DESIGN SYSTEM — Creaciones Alejandra
   Mobile-first. Variables, reset, tipografía, utilidades.
   ========================================================= */

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

/* --- Custom Properties --- */
:root {
  /* Colors */
  --color-primary:        #F5517F;
  --color-primary-hover:  #E03A68;
  --color-primary-light:  #FFB3C8;
  --color-primary-xlight: #FFE4EC;
  --color-bg-blush:       #FFF0F5;
  --color-accent:         #FCE4EC;
  --color-text:           #2D1B24;
  --color-text-muted:     #9E7B87;
  --color-white:          #FFFFFF;
  --color-border:         #F5C6D8;
  --color-border-light:   #FDE8EF;
  --color-footer-bg:      #713f7a;
  --color-success:        #A8C5A0;
  --color-gold:           #D4AF7A;

  /* Typography */
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'Jost', system-ui, sans-serif;
  --font-script:  'Great Vibes', cursive;

  /* Spacing scale */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border radius */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 50px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card:  0 4px 24px rgba(245, 81, 127, 0.08);
  --shadow-hover: 0 8px 40px rgba(245, 81, 127, 0.16);
  --shadow-nav:   0 2px 16px rgba(45, 27, 36, 0.08);

  /* Transitions */
  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  /* Container */
  --container-max: 1280px;
  --container-pad: var(--space-4);

  /* Z-index */
  --z-nav:     100;
  --z-modal:   200;
  --z-toast:   300;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}

button { cursor: pointer; }

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

h1 { font-size: clamp(1.8rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-family: var(--font-sans); font-weight: 500; }
h4 { font-size: 1rem; font-family: var(--font-sans); font-weight: 600; }

p { font-weight: 300; }

.script { font-family: var(--font-script); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--color-primary); }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

@media (min-width: 640px) {
  :root { --container-pad: 1.5rem; }
}

@media (min-width: 1024px) {
  :root { --container-pad: 2rem; }
}

/* --- Section spacing --- */
.section {
  padding: var(--space-12) 0;
}

.section--blush {
  background: var(--color-bg-blush);
}

.section--accent {
  background: var(--color-accent);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.section-header .script {
  display: block;
  margin-bottom: var(--space-2);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: var(--space-2);
}

/* --- Utility classes --- */
.text-center  { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-muted   { color: var(--color-text-muted); }
.text-serif   { font-family: var(--font-serif); }
.fw-300 { font-weight: 300; }
.fw-400 { font-weight: 400; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }

.d-flex   { display: flex; }
.d-grid   { display: grid; }
.d-none   { display: none; }
.align-center  { align-items: center; }
.justify-center { justify-content: center; }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

.w-full { width: 100%; }

/* --- Butterfly SVG decorativo inline helper --- */
.butterfly-deco {
  display: inline-flex;
  align-items: center;
  opacity: 0.15;
  pointer-events: none;
}

/* --- Divider decorativo --- */
.divider-rosa {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-8) auto;
  max-width: 300px;
}

.divider-rosa::before,
.divider-rosa::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.divider-rosa span {
  color: var(--color-primary);
  font-size: 1.2rem;
}

/* --- Price display --- */
.price-wrap {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.price {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-text);
}

.price--sale {
  color: var(--color-primary);
  font-size: 1.2rem;
}

.price--original {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

/* --- Badge --- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge--oferta      { background: var(--color-primary); color: #fff; }
.badge--nuevo       { background: var(--color-success); color: #fff; }
.badge--personalizado { background: var(--color-gold); color: #fff; }
.badge--outline     { background: transparent; border: 1px solid var(--color-border); color: var(--color-text-muted); }

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  padding: var(--space-4) 0;
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--color-primary); }

.breadcrumb-sep { color: var(--color-border); }

.breadcrumb span:last-child { color: var(--color-primary); }

/* --- Empty state --- */
.empty-state {
  text-align: center;
  padding: var(--space-20) var(--space-4);
}

.empty-state svg {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-6);
  opacity: 0.3;
}

.empty-state h3 {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
