:root {
  --bcp-blue: #002A8D;
  --bcp-blue-dark: #001A57;
  --bcp-blue-midnight: #060e20;
  --bcp-blue-light: #0056cc;
  --bcp-orange: #FF7800;
  --bcp-orange-hover: #e06900;
  --bcp-cyan: #00c0f3;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --card-bg: rgba(13, 27, 62, 0.65);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-hover-border: rgba(0, 192, 243, 0.35);
  --glass-glow: rgba(0, 122, 255, 0.15);
  --success: #10b981;
  --warning: #f59e0b;
}

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

html {
  font-family: 'Plus Jakarta Sans', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--text-primary);
  background-color: var(--bcp-blue-midnight);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background: 
    radial-gradient(circle at 15% 20%, rgba(0, 42, 141, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(255, 120, 0, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(0, 86, 204, 0.25) 0%, transparent 50%),
    #050c1c url('img/bg-home.webp') no-repeat center center fixed;
  background-size: cover;
  background-blend-mode: overlay;
}

/* Fondo decorativo con luces dinámicas sutiles */
.bg-mesh-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 50% -20%, rgba(0, 86, 204, 0.3), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.ambient-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.ambient-orb-1 {
  width: 450px;
  height: 450px;
  background: #004192;
  top: -100px;
  left: -80px;
}

.ambient-orb-2 {
  width: 380px;
  height: 380px;
  background: #ff7800;
  bottom: 50px;
  right: -80px;
  animation-delay: -5s;
  opacity: 0.18;
}

@keyframes floatOrb {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(35px) scale(1.08); }
}

/* Layout Wrapper */
.layout-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
.top-navbar {
  width: 100%;
  padding: 24px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(5, 12, 28, 0.5);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.system-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 13px;
  font-weight: 500;
  color: #34d399;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #10b981;
  opacity: 0.6;
  animation: ping 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.header-support-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.25s ease;
}

.header-support-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Main Content Container */
.main-container {
  flex: 1;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Badge de aviso */
.notice-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(255, 120, 0, 0.12);
  border: 1px solid rgba(255, 120, 0, 0.35);
  color: #ff9d42;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* Hero Headings */
.hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  max-width: 820px;
  background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 36px;
}

/* Modern Glass Card */
.glass-panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 32px 36px;
  width: 100%;
  max-width: 760px;
  margin-bottom: 40px;
}

/* Countdown */
.countdown-header {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.time-slot {
  background: rgba(0, 18, 51, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.time-slot:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 120, 0, 0.3);
}

.time-value {
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.time-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* Progress bar */
.progress-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 84%;
  background: linear-gradient(90deg, #0056cc 0%, #FF7800 100%);
  border-radius: 9999px;
  position: relative;
  transition: width 0.6s ease;
}

/* Subscription Form */
.form-section {
  width: 100%;
  max-width: 580px;
  margin-top: 10px;
}

.form-label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.notify-form {
  display: flex;
  gap: 10px;
  background: rgba(0, 18, 51, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.notify-form:focus-within {
  border-color: var(--bcp-orange);
  box-shadow: 0 0 0 3px rgba(255, 120, 0, 0.18);
}

.input-icon-group {
  display: flex;
  align-items: center;
  flex: 1;
  padding-left: 12px;
  gap: 10px;
}

.input-icon-group svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.notify-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.notify-input::placeholder {
  color: var(--text-muted);
}

.notify-btn {
  background: linear-gradient(135deg, #FF7800 0%, #eb6800 100%);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.notify-btn:hover {
  background: linear-gradient(135deg, #ff8619 0%, #f77000 100%);
  box-shadow: 0 4px 14px rgba(255, 120, 0, 0.35);
  transform: translateY(-1px);
}

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

.notify-feedback {
  margin-top: 12px;
  font-size: 13px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: opacity 0.3s ease;
}

.notify-feedback.success {
  display: flex;
  color: #34d399;
}

.notify-feedback.error {
  display: flex;
  color: #f87171;
}

/* Channels & Status Grid */
.section-subtitle {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 960px;
  margin-bottom: 36px;
  text-align: left;
}

.channel-card {
  background: rgba(8, 20, 48, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.channel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.channel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.channel-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 42, 141, 0.4);
  border: 1px solid rgba(0, 192, 243, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00c0f3;
}

.channel-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
}

.channel-badge.operational {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.channel-badge.maintenance {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.channel-name {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.channel-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Security Notice Box */
.security-callout {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 42, 141, 0.25);
  border: 1px solid rgba(0, 192, 243, 0.2);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 760px;
  width: 100%;
  text-align: left;
  margin-bottom: 24px;
}

.security-callout svg {
  color: #00c0f3;
  flex-shrink: 0;
}

.security-callout p {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
}

.security-callout strong {
  color: #fff;
}

/* Footer */
.main-footer {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 8, 20, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px 36px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .top-navbar {
    padding: 16px 20px;
  }
  .system-status-pill {
    display: none;
  }
  .glass-panel {
    padding: 24px 18px;
  }
  .countdown-grid {
    gap: 10px;
  }
  .time-slot {
    padding: 12px 4px;
  }
  .notify-form {
    flex-direction: column;
    padding: 10px;
  }
  .notify-btn {
    width: 100%;
    justify-content: center;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
