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

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

body {
  font-family: var(--font-body);
  color: var(--negro);
  background: var(--blanco);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

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

input, textarea { font-family: inherit; border: none; outline: none; background: none; }

/* === CONTENEDOR === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* === BOTONES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  border-radius: 2px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--rojo {
  background: var(--rojo);
  color: var(--blanco);
  box-shadow: 0 4px 18px rgba(238, 0, 47, 0.3);
}
.btn--rojo:hover {
  background: var(--rojo-hover);
  box-shadow: 0 6px 24px rgba(238, 0, 47, 0.4);
}

.btn--outline-blanco {
  background: transparent;
  color: var(--blanco);
  border: 2px solid var(--blanco);
}
.btn--outline-blanco:hover {
  background: rgba(255,255,255,0.1);
}

.btn--celeste {
  background: var(--celeste);
  color: var(--blanco);
}
.btn--celeste:hover { background: var(--celeste-dark); }

/* === TIPOGRAFÍA === */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
}

.section-title__underline {
  padding-bottom: 8px;
  border-bottom: 4px solid var(--rojo);
}

.section-title--blanco { color: var(--blanco); }
.section-title--negro { color: var(--negro); }

/* ============================================================
   ANIMACIONES AL SCROLL
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* === RESPONSIVE mobile nav height override === */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }
}
