/* ─── Reset mínimo ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  -webkit-tap-highlight-color: transparent;
}

/* Variables de colores neutros para ShadCN */
:root {
  /* Fondos */
  --color-bg: #ffffff;
  --color-bg-subtle: #f9fafb;
  --color-bg-muted: #f3f4f6;

  /* Texto */
  --color-text: #0a0a0a;
  --color-text-muted: #6b7280;
  --color-text-subtle: #9ca3af;

  /* Bordes */
  --color-border: #e5e5e5;
  --color-border-muted: #d1d5db;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);

  /* Colores de acento / primarios */
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-primary-muted: #bfdbfe;

  /* Feedback / Estados */
  --color-success: #16a34a;
  --color-error: #dc2626;
  --color-warning: #f59e0b;
  --color-info: #0ea5e9;
}

/* Soporte de clase dark para toggle manual */
.dark {
  --color-bg: #0a0a0a;
  --color-bg-subtle: #1f2937;
  --color-bg-muted: #374151;

  --color-text: #f9fafb;
  --color-text-muted: #d1d5db;
  --color-text-subtle: #9ca3af;

  --color-border: #ffffff1a;
  --color-border-muted: #4b5563;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.7);

  --color-primary: #60a5fa;
  --color-primary-hover: #3b82f6;
  --color-primary-muted: #1e40af;

  --color-success: #22c55e;
  --color-error: #ef4444;
  --color-warning: #facc15;
  --color-info: #38bdf8;
}

html {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  overflow-x: hidden; /* ← agrega esto */
  font-family: "Outfit", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  background-color: var(--color-bg);
  /* background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 3px,
    #f3f4f6 2px,
    #f3f4f6 4px
  ); */
  /* background-size: 10px 10px; */
  /* font-weight: lighter; */
}

h1 {
  font-size: 2em;
  /* margin: 0.67em 0; */
  margin-top: 0.67em;
  margin-bottom: 0;
}
a {
  background-color: transparent;
  text-decoration: none;
  color: var(--text-muted);
}
img {
  border-style: none;
}

button {
  all: unset; /* Elimina casi todos los estilos por defecto */
  display: inline-block; /* Necesario porque `all: unset` lo convierte en inline */
  box-sizing: border-box; /* Mejor control de tamaño */
  cursor: pointer; /* Restaurar cursor pointer */
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── Layout ─── */
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 80%; /* ← agrega esto */
  gap: 4rem;
  background-color: var(--color-bg);
  /* border-left: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5; */
  /* background-color: #0d0d0d; */
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/* ─── Hero ─── */
.hero-section {
  display: flex;
  color: var(--color-text);
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  /* max-width: 80%; */
  width: 100%;
  margin: 0 auto;
}
.hero-section h1 {
  text-align: center;
  font-size: min(8vw, 3rem);
  font-weight: 480;
}
.video-bg {
  width: 40%;
  height: auto;
}

/* ─── Aurora text ─── */
.aurora-text {
  background: linear-gradient(
    120deg,
    #22c55e,
    #06b6d4,
    #3b82f6,
    #a855f7,
    #22c55e
  );
  background-size: 300% 300%;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: auroraMove 6s ease infinite;
  position: relative;
}
.aurora-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  filter: blur(20px);
  opacity: 0.7;
  background: inherit;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes auroraMove {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ─── CTA Button ─── */
.custom-container {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.custom-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #6366f1, #ec4899, #fbbf24);
  opacity: 0.6;
  filter: blur(10px);
  border-radius: 12px;
  transition:
    opacity 0.2s,
    filter 0.2s;
}
.custom-container:hover .custom-bg {
  opacity: 1;
  filter: blur(5px);
}
.custom-button {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-text);
  color: var(--color-bg);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 50px;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.custom-button:hover {
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); */
  transform: translateY(-2px) scale(1.02);
}

/* ─── Counter cards ─── */
.counter-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* ← agrega esto */
  gap: 24px;
  /* margin: 40px 0; */
  padding: 0 16px; /* ← agrega esto */
  width: 100%; /* ← agrega esto */
}
.card {
  width: 260px;
  min-width: 0; /* ← agrega esto */
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  /* box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6); */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  transition: all 0.2s ease;
}
.card-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.number {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}
.label {
  /* font-size: 14px; */
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.icon {
  width: 28px;
  height: 28px;
  opacity: 0.6;
  color: var(--color-text-muted);
}
.icon svg {
  width: 70%;
  height: 70%;
  /* fill: #888; */
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  margin: 0 auto;
  padding: 0 5rem;
  min-height: 3.5rem;
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  header {
    padding: 0 1rem;
  }
}
/* Logo */
.logo {
  display: flex;
  width: auto;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text);
  font-weight: bold;
  font-size: 1.25rem;
}

.logo svg {
  width: 24px;
  height: 24px;
}

.logo svg path {
  fill: var(--color-text);
}

/* Menu */
.navigation {
  width: 100%;
  display: flex;
  justify-content: end;
}

.navigation ul {
  list-style: none;
  width: 100%;
  display: flex;
  /* justify-content: space-between; */
  align-items: center;
  gap: 1.5rem;
}

.navigation a {
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color 0.2s;
  padding: 0.5rem 0.25rem;
  width: 100%;
}

.navigation a:hover {
  color: var(--color-text);
}

/* Action Button */
.btn {
  background-color: var(--color-text);
  color: var(--color-bg);
  text-align: center;
  padding: 0.5rem 1rem;
  border-radius: 0.4rem;
  cursor: pointer;
  transition: background 0.2s;
  /* margin-left: auto; */
}

.action-btn {
  margin-left: auto;
}

/* .btn:hover {
  transform: scale(1.03);
} */

/* Responsive Menu */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
}

@media (max-width: 768px) {
  .navigation ul {
    position: absolute;
    top: 78%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    align-items: center;
    display: none;
    gap: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0.5rem;
  }

  .navigation ul.active {
    display: flex;
  }

  .menu-toggle {
    padding: 0.25rem 0.3rem;
    font-size: 1.5rem;
    display: flex;
    color: var(--color-text);
  }

  .navigation li,
  a {
    display: block;
    text-align: center;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

/* ─── Footer ─── */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 0 1.5rem;
  background-color: var(--color-bg);
  /* padding: 24px 16px; */
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  width: 100%;
}
/* Mobile footer */
@media (max-width: 592px) {
  .footer {
    flex-direction: column;
    gap: 0.75rem;
  }
  .menu-footer {
    flex-direction: column;
  }
}

.footer a {
  justify-content: center;
  display: flex;
  padding: 6px 0;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.footer a:hover {
  color: var(--color-text);
}
.footer svg {
  width: 14px;
  height: 14px;
  /* fill: currentColor;
  flex-shrink: 0; */
}
.menu-footer {
  display: flex;
  gap: 0.25rem 2rem;
  fill: currentColor;
  flex-shrink: 0;
}

.eq-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  /* background: #000; */
  border-radius: 12px;
}

.eq {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 140px;
}

.bar {
  width: 10px;
  border-radius: 3px;
  animation: bounce linear infinite alternate;
}

@keyframes bounce {
  0% {
    height: 6px;
  }
  100% {
    height: var(--maxH);
  }
}

/* Theme Toggle CSS */
.theme-toggle {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  overflow: hidden;
  background: var(--color-bg);
}

.theme-btn {
  padding: 0.25rem 0.3rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.theme-btn:hover {
  background: var(--color-border);
}

.theme-btn svg {
  pointer-events: none;
  width: 0.75rem;
  display: block;
}

.theme-btn.active {
  background-color: var(--color-border); /* un poco más oscuro que el fondo */
}
