@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Manrope:wght@300;400;500;600;700&display=swap");

/* Raíz Brunca — tokens y utilidades (equivalente a src/index.css del proyecto React) */

:root {
  --background: 44 33% 96%;
  --foreground: 140 25% 10%;

  --card: 44 33% 98%;
  --card-foreground: 140 25% 10%;

  --popover: 44 33% 98%;
  --popover-foreground: 140 25% 10%;

  --primary: 140 35% 14%;
  --primary-foreground: 44 33% 96%;

  --primary-glow: 140 30% 22%;
  --moss: 95 25% 35%;
  --tucan: 35 70% 52%;
  --tucan-foreground: 140 35% 14%;

  --secondary: 44 25% 90%;
  --secondary-foreground: 140 35% 14%;

  --muted: 44 20% 92%;
  --muted-foreground: 140 10% 35%;

  --accent: 95 25% 35%;
  --accent-foreground: 44 33% 96%;

  --destructive: 0 70% 45%;
  --destructive-foreground: 44 33% 96%;

  --border: 140 15% 85%;
  --input: 140 15% 88%;
  --ring: 140 35% 14%;

  --radius: 0.25rem;

  --gradient-hero: linear-gradient(
    180deg,
    hsl(140 35% 8% / 0.35) 0%,
    hsl(140 35% 8% / 0.75) 100%
  );
  --gradient-fade: linear-gradient(180deg, transparent 0%, hsl(var(--background)) 100%);
  --shadow-soft: 0 1px 2px hsl(140 35% 14% / 0.04), 0 8px 24px -12px hsl(140 35% 14% / 0.12);
  --shadow-deep: 0 20px 60px -20px hsl(140 35% 14% / 0.35);
  --shadow-glass:
    0 1px 0 0 hsl(0 0% 100% / 0.35) inset,
    0 -1px 0 0 hsl(0 0% 100% / 0.08) inset,
    0 1px 1px 0 hsl(140 35% 8% / 0.04),
    0 10px 40px -12px hsl(140 35% 14% / 0.25);
  --shadow-glass-dark:
    0 1px 0 0 hsl(0 0% 100% / 0.18) inset,
    0 -1px 0 0 hsl(0 0% 0% / 0.25) inset,
    0 10px 40px -12px hsl(140 35% 4% / 0.55);

  --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
::before,
::after {
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "Manrope", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
}

h1,
h2,
h3,
h4,
.font-display {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

.hairline {
  height: 1px;
  width: 100%;
  background-color: hsl(var(--border));
}

.eyebrow {
  font-size: max(12px, 0.75rem);
  line-height: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: hsl(var(--muted-foreground));
  font-weight: 500;
}

/*
 * Tipografía base en la portada: cumplimiento orientativo para texto legible en móvil (≥12px).
 */
.brunca-landing {
  font-size: max(16px, 1rem);
}

.container-tight {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 72rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 768px) {
  .container-tight {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s var(--transition-smooth);
}

.link-underline:hover {
  background-size: 100% 1px;
}

.glass {
  background: linear-gradient(135deg, hsl(0 0% 100% / 0.55) 0%, hsl(0 0% 100% / 0.25) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid hsl(0 0% 100% / 0.45);
  box-shadow: var(--shadow-glass);
}

.glass-strong {
  background: linear-gradient(135deg, hsl(0 0% 100% / 0.7) 0%, hsl(0 0% 100% / 0.4) 100%);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid hsl(0 0% 100% / 0.55);
  box-shadow: var(--shadow-glass);
}

.glass-dark {
  background: linear-gradient(135deg, hsl(140 35% 14% / 0.55) 0%, hsl(140 35% 8% / 0.35) 100%);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid hsl(0 0% 100% / 0.18);
  box-shadow: var(--shadow-glass-dark);
}

.glass-tint {
  background: linear-gradient(135deg, hsl(95 30% 60% / 0.3) 0%, hsl(35 70% 60% / 0.18) 100%);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid hsl(0 0% 100% / 0.35);
  box-shadow: var(--shadow-glass);
}

.glass-shine {
  position: relative;
  isolation: isolate;
}

.glass-shine::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    hsl(0 0% 100% / 0.6),
    hsl(0 0% 100% / 0) 40%,
    hsl(0 0% 100% / 0) 60%,
    hsl(0 0% 100% / 0.25)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.ambient-page {
  position: relative;
  isolation: isolate;
}

.ambient-page::before,
.ambient-page::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

.ambient-page::before {
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, hsl(var(--moss) / 0.55), transparent 60%);
  top: -25vw;
  left: -20vw;
}

.ambient-page::after {
  width: 65vw;
  height: 65vw;
  background: radial-gradient(circle, hsl(var(--tucan) / 0.4), transparent 60%);
  bottom: -25vw;
  right: -20vw;
}

.ambient-bg {
  position: relative;
}

/* Navbar: padding y tamaño de marca (evita togglear utilidades Tailwind por JS) */
#nav-pill {
  transition: padding 0.5s ease-out;
  padding: 0.625rem 1rem;
}

@media (min-width: 768px) {
  #nav-pill {
    padding: 0.625rem 1.5rem;
  }
}

header.nav-is-scrolled #nav-pill {
  padding: 0.5rem 0.75rem;
}

@media (min-width: 768px) {
  header.nav-is-scrolled #nav-pill {
    padding: 0.5rem 1rem;
  }
}

#nav-brand-text {
  transition: font-size 0.5s ease-out;
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  #nav-brand-text {
    font-size: 1.25rem;
  }
}

header.nav-is-scrolled #nav-brand-text {
  font-size: 1rem;
}

@media (min-width: 768px) {
  header.nav-is-scrolled #nav-brand-text {
    font-size: 1rem;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fade-in 0.35s ease-out;
}

/* Iconos sociales en navbar (tamaño similar a lucide 15px) */
.icon-social {
  width: 15px;
  height: 15px;
}

/* Barra de administración de WordPress (navbar fija) */
body.admin-bar #site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar #site-header {
    top: 46px;
  }
}
