/* Emprendedores — Design System (referencia Nory + paleta cálida) */

:root {
  --bg-primary: #f5f3f0;
  --bg-secondary: #ffffff;
  --bg-muted: #ebe8e3;
  --bg-accent-dark: #0f0614;
  --text-primary: #111015;
  --text-secondary: #6b7280;
  /* Violeta lila (mismos CTAs que hero / Nory) */
  --accent-primary: #c8b6ff;
  --accent-secondary: #3b82f6;
  --border-color: #e8e4de;

  /* Hero / modo oscuro “Nory” */
  --hero-headline: var(--accent-primary);
  --hero-lime: #b8e447;
  --footer-lavender: #b8b0ff;
  --footer-bg: #0a0310;

  /* Pills métricas (resultados) */
  --dot-teal: #5ee0d0;
  --dot-blue: #4158d0;
  --dot-coral: #f05050;

  --star-purple: #7c3aed;

  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --shadow-card: 0 1px 3px rgb(0 0 0 / 0.05), 0 1px 2px rgb(0 0 0 / 0.04);
  --shadow-soft: 0 20px 40px -16px rgb(15 6 20 / 0.12);
  --shadow-float: 0 24px 48px -12px rgb(0 0 0 / 0.25);
  --radius-btn: 10px;
  --radius-card: 20px;
  --radius-visual: 24px;
  --header-height: 4.25rem;
  --container-max: 1240px;
  --section-pad-y: clamp(4.5rem, 11vw, 7rem);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* Typography */
h1 {
  font-weight: 800;
  font-size: clamp(3rem, 5vw + 1rem, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 0 0 1rem;
}

h2 {
  font-weight: 800;
  font-size: clamp(2.25rem, 2vw + 1.5rem, 3rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
}

h3 {
  font-weight: 600;
  font-size: clamp(1.25rem, 0.5vw + 1.1rem, 1.5rem);
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

.text-small {
  font-size: 0.875rem;
  line-height: 1.5;
}

.container {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background-color 0.25s ease, backdrop-filter 0.25s ease, box-shadow 0.25s ease;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.site-header.is-scrolled {
  background-color: rgb(245 243 240 / 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border-color);
}

.site-header--dark {
  background-color: transparent;
}

.site-header--dark.is-scrolled {
  background-color: rgb(15 6 20 / 0.82);
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.06);
}

.site-header__inner {
  width: min(100% - 2rem, var(--container-max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.site-header--dark .logo {
  color: var(--bg-primary);
}

.logo img {
  height: 32px;
  width: auto;
}

.site-header--dark .logo img {
  filter: brightness(0) invert(1);
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}

.nav a {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-primary);
  opacity: 0.9;
  transition: opacity 0.2s, color 0.2s;
}

.site-header--dark .nav a {
  color: var(--bg-primary);
}

.nav a:hover {
  opacity: 1;
  color: var(--accent-secondary);
}

.site-header--dark .nav a:hover {
  color: var(--accent-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent-primary);
  color: var(--bg-accent-dark);
}

.btn--primary:hover {
  box-shadow: 0 8px 28px rgb(200 182 255 / 0.45);
  filter: brightness(1.03);
}

/* CTA principal sobre fondo oscuro (referencia Nory) */
.btn--lilac {
  background: var(--hero-headline);
  color: var(--bg-accent-dark);
  font-weight: 700;
}

.btn--lilac:hover {
  box-shadow: 0 8px 28px rgb(200 182 255 / 0.45);
  filter: brightness(1.03);
}

.btn--ghost {
  background: transparent;
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.btn--ghost:hover {
  background: rgb(59 130 246 / 0.08);
}

.btn--ghost-light {
  background: transparent;
  border-color: rgb(255 255 255 / 0.5);
  color: var(--bg-primary);
}

.btn--ghost-light:hover {
  background: rgb(255 255 255 / 0.1);
  border-color: var(--bg-primary);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Hero — layout 2 columnas + UI flotante */
.hero {
  position: relative;
  min-height: min(92vh, 920px);
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0;
  margin-top: calc(-1 * var(--header-height));
  padding-top: calc(var(--header-height) + 2.5rem);
  background-color: var(--bg-accent-dark);
  color: var(--bg-primary);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg-accent-dark);
  background-image: url("../images/hero-background.jpg");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgb(15 6 20 / 0.94) 0%,
    rgb(15 6 20 / 0.78) 38%,
    rgb(15 6 20 / 0.45) 58%,
    rgb(15 6 20 / 0.25) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__layout {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }
}

.hero__content {
  max-width: 38rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem 0.4rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgb(245 243 240 / 0.95);
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.12);
  backdrop-filter: blur(8px);
}

.hero-badge__star {
  color: var(--hero-lime);
  font-size: 0.85rem;
}

.hero h1 {
  color: var(--hero-headline);
  text-shadow: 0 4px 48px rgb(0 0 0 / 0.35);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero p {
  color: rgb(245 243 240 / 0.88);
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.125rem);
  line-height: 1.65;
  max-width: 36rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 520px;
}

@media (min-width: 1024px) {
  .hero__visual {
    justify-self: end;
  }
}

.hero__figure {
  position: relative;
  border-radius: var(--radius-visual);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-float);
  border: 1px solid rgb(255 255 255 / 0.08);
}

.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-float {
  position: absolute;
  z-index: 3;
  background: var(--bg-secondary);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.2);
  border: 1px solid var(--border-color);
}

.hero-float--tl {
  top: 12%;
  left: -4%;
  max-width: 200px;
}

.hero-float--bl {
  bottom: 10%;
  left: -2%;
  right: 8%;
  min-width: min(100% - 2rem, 320px);
}

@media (max-width: 1023px) {
  .hero-float--tl {
    left: 4%;
  }
  .hero-float--bl {
    left: 4%;
    right: 4%;
  }
}

.hero-float__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.hero-float__value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-float__pill {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgb(184 228 71 / 0.25);
  color: #3d4f0a;
}

.hero-float__bars {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.75rem;
  gap: 2px;
}

.hero-float__bar {
  flex: 1;
  border-radius: 2px;
}

.hero-float__bar:nth-child(1) {
  background: #7c3aed;
  flex: 1.1;
}
.hero-float__bar:nth-child(2) {
  background: #93c5fd;
  flex: 0.9;
}
.hero-float__bar:nth-child(3) {
  background: #c4b5fd;
  flex: 1;
}

.hero-float__legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.65rem;
  color: var(--text-secondary);
}

/* Sections */
.section {
  padding: var(--section-pad-y) 0;
}

.section--tight {
  padding: clamp(3rem, 6vw, 4rem) 0;
}

.section-title {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-title p {
  margin-bottom: 0;
}

.section-title--wide {
  max-width: 52rem;
}

/* Resultados / métricas (3 columnas + divisores) */
.impact-section {
  padding: var(--section-pad-y) 0;
  background: var(--bg-primary);
}

.impact-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 3.5rem;
}

.impact-head h2 {
  color: var(--text-primary);
}

.impact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .impact-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }
}

.impact-col {
  text-align: center;
  padding: 0 1.5rem;
}

@media (min-width: 900px) {
  .impact-col {
    padding: 0 2.5rem;
    border-right: 1px solid var(--border-color);
  }
  .impact-col:last-child {
    border-right: none;
  }
}

.pill-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.85);
  border: 1px solid var(--border-color);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.75rem;
}

.pill-metric__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pill-metric__dot--teal {
  background: var(--dot-teal);
}
.pill-metric__dot--blue {
  background: var(--dot-blue);
}
.pill-metric__dot--coral {
  background: var(--dot-coral);
}

.stat-big {
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.stat-prefix {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
  margin-bottom: 0.15rem;
}

.stat-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 16rem;
  margin: 1.25rem auto 0;
}

/* Feature duo (tarjetas con panel interior) */
.feature-duo-section {
  padding: var(--section-pad-y) 0;
  background: var(--bg-primary);
}

.feature-duo-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .feature-duo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.feature-nory-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.feature-nory-card h3 {
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.feature-nory-card > p {
  margin-bottom: 1.75rem;
  line-height: 1.55;
}

.feature-nory__visual {
  background: var(--bg-muted);
  border-radius: 16px;
  padding: 1.5rem;
  min-height: 200px;
}

.feature-pills {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-pill-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.feature-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.feature-pill-icon--g {
  background: #166534;
  color: #fff;
}
.feature-pill-icon--p {
  background: #6d28d9;
  color: #fff;
}

.feature-pill-text {
  flex: 1;
  background: var(--bg-secondary);
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.feature-hub {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  position: relative;
}

.feature-hub__center {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: var(--text-primary);
  color: var(--hero-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  z-index: 1;
}

.feature-hub__orbit {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  pointer-events: none;
}

.feature-mini {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.feature-mini:nth-child(1) {
  top: 8%;
  left: 12%;
}
.feature-mini:nth-child(2) {
  top: 18%;
  right: 10%;
}
.feature-mini:nth-child(3) {
  bottom: 28%;
  left: 8%;
}
.feature-mini:nth-child(4) {
  bottom: 12%;
  right: 14%;
}
.feature-mini:nth-child(5) {
  top: 42%;
  left: 4%;
}
.feature-mini:nth-child(6) {
  top: 48%;
  right: 6%;
}

/* Testimonios — split + masonry */
.testimonials-section {
  padding: var(--section-pad-y) 0 calc(var(--section-pad-y) + 2rem);
  background: var(--bg-primary);
  position: relative;
}

.testimonials-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, #5c1f1f, #7c2d12);
  opacity: 0.85;
}

.testimonials-split {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .testimonials-split {
    grid-template-columns: 0.38fr 0.62fr;
    gap: clamp(2rem, 5vw, 4.5rem);
  }
}

.testimonials__intro {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.trust-pill__g {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #dc2626;
  color: #fff;
  font-weight: 800;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonials__intro h2 {
  font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  line-height: 1.02;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.testimonials__intro > p {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.trust-badge-fake {
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.testimonials__masonry {
  column-count: 1;
  column-gap: 1.25rem;
}

@media (min-width: 640px) {
  .testimonials__masonry {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .testimonials__masonry {
    column-count: 3;
  }
}

.t-card {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.t-card__stars {
  color: var(--star-purple);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.t-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}

.t-card__footer {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.t-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-muted);
  flex-shrink: 0;
  object-fit: cover;
}

.t-card__who {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.t-card__who strong {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
}

/* Social proof */
.social-proof {
  background: var(--bg-primary);
  border-block: 1px solid var(--border-color);
}

.social-proof__logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 2rem 3rem;
}

.social-proof__logos img,
.social-proof__logo {
  height: 28px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.3s, filter 0.3s;
}

.social-proof__logos a:hover img,
.social-proof__logos a:hover .social-proof__logo {
  opacity: 1;
  filter: grayscale(0);
}

.social-proof__logo {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* Cards grid */
.grid-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgb(200 182 255 / 0.35), rgb(59 130 246 / 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  color: var(--text-primary);
}

/* Events */
.events-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.event-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.event-card__date {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}

.event-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: auto;
  padding-bottom: 1.5rem;
}

.event-card--large {
  padding: 2.5rem;
}

.event-card--large .event-card__title {
  margin-bottom: 0;
  padding-bottom: 0.75rem;
}

.event-card--large p {
  margin-bottom: 1rem;
}

.event-card--large .btn {
  margin-top: auto;
}

.event-card--large .event-card__meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.event-card p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 1rem;
}

.events-grid--single {
  grid-template-columns: 1fr !important;
  max-width: 720px;
  margin-inline: auto;
  gap: 2rem;
}

/* Page hero (inner pages) */
.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.page-hero h1 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.page-hero p {
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: 0;
}

/* Comunidad */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: center;
}

.search-wrap {
  flex: 1;
  min-width: 200px;
  max-width: 400px;
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-secondary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.2);
}

.members-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.member-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.2s;
}

.member-card:hover {
  transform: translateY(-2px);
}

.member-card__photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  background: var(--border-color);
}

.member-card__body {
  padding: 1.25rem 1.5rem;
}

.member-card__name {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.member-card__company {
  font-size: 0.875rem;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}

.member-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgb(200 182 255 / 0.22);
  color: var(--text-primary);
  border-radius: 6px;
}

/* Tabs recursos */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.tab {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.tab:hover {
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.tab.is-active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.resources-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.resource-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.resource-card__type {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.resource-card h3 {
  margin-bottom: 0.75rem;
}

.resource-card .btn {
  margin-top: 1rem;
}

/* CTA band */
.cta-band {
  background: var(--bg-accent-dark);
  color: var(--bg-primary);
  text-align: center;
  padding: clamp(4rem, 12vw, 6rem) 1.5rem;
}

.cta-band h2 {
  color: var(--bg-primary);
  margin-bottom: 1rem;
}

.cta-band p {
  color: rgb(245 243 240 / 0.85);
  max-width: 32rem;
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* Footer — Nory-inspired */
.site-footer {
  background: var(--footer-bg);
  color: var(--bg-primary);
  padding: clamp(3rem, 8vw, 5rem) 0 0;
  overflow: hidden;
}

.site-footer a {
  color: var(--bg-primary);
  opacity: 0.95;
  transition: opacity 0.2s, color 0.2s;
}

.site-footer a:hover {
  opacity: 1;
  color: #c4b5fd;
}

.footer-grid {
  display: grid;
  gap: 2.5rem 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: minmax(160px, 1.2fr) repeat(3, 1fr);
  }
}

.footer-brand {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--bg-primary);
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--footer-lavender);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.65rem;
}

.footer-col li a {
  font-size: 0.9375rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid rgb(255 255 255 / 0.08);
  font-size: 0.8125rem;
  color: rgb(245 243 240 / 0.65);
}

.footer-legal a {
  color: rgb(245 243 240 / 0.8);
}

.footer-tagline {
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 14rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--footer-lavender);
  margin: 0;
  padding: clamp(1rem, 4vw, 3rem) 0 clamp(2rem, 5vw, 4rem);
  user-select: none;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(160deg, var(--bg-primary) 0%, rgb(229 231 235 / 0.5) 50%, var(--bg-primary) 100%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-secondary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem;
  border: 1px solid var(--border-color);
}

.login-card h1 {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-card .subtitle {
  text-align: center;
  margin-bottom: 2rem;
}

.login-card label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

.login-card .field {
  margin-bottom: 1.25rem;
}

.login-card .btn--primary {
  width: 100%;
  margin-top: 0.5rem;
}

.login-card .register-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}

.login-card .register-link a {
  color: var(--accent-secondary);
  font-weight: 600;
}

.login-card .register-link a:hover {
  text-decoration: underline;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
}

.filter-panel {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
}

.filter-panel.is-open {
  display: flex;
}

.filter-chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: rgb(200 182 255 / 0.18);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile nav toggle (minimal) */
.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-btn);
  background: var(--bg-secondary);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0;
  background: var(--bg-primary);
  z-index: 99;
  padding: 1.5rem;
  padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid var(--border-color);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  font-weight: 600;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.site-header--dark .nav-toggle {
  border-color: rgb(255 255 255 / 0.25);
  background: rgb(255 255 255 / 0.08);
  color: var(--bg-primary);
}

.site-header--dark + .mobile-nav,
.site-header--dark ~ .mobile-nav {
  background: var(--bg-accent-dark);
}

.site-header--dark ~ .mobile-nav a {
  color: var(--bg-primary);
  border-color: rgb(255 255 255 / 0.1);
}

.mobile-nav--dark {
  background: var(--bg-accent-dark);
  border-top-color: rgb(255 255 255 / 0.1);
}

.mobile-nav--dark a {
  color: var(--bg-primary);
  border-color: rgb(255 255 255 / 0.08);
}

/* ——— Responsive (móvil y tablet estrecha) ——— */

@media (max-width: 639px) {
  h1 {
    font-size: clamp(2rem, 7vw + 0.85rem, 3.5rem);
    line-height: 1.05;
  }

  h2 {
    font-size: clamp(1.65rem, 5vw + 1rem, 2.75rem);
    line-height: 1.12;
  }

  body {
    font-size: 1rem;
  }

  .container {
    width: min(100% - 1.25rem, var(--container-max));
  }

  .site-header__inner {
    gap: 0.5rem;
  }

  .logo {
    min-width: 0;
  }

  .logo img {
    height: clamp(22px, 6vw, 28px);
    max-width: min(160px, 42vw);
    width: auto;
    object-fit: contain;
    object-position: left center;
  }

  .header-actions {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .header-actions .btn--sm {
    padding: 0.5rem 0.65rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .hero {
    min-height: unset;
    padding-bottom: clamp(2.5rem, 8vw, 3.5rem);
    align-items: flex-start;
  }

  .hero__layout {
    gap: 1.75rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  .section-title {
    margin-bottom: 2rem;
  }

  .impact-head {
    margin-bottom: 2.25rem;
  }

  .impact-col {
    padding-inline: 0;
  }

  .pill-metric {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .feature-pill-row {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .feature-pill-text {
    min-width: 0;
    border-radius: 12px;
    white-space: normal;
  }

  .feature-hub {
    min-height: 200px;
  }

  .feature-mini {
    width: 36px;
    height: 36px;
    font-size: 0.5rem;
  }

  .card,
  .feature-nory-card,
  .event-card,
  .resource-card {
    padding: 1.35rem 1.25rem;
  }

  .event-card--large {
    padding: 1.5rem 1.25rem;
  }

  .t-card {
    padding: 1.25rem;
  }

  .testimonials__intro h2 {
    font-size: clamp(1.75rem, 6vw + 0.5rem, 2.5rem);
  }

  .trust-pill {
    max-width: 100%;
    flex-wrap: wrap;
    font-size: 0.7rem;
    line-height: 1.4;
  }

  .cta-band {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cta-band .btn {
    width: 100%;
    max-width: 22rem;
  }

  .footer-tagline {
    font-size: clamp(1.75rem, 9vw + 0.5rem, 14rem);
    line-height: 1;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    text-wrap: balance;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .page-hero {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .page-hero h1 {
    font-size: clamp(1.75rem, 6vw + 0.75rem, 2.5rem);
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .members-grid {
    grid-template-columns: 1fr;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .login-page {
    padding: 1rem;
    align-items: flex-start;
    padding-top: 2rem;
  }

  .login-card {
    padding: 1.5rem 1.25rem;
  }

  .login-card h1 {
    font-size: clamp(1.35rem, 5vw, 1.75rem);
  }
}

@media (max-width: 899px) {
  .testimonials__intro {
    position: static;
    top: auto;
  }

  .testimonials-split {
    gap: 2rem;
  }
}

@media (max-width: 380px) {
  .header-actions > a.btn--ghost-light,
  .site-header:not(.site-header--dark) .header-actions > a.btn--ghost {
    display: none;
  }
}

/* Hero: tarjetas flotantes en flujo normal (evita overflow en móvil y tablet) */
@media (max-width: 1023px) {
  .hero__visual {
    display: flex;
    flex-direction: column;
    max-width: 100%;
  }

  .hero-float {
    position: relative;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-shadow: var(--shadow-card);
  }

  .hero-float--tl {
    order: 1;
    margin-bottom: 0.75rem;
  }

  .hero__figure {
    order: 2;
    aspect-ratio: 4 / 5;
    max-height: min(70vh, 520px);
  }

  .hero-float--bl {
    order: 3;
    margin-top: 1rem;
  }

  .hero-float__value {
    font-size: clamp(1.1rem, 4vw, 1.35rem);
  }

  .hero-float__legend {
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: flex-start;
  }

  .hero {
    min-height: unset;
    align-items: flex-start;
  }
}

@media (max-width: 1023px) and (min-width: 640px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }
}
