/* ==========================================================================
   BEAL - DISTRIBUIDOR MAYORISTA DE COMBUSTIBLES
   Sistema de Diseño Visual & Estilos Corporativos (Marine Blue & Gold)
   ========================================================================== */

:root {
  /* Paleta de Color Corporativa */
  --bg-primary: #050B14;
  --bg-secondary: #0A2540;
  --bg-tertiary: #0D325E;
  
  --gold-primary: #C5A059;
  --gold-secondary: #E5C378;
  --gold-glow: rgba(197, 160, 89, 0.35);
  --gold-border: rgba(197, 160, 89, 0.25);
  --gold-border-hover: rgba(229, 195, 120, 0.6);

  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  
  --card-bg: rgba(10, 37, 64, 0.45);
  --card-border: rgba(197, 160, 89, 0.22);
  --input-bg: rgba(5, 11, 20, 0.7);
  --input-border: rgba(148, 163, 184, 0.18);

  /* Tipografías */
  --font-brand: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transiciones */
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* --------------------------------------------------------------------------
   Resets y Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background-color: var(--bg-primary);
  background: radial-gradient(circle at 50% 20%, #0c2b4d 0%, #050B14 70%);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.loaded {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Luces Ambientales (Ambient Glow)
   -------------------------------------------------------------------------- */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(90px);
}

.ambient-glow-top {
  top: -10%;
  left: 50%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(13, 50, 94, 0.55) 0%, rgba(197, 160, 89, 0.12) 60%, transparent 80%);
  transform: translateX(-50%);
  animation: floatAmbient 12s ease-in-out infinite alternate;
}

.ambient-glow-bottom {
  bottom: -15%;
  right: 15%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, rgba(10, 37, 64, 0.4) 60%, transparent 80%);
  animation: floatAmbient 15s ease-in-out infinite alternate-reverse;
}

@keyframes floatAmbient {
  0% {
    transform: translate(-50%, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-46%, 25px) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: translate(-54%, -20px) scale(0.95);
    opacity: 0.85;
  }
}

/* --------------------------------------------------------------------------
   Contenedor Principal & Glassmorphism Card
   -------------------------------------------------------------------------- */
.hero-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.card-container {
  width: 100%;
  max-width: 580px;
  background: var(--card-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 52px 40px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 
    0 20px 50px -10px rgba(0, 0, 0, 0.7),
    0 0 40px -5px rgba(197, 160, 89, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  transition: 
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

body.loaded .card-container {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.card-container:hover {
  border-color: var(--gold-border-hover);
  box-shadow: 
    0 25px 60px -10px rgba(0, 0, 0, 0.8),
    0 0 50px 0px rgba(197, 160, 89, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   Isotipo y Animación de Levitación
   -------------------------------------------------------------------------- */
.logo-container {
  position: relative;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-glow {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(229, 195, 120, 0.3) 0%, rgba(13, 50, 94, 0.2) 60%, transparent 75%);
  border-radius: 50%;
  filter: blur(18px);
  z-index: 0;
  pointer-events: none;
}

.beal-logo {
  position: relative;
  z-index: 1;
  width: 110px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
  user-select: none;
}

.logo-float {
  animation: floatLogo 5s ease-in-out infinite;
}

@keyframes floatLogo {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
  100% {
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   Tipografía de Marca (BEAL Header)
   -------------------------------------------------------------------------- */
.brand-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;
}

.brand-title {
  font-family: var(--font-brand);
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: 0.42em;
  text-indent: 0.42em; /* Compensa el espaciado del último caracter para centrado exacto */
  color: var(--text-primary);
  margin-bottom: 18px;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  line-height: 1.1;
}

.gold-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), var(--gold-secondary), transparent);
  margin-bottom: 18px;
  border-radius: 2px;
}

/* Badge Rol Comercial */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 37, 64, 0.6);
  border: 1px solid var(--gold-border);
  padding: 8px 18px;
  border-radius: 999px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  transition: var(--transition-fast);
}

.role-badge:hover {
  border-color: var(--gold-primary);
  background: rgba(13, 50, 94, 0.7);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-primary);
}

.role-text {
  font-family: var(--font-brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-secondary);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Tarjeta Interactiva de Contacto
   -------------------------------------------------------------------------- */
.contact-card {
  width: 100%;
  background: rgba(5, 11, 20, 0.5);
  border: 1px solid rgba(197, 160, 89, 0.18);
  border-radius: 20px;
  padding: 22px 24px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition-smooth);
}

.contact-card:hover {
  border-color: var(--gold-border);
  background: rgba(5, 11, 20, 0.65);
}

.contact-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-secondary);
}

.icon-mail-header {
  width: 15px;
  height: 15px;
  color: var(--gold-primary);
}

.contact-label {
  font-family: var(--font-brand);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.email-action-box {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 14px;
  padding: 8px 10px 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition-fast);
}

.email-action-box:focus-within,
.email-action-box:hover {
  border-color: var(--gold-border);
  box-shadow: 0 0 16px rgba(197, 160, 89, 0.1);
}

.email-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  user-select: all;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

.email-text:hover {
  color: var(--gold-secondary);
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  border-radius: 10px;
  font-family: var(--font-brand);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition-fast);
  outline: none;
}

.btn:focus-visible {
  box-shadow: 0 0 0 2px var(--gold-primary);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
  padding: 0 14px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.1);
}

.btn-secondary.btn-copied {
  background: rgba(197, 160, 89, 0.15);
  border-color: var(--gold-primary);
}

.btn-primary {
  background: #0A2540;
  border: 1px solid var(--gold-border);
  color: var(--gold-secondary);
  width: 38px;
  padding: 0;
}

.btn-primary:hover {
  background: #0D325E;
  border-color: var(--gold-primary);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.8);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

/* --------------------------------------------------------------------------
   Toast Feedback de Copiado
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(10, 37, 64, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gold-primary);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--gold-glow);
  opacity: 0;
  visibility: hidden;
  transition: 
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.35s;
  pointer-events: none;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(14px);
}

.toast-icon {
  width: 18px;
  height: 18px;
  color: var(--gold-secondary);
}

/* --------------------------------------------------------------------------
   Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .hero-wrapper {
    padding: 16px;
  }

  .card-container {
    padding: 38px 20px 32px;
    border-radius: 22px;
  }

  .beal-logo {
    width: 90px;
  }

  .brand-title {
    font-size: 2.2rem;
    letter-spacing: 0.35em;
    text-indent: 0.35em;
  }

  .role-badge {
    padding: 6px 14px;
  }

  .role-text {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .contact-card {
    padding: 18px 14px;
  }

  .email-action-box {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 12px;
  }

  .email-text {
    text-align: center;
    font-size: 0.88rem;
  }

  .action-buttons {
    justify-content: center;
    width: 100%;
  }

  .btn-secondary {
    flex: 1;
  }

  .toast {
    bottom: 20px;
    width: calc(100% - 40px);
    max-width: 360px;
    justify-content: center;
  }
}
