/* =============================================
   BASE.CSS · Variables, Reset, Tipografía,
   Botones, Badges, Utilidades
   ============================================= */

:root {
  --naranja: #F5A623;
  --naranja-oscuro: #FFB627;
  --naranja-glow: rgba(245, 166, 35, 0.5);
  --blanco: #FFFFFF;
  --gris-claro: #F9FAFD;
  --gris-medio: #F0F2F5;
  --negro: #0A0A0A;
  --texto: #1a1a2e;
  --texto-gris: #555;
  --dark-bg: #0a1628;
  --darker-bg: #050a14;
  --glass-bg: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(245, 166, 35, 0.25);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--texto);
  background: var(--blanco);
  overflow-x: hidden;
}

/* === TIPOGRAFÍA === */
h1 { font-size: 72px; font-weight: 700; line-height: 1.05; letter-spacing: -2px; }
h2 { font-size: 42px; font-weight: 600; line-height: 1.15; letter-spacing: -1px; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.3; }
p  { font-weight: 300; }

/* === LAYOUT === */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
section { padding: 120px 0; position: relative; }

/* === GLASS === */
.glass {
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 24px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}
.glass-light {
  background: rgba(255, 255, 255, 0.65);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* === BOTONES === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(245,166,35,0.9), rgba(255,182,39,0.9));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  box-shadow: 0 0 30px rgba(245,166,35,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
  animation: pulse-glow 2.8s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(245,166,35,0.8), inset 0 1px 0 rgba(255,255,255,0.5);
  animation: none;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-outline-green {
  background: transparent;
  color: var(--naranja);
  border: 1.5px solid var(--naranja);
}
.btn-outline-green:hover {
  background: var(--naranja);
  color: #fff;
}

.btn-dark {
  background: transparent;
  color: var(--texto);
  border: 1.5px solid rgba(26,26,46,0.25);
}
.btn-dark:hover {
  background: var(--naranja);
  color: #fff;
  border-color: var(--naranja);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(245,166,35,0.5), inset 0 1px 0 rgba(255,255,255,0.4); }
  50%       { box-shadow: 0 0 50px rgba(245,166,35,0.8), inset 0 1px 0 rgba(255,255,255,0.5); }
}

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(245, 166, 35, 0.12);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 166, 35, 0.3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--naranja);
}
.badge-light {
  background: rgba(245, 166, 35, 0.08);
  color: var(--naranja);
}
.badge-white {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* === SECTION HEAD === */
.section-head { text-align: center; margin-bottom: 72px; }
.section-head .badge { margin-bottom: 20px; }
.section-head h2 { color: var(--negro); margin-bottom: 16px; }
.section-head p { font-size: 18px; max-width: 640px; margin: 0 auto; color: var(--texto-gris); }
.section-head.light h2 { color: #fff; }
.section-head.light p  { color: rgba(255,255,255,0.65); }

/* === CURSOR GLOW === */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,166,35,0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out;
  mix-blend-mode: screen;
}

/* === REVEAL ANIMATION === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Evitar que JS lento deje secciones invisibles */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* === BOTONES FLOTANTES === */
.whatsapp-btn {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 800;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: wa-pulse 3s ease-in-out infinite;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.7);
  animation: none;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.5); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,0.9), 0 0 0 8px rgba(37,211,102,0.1); }
}

.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245,166,35,0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(245,166,35,0.4);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover   { background: var(--naranja); box-shadow: 0 6px 24px rgba(245,166,35,0.7); }
