/* ====================================================
   NODUS & CO — SISTEMA DE DISEÑO GLOBAL
   ==================================================== */

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

/* ── Variables ── */
:root {
  /* Colores */
  --bg-deep:       #0A0A0F;
  --bg-surface:    #13131A;
  --bg-card:       #1A1A24;
  --bg-elevated:   #22222E;
  --gold:          #C9A96E;
  --gold-light:    #E0C48A;
  --gold-dim:      #8A6E3E;
  --violet:        #7B6EAF;
  --violet-light:  #9B8ECF;
  --text-primary:  #F0EDE8;
  --text-secondary:#A8A8B8;
  --text-muted:    #5A5A6A;
  --border:        rgba(201,169,110,0.15);
  --border-soft:   rgba(255,255,255,0.06);
  --success:       #4ADE80;
  --warning:       #FACC15;
  --danger:        #F87171;
  --info:          #60A5FA;

  /* Espaciado */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Bordes */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
  --radius-full:9999px;

  /* Sombras */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.5);
  --shadow-gold:0 0 20px rgba(201,169,110,0.2);
  --shadow-gold-lg:0 0 40px rgba(201,169,110,0.3);

  /* Transiciones */
  --transition-fast: 0.15s ease;
  --transition-md:   0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index */
  --z-base:    1;
  --z-dropdown:100;
  --z-sticky:  200;
  --z-modal:   300;
  --z-toast:   400;
  --z-float:   500;
}

/* ── Modo Claro Sensorial Palo Rosa (Sensory Dusty Rose Light Theme) ── */
[data-theme="light"] {
  --bg-deep:       #FDF6F6;
  --bg-surface:    #F8ECEE;
  --bg-card:       #FFFFFF;
  --bg-elevated:   #F3DFE3;
  --gold:          #C27B88;
  --gold-light:    #D695A1;
  --gold-dim:      #9E5966;
  --violet:        #A07694;
  --violet-light:  #BD95B2;
  --text-primary:  #301B20;
  --text-secondary:#5E4047;
  --text-muted:    #946E76;
  --border:        rgba(194,123,136,0.22);
  --border-soft:   rgba(0,0,0,0.06);
  --shadow-sm:  0 2px 8px rgba(194,123,136,0.06);
  --shadow-md:  0 8px 24px rgba(194,123,136,0.08);
  --shadow-lg:  0 16px 48px rgba(194,123,136,0.12);
  --shadow-gold:0 0 20px rgba(194,123,136,0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Tipografía ── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.75rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
h5 { font-size: 1rem; font-weight: 600; }

p { color: var(--text-secondary); line-height: 1.7; }

.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }
.font-serif   { font-family: 'Playfair Display', serif; }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section { padding: var(--space-3xl) 0; }
.section-sm { padding: var(--space-xl) 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ── Divider decorativo ── */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}
.divider span {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

/* ── Section Header ── */
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-header .label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}
.section-header h2 { margin-bottom: var(--space-md); }
.section-header p  { max-width: 540px; margin: 0 auto; }

/* ── Glassmorphism ── */
.glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-soft);
}

.glass-gold {
  background: rgba(201,169,110,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Selection ── */
::selection { background: rgba(201,169,110,0.3); color: var(--text-primary); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-md); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: var(--space-2xl) 0; }
}
