* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: #15803d;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #166534;
}

/* Header */
#header {
  background: transparent;
  transition: all 0.3s ease;
}

#header.scrolled {
  background: rgba(5, 46, 22, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.15);
}

#header.scrolled nav {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}

/* Nav underline */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4ade80;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Fade in */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: fadeUp 0.7s ease-out forwards;
}

/* Calendar */
.cal-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.cal-row:last-child {
  border-bottom: none;
}

.cal-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.cal-cell-active {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.cal-cell-inactive {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile calendar */
.month-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
}

.month-chip.active {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.month-chip.inactive {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Modal */
#login-modal {
  display: none;
}

#login-modal.active {
  display: flex;
}

.modal-enter {
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.97) translateY(8px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

::selection {
  background: #22c55e;
  color: white;
}

input:focus,
button:focus-visible {
  outline: none;
}

section {
  scroll-margin-top: 72px;
}

@media (max-width: 768px) {
  .reveal {
    transform: translateY(16px);
  }
}

/* Delays para animaciones y transiciones (evita inline styles) */
.delay-100 {
  transition-delay: 0.1s;
  animation-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
  animation-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
  animation-delay: 0.3s;
}

.delay-350 {
  transition-delay: 0.35s;
  animation-delay: 0.35s;
}

.delay-500 {
  transition-delay: 0.5s;
  animation-delay: 0.5s;
}

.delay-650 {
  transition-delay: 0.65s;
  animation-delay: 0.65s;
}

/* Hero Section */
.hero-section {
  padding-top: clamp(1rem, 3vw, 3rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

.hero-eyebrow-text {
  font-size: var(--text-xs);
}

.hero-heading {
  font-size: var(--text-2xl);
}

@supports (text-wrap: balance) {
  .hero-heading {
    text-wrap: balance;
  }
}

/* CTA buttons – hero section */
.btn-cta-text {
  font-size: var(--text-base);
}