/* =============================================
   VIBRAS × MANDALA — main.css
   Variables, reset, base
   ============================================= */

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

:root {
  /* Vibras */
  --v-dark:   #552359;
  --v-slate:  #6969CC;
  --v-mauve:  #C7A6FE;
  --v-violet: #DB94F2;

  /* Mandala */
  --m-royal: #1E399F;
  --m-mid:   #366EB7;
  --m-sky:   #67B7E6;
  --m-sun:   #F6DA52;

  /* Base — gradientes claros Vibras brand */
  --bg:      #F2E5FF;
  --bg2:     #E8D0FF;
  --bg3:     #DDB8FF;
  --dark:    #0D0B12;
  --white:   #FFFFFF;
  --border:  rgba(199,166,254,0.4);

  /* Texto */
  --text-primary:   #0D0B12;
  --text-secondary: rgba(13,11,18,0.58);
  --text-muted:     rgba(13,11,18,0.34);

  /* Tipografía */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-ui:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaciado */
  --nav-h: 64px;

  /* Superficies semánticas */
  --overlay:        rgba(13,11,18,0.95);  /* menú móvil, modales */
  --scrim-light:    rgba(13,11,18,0.55);  /* overlay ligero sobre imágenes */
  --text-on-dark:   rgba(255,255,255,0.55); /* texto secundario sobre fondo oscuro */
  --border-on-dark: rgba(255,255,255,0.12); /* bordes sutiles sobre fondo oscuro */
  --surface-tint:   rgba(219,148,242,0.08);  /* tinta rosada suave */

  /* Transiciones */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* ---- Skip link (accesibilidad) ---- */
.skip-link {
  position: fixed;
  top: -100%;
  left: 1rem;
  z-index: 99999;
  padding: .625rem 1.25rem;
  border-radius: 6px;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
  outline: 2px solid var(--v-mauve);
  outline-offset: 2px;
}

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

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

body {
  font-family: var(--font-ui);
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

/* Scroll container — normal flow, sin snap */
#scroll-container {
  /* solo envuelve el contenido, el scroll lo maneja body */
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ---- Tipografía base ---- */
.font-display { font-family: var(--font-display); }
.font-ui      { font-family: var(--font-ui); }

/* ---- Utilidades ---- */
.label {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}

/* Pill button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn-outline-white {
  border: 1px solid rgba(255,255,255,0.6);
  color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--bg);
  border-color: var(--white);
}

/* When inside dark hero, on hover text goes dark so it shows against white bg */
#section-home .btn-outline-white:hover { color: var(--v-dark); }

.btn-solid-white {
  background: var(--white);
  color: var(--bg);
}

.btn-solid-white:hover {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

/* Botón con borde oscuro — secciones de fondo claro */
.btn-outline-dark {
  border: 1px solid rgba(13,11,18,0.3);
  color: var(--dark);
}

.btn-outline-dark:hover {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

/* Botón sólido brand purple */
.btn-solid-brand {
  background: var(--v-dark);
  color: #fff;
  border: 1px solid transparent;
}

.btn-solid-brand:hover {
  background: var(--v-slate);
}

/* Link animado */
.link-anim {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease);
}

.link-anim::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease);
}

.link-anim:hover {
  color: var(--text-primary);
}

/* In dark hero, override to white */
#section-home .link-anim:hover {
  color: var(--white);
}

.link-anim:hover::after {
  transform: scaleX(1);
}

/* Placeholders de imagen */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 11px;
  font-family: var(--font-ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
}

/* ---- Responsive base ---- */
@media (max-width: 639px) {
  :root { --nav-h: 56px; }
}
