/* ═══════════════════════════════════════════════════
   ORDERLY PAGES — COMPONENTS
   Cursor · Announcement · Navbar · Buttons ·
   Cards · WhatsApp · Toast · Footer
 ═══════════════════════════════════════════════════ */

/* ─── Custom Cursor ─────────────────────────────── */
.cursor {
  position: fixed; width: 6px; height: 6px;
  background: var(--orange); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.22s var(--ease), height 0.22s var(--ease), opacity 0.22s var(--ease);
  will-change: transform;
  box-shadow: 0 0 12px var(--orange);
}
.cursor.hovered { width: 28px; height: 28px; opacity: 0.3; background: var(--orange); }
@media (hover: none) { .cursor { display: none; } }

/* ─── Announcement Bar ──────────────────────────── */
.announcement-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  height: 32px; display: flex; align-items: center; justify-content: center;
  background: #060606; border-bottom: 1px solid var(--border);
  color: var(--text-2); font-family: var(--font-b);
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em;
  text-decoration: none; transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.announcement-bar:hover { background: #0c0c0c; color: var(--white); border-color: var(--orange-border); }

/* ─── Navbar ────────────────────────────────────── */
nav {
  position: fixed; top: 32px; left: 0; right: 0; z-index: 200;
  height: 68px; padding: 0 8%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: rgba(10,10,10,0.3);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease), height 0.4s var(--ease);
}
nav.scrolled {
  height: 60px;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-family: var(--font-h); font-size: 1.1rem; font-weight: 800;
  color: var(--white); text-decoration: none;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
  transition: transform var(--ease);
}
.logo:hover { transform: translateY(-0.5px); }
.logo img { width: 28px; height: 28px; object-fit: contain; }
.logo .orange { color: var(--orange); }

.nav-center {
  display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center;
}
.nav-link {
  font-size: 0.85rem; font-weight: 500; color: var(--text-2);
  padding: 8px 14px; border-radius: var(--radius-sm);
  text-decoration: none; white-space: nowrap;
  transition: color var(--ease), background var(--ease);
}
.nav-link:hover { color: var(--white); background: var(--glass-bg); }

.nav-right {
  display: flex; align-items: center; gap: 24px; flex-shrink: 0;
}
.nav-phone {
  font-size: 0.8rem; color: var(--text-2); white-space: nowrap; font-weight: 500;
}
.nav-phone a { color: inherit; text-decoration: none; transition: color var(--ease); }
.nav-phone a:hover { color: var(--white); }

.cta-nav {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(180deg, rgba(232,114,26,0.08) 0%, rgba(232,114,26,0.02) 100%);
  color: var(--white); font-size: 0.82rem; font-weight: 600;
  padding: 9px 18px; border-radius: var(--radius-sm);
  text-decoration: none; white-space: nowrap;
  border: 1px solid var(--orange-border);
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.cta-nav:hover {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: var(--shadow-orange);
  transform: translateY(-0.5px);
}

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text-1); border-radius: 2px; transition: all 0.3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  display: none; position: fixed;
  top: 100px; left: 0; right: 0; z-index: 190;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 24px 8% 36px;
  flex-direction: column; gap: 6px;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { padding: 14px 18px; font-size: 0.95rem; border-radius: var(--radius-sm); }
.mobile-menu .cta-nav  { margin-top: 14px; justify-content: center; padding: 14px; }

/* ─── Buttons ───────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, var(--orange) 0%, #c4550f 100%);
  color: #fff;
  font-size: 0.84rem; font-weight: 600;
  letter-spacing: -0.015em;
  padding: 11px 24px; border-radius: var(--radius);
  border: 1px solid rgba(232,114,26,0.45); cursor: pointer;
  box-shadow: 
    0 1px 2px rgba(0,0,0,0.4), 
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 0 0 1px rgba(232,114,26,0.1);
  transition: all var(--ease);
  white-space: nowrap;
}
.btn-primary:hover {
  background: linear-gradient(180deg, #f2802a 0%, var(--orange) 100%);
  border-color: rgba(232,114,26,0.60);
  box-shadow: 
    0 4px 12px rgba(232,114,26,0.15),
    inset 0 1px 0 rgba(255,255,255,0.18);
  transform: translateY(-0.5px);
}
.btn-primary svg { transition: transform var(--ease); }
.btn-primary:hover svg { transform: translateX(3.5px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.015); color: var(--text-2);
  font-size: 0.84rem; font-weight: 600;
  letter-spacing: -0.015em;
  padding: 11px 24px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.06); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
  transition: all var(--ease);
  white-space: nowrap;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.12);
  color: var(--white);
  transform: translateY(-0.5px);
}

.btn-sm { padding: 8px 18px !important; font-size: 0.78rem !important; }

/* ─── Glass Card ────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: 
    0 4px 24px rgba(0,0,0,0.5), 
    0 1px 0 rgba(255,255,255,0.02) inset;
  position: relative;
  overflow: hidden;
  transition: all var(--ease);
}
.glass-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(400px circle at var(--x, 0px) var(--y, 0px), rgba(232,114,26,0.035), transparent 40%);
  pointer-events: none; opacity: 0; transition: opacity 0.5s var(--ease);
}
.glass-card:hover { 
  border-color: rgba(232,114,26,0.15); 
  background-color: rgba(255,255,255,0.015);
  box-shadow: 
    0 12px 40px rgba(0,0,0,0.7),
    0 0 30px rgba(232,114,26,0.03);
  transform: translateY(-1px);
}
.glass-card:hover::before { opacity: 1; }

/* ─── WhatsApp Float ────────────────────────────── */
.wa-float {
  position: fixed; bottom: 32px; right: 32px; z-index: 400;
}
.wa-float a {
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(37,211,102,0.3);
  transition: transform var(--ease), box-shadow var(--ease);
  position: relative;
}
.wa-float a:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 36px rgba(37,211,102,0.45);
}
.wa-float a::before {
  content: '¡Escríbenos ahora!';
  position: absolute; right: 70px;
  background: rgba(10,10,10,0.96); border: 1px solid var(--border);
  color: var(--text-1); font-size: 0.76rem; font-weight: 600;
  white-space: nowrap; padding: 7px 14px; border-radius: var(--radius-sm);
  opacity: 0; pointer-events: none; transition: opacity var(--ease), transform var(--ease);
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}
.wa-float a:hover::before { opacity: 1; transform: translateX(0); }
.wa-float svg { width: 26px; height: 26px; fill: #fff; }

/* ─── Toast ─────────────────────────────────────── */
.toast {
  position: fixed; bottom: 32px; left: 32px; z-index: 400;
  background: rgba(10,10,10,0.95); border: 1px solid var(--border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius); padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  max-width: 320px; opacity: 0; pointer-events: none;
  transform: translateY(12px);
  box-shadow: 
    0 12px 30px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.02) inset;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast-dot {
  width: 8px; height: 8px; background: #25D366; border-radius: 50%;
  flex-shrink: 0; box-shadow: 0 0 8px rgba(37,211,102,0.4);
  animation: glowPulse 2.2s ease infinite;
}
.toast-body { flex: 1; }
.toast-main { font-size: 0.82rem; color: var(--text-1); font-weight: 600; display: block; }
.toast-sub  { font-size: 0.74rem; color: var(--text-2); margin-top: 1px; }

/* ─── Footer ────────────────────────────────────── */
footer {
  background: #080808; border-top: 1px solid var(--border);
  padding: 100px 8% 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 80px; margin-bottom: 80px;
}
.footer-brand p { font-size: 0.88rem; color: var(--text-2); max-width: 280px; margin-top: 18px; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--font-b); font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 22px;
}
.footer-col a {
  display: block; font-size: 0.88rem; color: var(--text-2);
  margin-bottom: 12px; transition: color var(--ease), transform var(--ease);
}
.footer-col a:hover { color: var(--white); transform: translateX(2px); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-3); }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 800px) {
  nav { top: 32px; height: 60px; padding: 0 6%; }
  .nav-center, .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { top: 92px; padding: 20px 6% 30px; max-height: calc(100vh - 92px); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
  section { padding: 100px 6%; }
}
