:root {
  --primary-navy: #0b192c;
  --secondary-navy: #1e3e62;
  --accent-cyan: #00adb5;
  --accent-blue: #2563eb;
  --accent-gold: #f59e0b;
  --text-white: #ffffff;
  --text-light: #f1f5f9;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --glass-bg: rgba(15, 23, 42, 0.72);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-card: rgba(30, 41, 59, 0.6);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at 50% 20%, #172554 0%, #0b1329 55%, #050a17 100%);
  color: var(--text-light);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 28px 16px;
}

/* Efectos de fondo con ondas y esferas de luz */
.waves-bg-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 480px;
  background-image: url('../img/Ondas.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.glow-sphere {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.sphere-blue {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35) 0%, rgba(37, 99, 235, 0) 70%);
  top: -80px;
  left: -120px;
}

.sphere-cyan {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.28) 0%, rgba(6, 182, 212, 0) 70%);
  bottom: -60px;
  right: -80px;
}

/* Contenedor general */
.site-container {
  width: 100%;
  max-width: 1080px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Barra superior institucional */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
  padding: 14px 24px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

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

.inst-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.inst-info {
  display: flex;
  flex-direction: column;
}

.inst-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.2px;
}

.inst-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.dot-live {
  width: 8px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-gold);
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Tarjeta Principal Hero */
.hero-section {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  align-items: center;
  gap: 36px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 48px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.55);
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chip-alert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #93c5fd;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: 2.65rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.highlight-text {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-desc strong {
  color: var(--text-white);
}

/* Barra de progreso de fase */
.phase-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 22px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.phase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
}

.phase-name {
  color: var(--text-muted);
  font-weight: 500;
}

.phase-status {
  color: #38bdf8;
  font-weight: 600;
}

.phase-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}

.phase-bar-active {
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  border-radius: 9999px;
  position: relative;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

.phase-bar-active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: bar-shine 2.5s infinite;
}

@keyframes bar-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Píldoras de características */
.features-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 500;
}

/* Columna Visual: Fachada y Cubos */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-wrapper {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: radial-gradient(circle at center, rgba(30, 58, 138, 0.3) 0%, rgba(15, 23, 42, 0.6) 75%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 30px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.fachada-img {
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.55));
  transition: transform 0.4s ease;
}

.visual-wrapper:hover .fachada-img {
  transform: translateY(-4px) scale(1.02);
}

/* Cubos de colores flotantes */
.cubos-floating {
  position: absolute;
  top: -20px;
  right: -15px;
  width: 110px;
  height: auto;
  animation: float-cubes 4s ease-in-out infinite;
  z-index: 2;
}

.cubos-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.4));
}

@keyframes float-cubes {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Insignia flotante */
.badge-floating {
  margin-top: 18px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.badge-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.4px;
}

.badge-location {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Sección de canales y contacto */
.channels-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.channel-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 18px 22px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s ease;
}

.channel-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.ch-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ch-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.ch-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-subtle);
  font-weight: 700;
}

.ch-val {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Pie de página */
.site-footer {
  text-align: center;
  padding: 8px 0;
}

.footer-bottom {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

.footer-bottom strong {
  color: var(--text-muted);
}

/* Media Queries Responsivos */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding: 36px 28px;
    gap: 32px;
  }

  .hero-visual {
    order: -1;
  }

  .visual-wrapper {
    max-width: 360px;
  }

  .hero-heading {
    font-size: 2.2rem;
  }
}

@media (max-width: 640px) {
  .hero-section {
    padding: 28px 20px;
    border-radius: 20px;
  }

  .hero-heading {
    font-size: 1.85rem;
  }

  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  .status-pill {
    align-self: flex-start;
  }

  .cubos-floating {
    width: 80px;
    top: -15px;
    right: -10px;
  }
}
