/* ========================================================
   CUSPAL LANDING PAGE - REDISEÑO GLOBAL DE ALTO IMPACTO
   Estética Minimalista Vanguardista, Integración Fluida & Micro-animaciones
   Ajuste Óptimo al Viewport (100vh sin barras de scroll)
   ======================================================== */

:root {
  /* Paleta Cromática Institucional & Acentos Modernos */
  --c-primary: #0b3d82;
  --c-primary-dark: #072855;
  --c-secondary: #0072ce;
  --c-accent-cyan: #00b0f0;
  --c-accent-orange: #f26822;
  --c-text-dark: #0f172a;
  --c-text-muted: #475569;
  --c-text-light: #94a3b8;
  --c-white: #ffffff;

  /* Glassmorphism & Superficies */
  --glass-capsule-bg: rgba(255, 255, 255, 0.78);
  --glass-capsule-border: rgba(255, 255, 255, 0.95);
  --glass-capsule-shadow: 0 10px 30px rgba(11, 61, 130, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);

  /* Curvas de Transición Suaves */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: 0.35s var(--ease-spring);
}

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

html,
body {
  width: 100%;
  height: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  /* Ajuste limpio en pantalla sin scroll vertical */
  font-family: 'Montserrat', sans-serif;
  color: var(--c-text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================================
   FONDO INSTITUCIONAL & ILUMINACIÓN AMBIENTAL
   ======================================================== */
body {
  background-color: #f0f6fb;
  background-image: url('../imagenes/Fondo-Pagina-Web-infinita-copia-scaled-1-1024x733.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Luces Ambientales Orgánicas (Suaves, para enriquecer la profundidad) */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.glow-top {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 176, 240, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
  top: 10%;
  left: 20%;
  animation: pulseAmbient 12s ease-in-out infinite alternate;
}

.glow-bottom {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(242, 104, 34, 0.14) 0%, rgba(255, 255, 255, 0) 70%);
  bottom: 8%;
  right: 18%;
  animation: pulseAmbient 15s ease-in-out infinite alternate-reverse;
}

@keyframes pulseAmbient {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.35;
  }

  100% {
    transform: scale(1.15) translate(20px, 15px);
    opacity: 0.55;
  }
}

/* Layout General */
.site-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ========================================================
   HEADER INSTITUCIONAL INTEGRADO
   ======================================================== */
.site-header {
  width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(11, 61, 130, 0.15);
}

.cintillo-gobierno {
  width: 100%;
  background-color: #19467d;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.img-cintillo {
  width: 100%;
  max-width: 100%;
  height: 77px;
  display: block;
}


.banner-identidad {
  width: 100%;
  background-color: #95d5f0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0;
}

.img-banner {
  width: 100%;
  max-width: 100%;
  height: 91px;
  display: block;
}

/* ========================================================
   ESCENARIO HERO (FLUIDO, SIN MARCOS BLANCOS RECORTADOS)
   ======================================================== */
.hero-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8px 24px;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero-container {
  width: 100%;
  max-width: 1040px;
  height: 100%;
  max-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  gap: 10px;
}

/* ========================================================
   SHOWCASE CINEMÁTICO (SLIDES CON CROSSFADE SUAVE)
   ======================================================== */
.hero-showcase {
  position: relative;
  width: 100%;
  max-width: 960px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-viewport {
  width: 100%;
  height: clamp(180px, 34vh, 280px);
  position: relative;
  overflow: hidden;
  /* Oculta las diapositivas contiguas para mostrar solo la activa */
  border-radius: 18px;
}

.showcase-slides {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.65s var(--ease-spring);
  will-change: transform;
}

.slide-item {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.slide-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

/* Slide 1: Venezuela Alimenta (Se fusiona directamente con el centro del fondo) */
.slide-graphic.blend-natural {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform var(--ease-smooth);
}

.slide-item:hover .slide-graphic.blend-natural {
  transform: scale(1.02);
}

/* Slides 2 y 3: Banners digitales que flotan con elegancia */
.slide-graphic.floating-card {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 18px;
  transition: transform var(--ease-smooth), box-shadow var(--ease-smooth);
}

.slide-item:hover .slide-graphic.floating-card {
  transform: translateY(-2px) scale(1.015);
}

/* ========================================================
   CONTROLES DE NAVEGACIÓN FLOTANTES
   ======================================================== */
.nav-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 8px 22px rgba(11, 61, 130, 0.12);
  transition: all var(--ease-smooth);
}

.nav-control svg {
  width: 20px;
  height: 20px;
  transition: transform 0.25s ease;
}

.nav-control.prev {
  left: -20px;
}

.nav-control.next {
  right: -20px;
}

.nav-control:hover {
  background: linear-gradient(135deg, var(--c-secondary) 0%, var(--c-primary) 100%);
  color: var(--c-white);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 10px 28px rgba(0, 114, 206, 0.35);
}

.nav-control.prev:hover svg {
  transform: translateX(-2px);
}

.nav-control.next:hover svg {
  transform: translateX(2px);
}

.nav-control:active {
  transform: translateY(-50%) scale(0.95);
}

/* ========================================================
   BARRA DE NAVEGACIÓN EN CÁPSULA FLOTANTE (VANGUARDISTA)
   ======================================================== */
.capsule-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  background: var(--glass-capsule-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-capsule-border);
  border-radius: 999px;
  box-shadow: var(--glass-capsule-shadow);
  transition: all var(--ease-smooth);
}

.capsule-tab {
  border: none;
  background: transparent;
  padding: 6px 18px;
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--c-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.35s var(--ease-spring);
  outline: none;
  user-select: none;
}

.tab-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #cbd5e1;
  transition: all 0.3s ease;
}

.capsule-tab:hover {
  color: var(--c-primary);
  background: rgba(255, 255, 255, 0.9);
}

.capsule-tab:hover .tab-pulse {
  background-color: var(--c-secondary);
  transform: scale(1.2);
}

.capsule-tab.active {
  background: linear-gradient(135deg, var(--c-secondary) 0%, var(--c-primary) 100%);
  color: var(--c-white);
  box-shadow: 0 4px 16px rgba(0, 114, 206, 0.38);
  transform: scale(1.03);
}

.capsule-tab.active .tab-pulse {
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  transform: scale(1.1);
}

/* ========================================================
   ACTION DOCK: ACCESO AL WEBMAIL INSTITUCIONAL
   ======================================================== */
.action-dock {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 2px;
  flex-shrink: 0;
}

.webmail-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Halo de luz interactivo alrededor del botón */
.launcher-halo {
  position: absolute;
  width: 110%;
  height: 110%;
  background: radial-gradient(ellipse at center, rgba(0, 114, 206, 0.32) 0%, transparent 70%);
  border-radius: 999px;
  filter: blur(14px);
  pointer-events: none;
  opacity: 0.65;
  transition: all var(--ease-smooth);
}

.webmail-cta-link {
  position: relative;
  display: block;
  text-decoration: none;
  outline: none;
  border-radius: 999px;
  transition: all var(--ease-smooth);
}

.webmail-btn-img {
  width: clamp(160px, 15vw, 195px);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 18px rgba(0, 114, 206, 0.32));
  transition: all var(--ease-smooth);
}

.webmail-cta-link:hover .webmail-btn-img {
  transform: translateY(-4px) scale(1.04);
  filter: drop-shadow(0 14px 28px rgba(0, 114, 206, 0.5));
}

.webmail-cta-link:hover~.launcher-halo,
.webmail-launcher:hover .launcher-halo {
  opacity: 1;
  transform: scale(1.1);
  background: radial-gradient(ellipse at center, rgba(0, 114, 206, 0.48) 0%, transparent 72%);
}

.webmail-cta-link:active .webmail-btn-img {
  transform: translateY(0) scale(0.97);
}

.webmail-cta-link:focus-visible {
  box-shadow: 0 0 0 4px rgba(0, 114, 206, 0.4);
}

/* Indicador de estado del servicio */
.launcher-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 61, 130, 0.08);
  border-radius: 999px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--c-text-muted);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  position: relative;
}

.status-indicator::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.4);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

/* ========================================================
   FOOTER INSTITUCIONAL EN BARRA TRASLÚCIDA
   ======================================================== */
.site-footer {
  flex-shrink: 0;
  width: 100%;
  padding: 6px 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 -2px 12px rgba(11, 61, 130, 0.04);
}

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

.copyright-info {
  margin: 0;
  font-size: 0.72rem;
  color: var(--c-text-muted);
  line-height: 1.3;
}

.bullet-sep {
  margin: 0 6px;
  color: #cbd5e1;
}

.min-sub {
  font-weight: 600;
  color: var(--c-primary);
}

/* Chip de Contador de Visitas */
.visitas-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(11, 61, 130, 0.14);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--c-primary);
  box-shadow: 0 2px 8px rgba(11, 61, 130, 0.05);
  transition: all 0.25s ease;
}

.visitas-chip:hover {
  background: #ffffff;
  border-color: rgba(11, 61, 130, 0.28);
  box-shadow: 0 4px 14px rgba(11, 61, 130, 0.12);
}

.visitas-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
}

.visitas-svg {
  width: 13px;
  height: 13px;
  stroke: var(--c-secondary);
  flex-shrink: 0;
}

.visitas-txt {
  color: var(--c-text-muted);
  font-size: 0.70rem;
  font-weight: 500;
}

.visitas-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--c-primary);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.4px;
  font-size: 0.75rem;
}

/* ========================================================
   RESPONSIVIDAD Y MEDIA QUERIES
   ======================================================== */

/* Pantallas medianas y orientación vertical (Mantiene visible el fondo lateral) */
@media (max-width: 992px),
(orientation: portrait) {
  body {
    background-size: 100% 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed;
  }

  .nav-control.prev {
    left: -10px;
  }

  .nav-control.next {
    right: -10px;
  }
}

/* Dispositivos Móviles (<= 768px) */
@media (max-width: 768px) {
  .hero-stage {
    padding: 6px 14px;
  }

  .hero-container {
    gap: 8px;
  }

  .showcase-viewport {
    height: clamp(150px, 26vh, 200px);
  }

  .nav-control {
    width: 36px;
    height: 36px;
  }

  .nav-control svg {
    width: 16px;
    height: 16px;
  }

  .nav-control.prev {
    left: 2px;
  }

  .nav-control.next {
    right: 2px;
  }

  .capsule-nav {
    padding: 4px;
    gap: 4px;
  }

  .capsule-tab {
    padding: 5px 12px;
    font-size: 0.68rem;
    gap: 5px;
  }

  .webmail-btn-img {
    width: 160px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
    gap: 4px;
  }

  .copyright-info {
    font-size: 0.68rem;
  }

  .site-footer {
    padding: 5px 12px;
  }
}

/* Pantallas con altura reducida */
@media (max-height: 650px) {
  .hero-stage {
    padding: 4px 10px;
  }

  .hero-container {
    gap: 5px;
  }

  .showcase-viewport {
    height: clamp(130px, 24vh, 170px);
  }

  .capsule-tab {
    padding: 4px 12px;
    font-size: 0.70rem;
  }

  .webmail-btn-img {
    width: 140px;
  }

  .launcher-status {
    display: none;
    /* Ocultar para ganar espacio vertical */
  }

  .site-footer {
    padding: 3px 10px;
  }

  .img-cintillo {
    width: 100%;
    max-width: 100%;
    height: 47px;
    display: block;
  }

  .img-banner {
    width: 100%;
    max-width: 100%;
    height: 51px;
    display: block;
  }
}