/* =============================================================
   GLOBAL.CSS
   Estilos base y componentes reutilizables en TODAS las páginas.
   ============================================================= */

/* ===== VARIABLES ===== */
:root {
  --orange: #d7822c;
  --blue: #55b0d2;
  --pink: #cc6699;
  --green: #a3c037;
  --purple: #7b6baa;
  --yellow: #f5c842;
  --dark: #1a1a2e;
  --white: #fffdf7;
  --cream: #fdf6e3;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--white);
  color: #222;
  overflow-x: hidden;
}

/* ===== CRAYON TEXTURE OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--green);
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(163, 192, 55, 0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 44px;
  height: 44px;
}

.nav-brand {
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--dark);
}

.nav-brand span {
  color: var(--green);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #444;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--orange);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--dark);
  transition: all 0.3s;
}

/* ===== MARQUEE ===== */
.marquee-strip {
  background: var(--dark);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  animation: marquee 20s linear infinite;
}

.marquee-track span {
  display: inline-block;
  margin: 0 2rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
}

.marquee-track span.dot {
  color: var(--pink);
  margin: 0 0.5rem;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ===== SECTION COMMONS ===== */
section {
  padding: 6rem 8%;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.section-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #555;
}

/* ===== BOTONES ===== */
.btn-primary,
.btn-secondary,
.btn-white,
.btn-outline-white {
  padding: 14px 32px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--orange);
  color: white;
  border: none;
  box-shadow: 0 6px 20px rgba(215, 130, 44, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(215, 130, 44, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background: white;
  color: var(--dark);
  border-color: white;
  transform: translateY(-3px);
}

.btn-white {
  background: white;
  color: var(--dark);
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 3px solid rgba(255, 255, 255, 0.6);
}

.btn-outline-white:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.15);
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 8%;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand h4 {
  font-size: 1.1rem;
  font-weight: 900;
  color: white;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 300px;
}

.footer-brand .tagline {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.05em;
}

.footer-col h5 {
  font-size: 0.85rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

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

.footer-col ul a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--yellow);
}

.footer-bottom {
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
  padding: 1.2rem 8%;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.fade-in:nth-child(2) {
  transition-delay: 0.1s;
}

.fade-in:nth-child(3) {
  transition-delay: 0.2s;
}

.fade-in:nth-child(4) {
  transition-delay: 0.3s;
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  section {
    padding: 4rem 6%;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
