/*
Theme Name: Ipnosi Professional
Theme URI: https://ipnosiprofessional.com
Author: Pendragon
Description: Theme a la medida para el rediseño de Ipnosi Professional. Multisite: mismo theme compartido entre /us, /mx, /it.
Version: 1.0.0
Text Domain: ipnosi
*/

:root {
  /* Acento — dirección visual vigente, extraída de reference/diseno.html (ver docs/DESIGN_SYSTEM.md) */
  --accent: #9A4DEB;
  --accent-soft: #C9A0F2;

  /* Violeta de marca, extraído del isotipo real (ver docs/brand-notes.md) — reservado para el motivo de la gota */
  --brand-violet-dark: #391D5B;
  --brand-violet: #512679;
  --brand-violet-light: #8E52B8;

  --bg: #1A181C;
  --surface: #211E25;
  --footer-bg: #131117;
  --text: #F2EEF5;
  --text-muted: #A9A1B2;
  --line: rgba(255, 255, 255, 0.09);

  --font-display: "Bellefair", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  --radius: 2px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 var(--space-sm);
  text-wrap: balance;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 4vw + 1rem, 4.5rem); }
h2 { font-size: clamp(1.9rem, 2.5vw + 1rem, 2.75rem); }
h3 { font-size: clamp(1.3rem, 1.2vw + 1rem, 1.6rem); }

p { margin: 0 0 var(--space-sm); max-width: 65ch; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.eyebrow, .eyebrow--light {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 600;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.9rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, background-color 0.2s ease, background-image 0.2s ease, color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}
/* Barrida de brillo metálico, compartida por todas las variantes */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  left: -75%;
  width: 50%;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::after { left: 125%; }
.btn:active { transform: scale(0.97); filter: brightness(1.15); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 45%, var(--brand-violet-dark) 75%, var(--accent) 100%);
  color: #fff;
}
.btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent-soft);
}
.btn-outline:hover {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--accent) 45%, var(--brand-violet-dark) 75%, var(--accent) 100%);
  border-color: transparent;
  color: #fff;
}

.btn-ghost-light {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--text);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
