/* =====================================================================
   TERMINAL OPERATIVA · Módulo Comunicaciones Internas
   Sistema de diseño clonado de aterrizar-terminal-child (flyers.aterrizar.viajes)
   Adaptado para piezas corporativas internas — Manual de marca: Gilroy
   ===================================================================== */

/* ---------- Tipografía institucional: Gilroy (manual de marca) ---------- */
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Regular.woff2') format('woff2'),
       url('../fonts/Gilroy-Regular.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-SemiBold.woff2') format('woff2'),
       url('../fonts/Gilroy-SemiBold.woff') format('woff');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Bold.woff2') format('woff2'),
       url('../fonts/Gilroy-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Extrabold.woff2') format('woff2'),
       url('../fonts/Gilroy-Extrabold.woff') format('woff');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-Heavy.woff2') format('woff2'),
       url('../fonts/Gilroy-Heavy.woff') format('woff');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../fonts/Gilroy-UltraLight.woff2') format('woff2');
  font-weight: 200; font-style: normal; font-display: swap;
}

:root {
  --brand-purple: #5e2b97;
  --brand-teal:   #1fa2a8;
  --brand-gold:   #d4a017;
  --brand-dark:   #050208;
  --gilroy: 'Gilroy', 'Montserrat', 'Inter', sans-serif;
}

/* ---------- Base de la Terminal (aurora + noise) ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--brand-dark);
  color: #fff;
  font-family: var(--gilroy);
  -webkit-font-smoothing: antialiased;
}

.aterrizar-terminal {
  min-height: 100vh;
  width: 100%;
  position: relative;
  overflow-x: hidden;
  background: linear-gradient(135deg, #050208 0%, #150824 50%, #050208 100%);
  background-size: 400% 400%;
  animation: aurora 20s ease infinite;
}

@keyframes aurora {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.noise-bg::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.035;
  z-index: 50;
}

/* ---------- Glassmorphism ---------- */
.glass {
  background: rgba(5, 2, 8, 0.6);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modern-card {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.modern-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(31, 162, 168, 0.3);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(31, 162, 168, 0.15);
}

/* Panel translúcido reutilizable (editor / preview) */
.glass-panel {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 28px;
}

/* ---------- Icon boxes con glow (idéntico a la Terminal) ---------- */
.icon-box-modern {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(10px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5), 0 8px 16px rgba(0, 0, 0, 0.1);
}
.modern-card:hover .icon-box-modern {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #1fa2a8, #5e2b97);
  box-shadow: 0 0 30px rgba(31, 162, 168, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

/* ---------- Texto metálico teal ---------- */
.text-metallic-teal {
  background: linear-gradient(135deg, #1fa2a8 0%, #ffffff 50%, #1fa2a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: metallic-shine 4s linear infinite;
}
@keyframes metallic-shine { to { background-position: 200% center; } }

/* ---------- Animaciones de entrada ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
  animation: fadeInUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  opacity: 0;
}

@keyframes floatRight {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(80px, -60px) rotate(120deg); }
  66% { transform: translate(-80px, 60px) rotate(240deg); }
}
@keyframes floatLeft {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-100px, 70px); }
}
.orb {
  position: fixed;
  border-radius: 9999px;
  filter: blur(150px);
  pointer-events: none;
  z-index: 0;
}
.orb-1 { top: -15%; right: 0; width: 600px; height: 600px; background: rgba(94, 43, 151, 0.15); animation: floatRight 30s linear infinite; }
.orb-2 { bottom: -5%; left: 0; width: 500px; height: 500px; background: rgba(31, 162, 168, 0.05); animation: floatLeft 25s linear infinite; }

/* ---------- Utilidades de marca ---------- */
.font-gilroy { font-family: var(--gilroy); }
.eyebrow {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.5em; color: var(--brand-teal); opacity: 0.6;
}

/* Botón táctico */
.btn-terminal {
  font-family: var(--gilroy);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 16px 28px;
  border-radius: 18px;
  border: 1px solid rgba(31, 162, 168, 0.35);
  background: linear-gradient(135deg, rgba(94,43,151,0.35), rgba(31,162,168,0.25));
  color: #fff;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}
.btn-terminal:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 162, 168, 0.8);
  box-shadow: 0 0 30px rgba(31, 162, 168, 0.35);
}
.btn-ghost {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); box-shadow: none; }

/* Inputs del editor */
.field-label {
  display: block;
  font-size: 10px; font-weight: 800; letter-spacing: 0.25em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.field-input, .field-textarea, .field-select {
  width: 100%;
  font-family: var(--gilroy);
  font-size: 14px;
  color: #fff;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px 14px;
  transition: all 0.3s ease;
  outline: none;
}
.field-input:focus, .field-textarea:focus, .field-select:focus {
  border-color: rgba(31,162,168,0.6);
  box-shadow: 0 0 0 3px rgba(31,162,168,0.12);
}
.field-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field-select option { background: #0d0714; color: #fff; }

/* Footer institucional (UI) */
.footer-inst {
  font-family: var(--gilroy);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
}
