/* =========================================================
   ViVe - CSS depurado para Joomla
   Reemplaza el CSS anterior por este archivo completo.
   Última depuración: navbar compacta + páginas institucionales
========================================================= */

/* =========================
   VARIABLES Y BASE
========================= */
:root {
  --vive-azul: #0c2c3c;
  --vive-azul-profundo: #0b3441;
  --vive-verde: #2e7d64;
  --vive-verde-hover: #256c56;
  --vive-fondo: #f4f8f7;
  --vive-texto: #1f2a2e;
  --vive-texto-suave: #344247;
  --vive-borde: #d9e8e4;
  --vive-claro: #eef7f4;
  --vive-claro-2: #f3f8f7;
  --vive-footer-rgb: 12, 44, 60;
  --vive-header-height: 64px;
  --vive-footer-height: 100px;
  --vive-page-width: 1180px;
  --vive-radius: 18px;
  --vive-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  --vive-shadow-card: 0 8px 24px rgba(0, 0, 0, 0.065);
}

html,
body {
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

main {
  padding-bottom: calc(var(--vive-footer-height) + 1rem);
}

/* =========================
   NAVBAR COMPACTA
========================= */
.vive-navbar {
  min-height: var(--vive-header-height) !important;
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
  background: var(--vive-azul) !important;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.16);
}

.vive-navbar .container,
.site-header .container {
  min-height: var(--vive-header-height) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.65rem !important;
  flex-wrap: nowrap !important;
}

.vive-navbar .navbar-brand {
  display: flex !important;
  align-items: center !important;
  margin-right: 0.75rem !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.vive-navbar .navbar-brand img,
.navbar-brand img {
  height: 54px !important;
  max-height: 54px !important;
  width: auto !important;
}

.vive-navbar .navbar-collapse {
  flex-grow: 1 !important;
  position: relative;
}

.vive-navbar .navbar-nav {
  display: flex !important;
  align-items: center !important;
  gap: 0.15rem !important;
  flex-wrap: nowrap !important;
  position: relative;
}

.vive-navbar .navbar-nav .nav-link,
.vive-navbar .navbar-nav .nav-item .nav-link {
  position: relative;
  display: inline-block;
  padding: 0.38rem 0.46rem !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  line-height: 1.1 !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  border-radius: 8px !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.vive-navbar .navbar-nav .nav-link:hover,
.vive-navbar .navbar-nav .nav-link:focus {
  background: rgba(255, 255, 255, 0.10) !important;
  color: #ffffff !important;
  opacity: 1 !important;
}

.vive-navbar .navbar-nav .nav-link.active,
.vive-navbar .navbar-nav .nav-item.active .nav-link {
  background: rgba(46, 125, 100, 0.75) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.vive-navbar .navbar-nav .nav-link::after,
.nav-indicator {
  display: none !important;
}

/* Dropdown Joomla / Bootstrap */
.vive-navbar .dropdown-menu,
.vive-navbar .mod-menu__sub,
.vive-navbar .nav-child {
  min-width: 220px !important;
  padding: 0.45rem !important;
  background: var(--vive-azul) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22) !important;
}

.vive-navbar .dropdown-item,
.vive-navbar .mod-menu__sub a,
.vive-navbar .nav-child a {
  display: block !important;
  padding: 0.55rem 0.75rem !important;
  color: #ffffff !important;
  font-size: 0.88rem !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  border-radius: 8px !important;
}

.vive-navbar .dropdown-item:hover,
.vive-navbar .mod-menu__sub a:hover,
.vive-navbar .nav-child a:hover {
  background: rgba(46, 125, 100, 0.82) !important;
  color: #ffffff !important;
}

.vive-navbar .dropdown-toggle::after {
  margin-left: 0.28rem !important;
  vertical-align: middle !important;
}

.vive-navbar .navbar-toggler {
  padding: 0.28rem 0.45rem !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.vive-navbar .navbar-toggler:focus {
  box-shadow: none !important;
}

/* Elementos secundarios del header */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-menu {
  flex: 1;
}

.site-menu .module {
  display: inline-block;
  padding-left: 0.25rem;
}

.vive-logo img {
  display: block;
  width: auto;
  height: auto;
  max-height: 80px;
  padding: 8px;
}

.top-modules {
  flex: 1;
  margin-left: 1rem;
}

.top-modules .module {
  display: inline-block;
}

.brands {
  display: flex;
  align-items: center;
}

.brand-list {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.brand-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.45rem;
  color: #fff;
  font-size: 0.75rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.brand-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* =========================
   FOOTER FIJO
========================= */
.site-footer,
.vive-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  height: var(--vive-footer-height);
  padding: 0 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  background: var(--vive-azul);
}

.vive-footer .row {
  display: flex;
  flex-wrap: wrap !important;
  align-items: center;
  justify-content: center !important;
  gap: 0.5rem;
}

.vive-footer .col-md-auto.d-flex {
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.vive-footer .col-md-auto.d-flex:first-child {
  padding-left: 0;
}

.vive-footer img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 60px;
}

/* =========================================
   FAB - BARRA VERTICAL CONTINUA
========================================= */
/* ==========================================
   FAB DEFINITIVO
   Cerrado = solo botón
   Abierto = barra vertical de redes
========================================== */

.fab-container {
    position: fixed !important;
    right: 18px !important;
    bottom: calc(var(--vive-footer-height) + 18px) !important;
    z-index: 1200 !important;

    /* El contenedor ocupa solamente el botón */
    width: 48px !important;
    height: 48px !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* ==========================================
   BOTÓN PRINCIPAL COMPARTIR
========================================== */

.fab-btn {
    position: relative !important;
    z-index: 2 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;
    background: var(--vive-azul) !important;

    border: none !important;
    outline: none !important;

    /* Cerrado = botón redondeado */
    border-radius: 14px !important;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22) !important;

    cursor: pointer !important;

    transform: none !important;

    transition:
        background 0.2s ease,
        border-radius 0.2s ease,
        transform 0.2s ease !important;
}


/* ==========================================
   PANEL DE REDES
========================================== */

.fab-panel {
    position: absolute !important;

    /*
       IMPORTANTE:
       el panel queda ARRIBA del botón
       y deja de ocupar espacio cuando está cerrado
    */
    right: 0 !important;
    bottom: 48px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;

    width: 48px !important;

    margin: 0 !important;
    padding: 0 !important;

    gap: 0 !important;

    background: var(--vive-azul) !important;

    border-radius: 14px 14px 0 0 !important;

    overflow: hidden !important;

    /* CERRADO */
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;

    transform: translateY(10px) !important;

    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0.22s ease !important;
}


/* ==========================================
   PANEL ABIERTO
========================================== */

.fab-panel.open {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;

    transform: translateY(0) !important;
}


/* ==========================================
   BOTONES DE REDES
========================================== */

.fab-panel .fab-item {
    position: static !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 48px !important;
    height: 48px !important;

    min-width: 48px !important;
    min-height: 48px !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;

    background: var(--vive-azul) !important;

    border: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    text-decoration: none !important;

    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;

    transform: none !important;

    transition: background 0.2s ease !important;
}


/* RED SOCIAL AL PASAR EL MOUSE */
.fab-panel .fab-item:hover {
    color: #ffffff !important;
    background: var(--vive-verde) !important;
    transform: none !important;
}


/* ==========================================
   CUANDO EL MENÚ ESTÁ ABIERTO
   unir botón compartir con la barra
========================================== */

.fab-container:has(.fab-panel.open) .fab-btn {
    border-radius: 0 0 14px 14px !important;

    box-shadow: none !important;
}


/* ==========================================
   HOVER DEL BOTÓN COMPARTIR
========================================== */

.fab-btn:hover {
    color: #ffffff !important;
    background: var(--vive-verde) !important;
}

.fab-btn:focus,
.fab-btn:active {
    outline: none !important;
    box-shadow: none !important;
}
/* =========================
   ESTRUCTURA COMÚN DE PÁGINAS
========================= */
.vive-politica-wrapper,
.vive-colaboradores-wrapper,
.vive-quienes-wrapper,
.vive-hacemos-wrapper,
.vive-ambito-wrapper,
.vive-mision-wrapper,
.vive-objetivos-wrapper {
  max-width: var(--vive-page-width);
  margin: 45px auto 170px auto;
  padding: 45px 55px;
  color: var(--vive-texto);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.75;
  background: #ffffff;
  border-radius: var(--vive-radius);
  box-shadow: var(--vive-shadow);
}

.vive-politica-wrapper {
  margin-bottom: 70px;
}

.vive-colaboradores-wrapper {
  margin-bottom: 70px;
}

.vive-politica-wrapper h1,
.vive-colaboradores-wrapper h1,
.vive-quienes-wrapper h1,
.vive-hacemos-wrapper h1,
.vive-ambito-wrapper h1,
.vive-mision-wrapper h1,
.vive-objetivos-wrapper h1 {
  margin: 0 0 10px 0;
  padding-bottom: 18px;
  color: var(--vive-azul-profundo);
  font-size: 2.4rem;
  font-weight: 500;
  line-height: 1.2;
  border-bottom: 4px solid var(--vive-azul-profundo);
}

.vive-fecha,
.vive-quienes-subtitulo,
.vive-hacemos-subtitulo,
.vive-ambito-subtitulo,
.vive-mision-subtitulo,
.vive-objetivos-subtitulo {
  display: inline-block;
  margin: 12px 0 28px 0;
  padding: 8px 16px;
  color: var(--vive-azul-profundo);
  font-size: 0.95rem;
  font-weight: 700;
  background: var(--vive-claro);
  border-left: 5px solid var(--vive-verde);
  border-radius: 8px;
}

/* Textos comunes */
.vive-colaboradores-intro,
.vive-quienes-intro,
.vive-hacemos-texto p,
.vive-ambito-texto p,
.vive-objetivos-texto p,
.vive-politica-wrapper p {
  color: var(--vive-texto);
  font-size: 1.02rem;
  text-align: justify;
}

.vive-colaboradores-intro,
.vive-quienes-intro {
  margin: 25px 0 35px 0;
  font-size: 1.05rem;
}

/* =========================
   COMPONENTES COMUNES
========================= */
.vive-quienes-grid,
.vive-hacemos-grid,
.vive-ambito-grid,
.vive-mision-grid,
.vive-objetivos-galeria-grid,
.vive-quienes-galeria-grid,
.vive-hacemos-galeria-grid,
.vive-mision-galeria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 38px 0;
}

.vive-objetivos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 38px 0;
}

.vive-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.vive-quienes-card,
.vive-hacemos-card,
.vive-ambito-card,
.vive-mision-valor,
.vive-objetivo-card,
.vive-home-card {
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--vive-borde);
  border-radius: 16px;
  box-shadow: var(--vive-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vive-quienes-card:hover,
.vive-hacemos-card:hover,
.vive-ambito-card:hover,
.vive-mision-valor:hover,
.vive-objetivo-card:hover,
.vive-home-card:hover,
.vive-colaborador-card:hover,
.vive-ambito-dato:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.11);
}

.vive-quienes-icono,
.vive-hacemos-icono,
.vive-ambito-icono,
.vive-mision-icono,
.vive-objetivo-icono,
.vive-home-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  color: var(--vive-verde);
  font-size: 28px;
  background: var(--vive-claro);
  border-radius: 16px;
}

.vive-mision-icono {
  background: #ffffff;
}

.vive-quienes-card h3,
.vive-hacemos-card h3,
.vive-ambito-card h3,
.vive-mision-valor h3,
.vive-objetivo-card h3,
.vive-home-card h3 {
  margin: 0 0 12px 0;
  color: var(--vive-azul-profundo);
  font-size: 1.25rem;
}

.vive-home-card h3,
.vive-objetivo-card h3 {
  font-size: 1.3rem;
}

.vive-quienes-card p,
.vive-hacemos-card p,
.vive-ambito-card p,
.vive-mision-valor p,
.vive-objetivo-card p,
.vive-home-card p {
  margin: 0;
  color: var(--vive-texto-suave);
  line-height: 1.7;
  text-align: justify;
}

.vive-home-card p {
  text-align: left;
}

/* Bloques destacados claros */
.vive-quienes-destacado,
.vive-hacemos-destacado,
.vive-ambito-destacado,
.vive-objetivo-general,
.vive-colaboradores-cierre,
.vive-hacemos-cierre,
.vive-ambito-cierre,
.vive-mision-cierre,
.vive-objetivos-cierre {
  margin: 42px 0;
  padding: 30px 34px;
  background: var(--vive-claro-2);
  border-left: 6px solid var(--vive-verde);
  border-radius: 14px;
}

.vive-colaboradores-cierre {
  padding: 24px 28px;
}

.vive-quienes-destacado h2,
.vive-hacemos-destacado h2,
.vive-ambito-destacado h2,
.vive-objetivo-general h2,
.vive-colaboradores-cierre h2,
.vive-hacemos-cierre h2,
.vive-ambito-cierre h2,
.vive-mision-cierre h2,
.vive-objetivos-cierre h2 {
  margin: 0 0 12px 0;
  color: var(--vive-azul-profundo);
  font-size: 1.6rem;
}

.vive-quienes-destacado p,
.vive-hacemos-destacado p,
.vive-ambito-destacado p,
.vive-objetivo-general p,
.vive-colaboradores-cierre p,
.vive-hacemos-cierre p,
.vive-ambito-cierre p,
.vive-mision-cierre p,
.vive-objetivos-cierre p {
  margin: 0;
  color: var(--vive-texto-suave);
  font-size: 1.02rem;
  text-align: justify;
}

/* Hero común de páginas internas */
.vive-hacemos-hero,
.vive-ambito-hero,
.vive-mision-hero,
.vive-objetivos-hero,
.vive-quienes-bloque {
  display: grid;
  align-items: center;
  gap: 38px;
  margin-top: 25px;
}

.vive-hacemos-hero {
  grid-template-columns: 1.15fr 0.85fr;
}

.vive-ambito-hero {
  grid-template-columns: 0.95fr 1.05fr;
}

.vive-mision-hero,
.vive-objetivos-hero {
  grid-template-columns: 1.05fr 0.95fr;
}

.vive-quienes-bloque {
  grid-template-columns: 1.2fr 0.8fr;
  margin: 42px 0;
}

.vive-hacemos-imagen,
.vive-ambito-imagen,
.vive-mision-imagen,
.vive-objetivos-imagen {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--vive-claro);
  border-radius: var(--vive-radius);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.vive-ambito-imagen,
.vive-objetivos-imagen {
  min-height: 420px;
}

.vive-mision-imagen {
  min-height: 520px;
}

.vive-hacemos-imagen img,
.vive-ambito-imagen img,
.vive-mision-imagen img,
.vive-objetivos-imagen img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.vive-hacemos-imagen::after,
.vive-ambito-imagen::after,
.vive-mision-imagen::after,
.vive-objetivos-imagen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12, 44, 60, 0.58), rgba(12, 44, 60, 0.05));
}

.vive-hacemos-imagen span,
.vive-ambito-imagen span,
.vive-mision-imagen span,
.vive-objetivos-imagen span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 10px 16px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(12, 44, 60, 0.9);
  border-radius: 50px;
}

/* Bloques oscuros */
.vive-quienes-lista,
.vive-hacemos-impacto,
.vive-ambito-contexto,
.vive-mision-enfoque,
.vive-objetivos-impacto,
.vive-quienes-cierre {
  background: linear-gradient(135deg, var(--vive-azul) 0%, #123f52 100%);
  padding: 10px;
  color: #ffffff;
  border-radius: var(--vive-radius);
}

.vive-hacemos-impacto,
.vive-ambito-contexto,
.vive-mision-enfoque,
.vive-objetivos-impacto {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 35px;
  align-items: center;
  margin: 48px 0;
  padding: 34px;
}

.vive-hacemos-impacto h2,
.vive-ambito-contexto h2,
.vive-mision-enfoque h2,
.vive-objetivos-impacto h2,
.vive-quienes-cierre h2 {
  margin: 0 0 14px 0;
  color: #ffffff;
  font-size: 1.8rem;
}

.vive-hacemos-impacto p,
.vive-ambito-contexto p,
.vive-mision-enfoque p,
.vive-objetivos-impacto p,
.vive-quienes-cierre p {
  margin-bottom: 14px;
  color: #e8f1ef;
  text-align: justify;
}

.vive-hacemos-lista,
.vive-ambito-lista,
.vive-mision-lista,
.vive-objetivos-lista,
.vive-quienes-lista {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.vive-hacemos-lista div,
.vive-ambito-lista div,
.vive-mision-lista div,
.vive-objetivos-lista div,
.vive-quienes-lista div {
  padding: 14px 16px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border-left: 5px solid var(--vive-verde);
  border-radius: 10px;
}

/* Galerías */
.vive-quienes-galeria,
.vive-hacemos-galeria,
.vive-mision-galeria,
.vive-objetivos-galeria {
  margin-top: 45px;
}

.vive-quienes-galeria h2,
.vive-hacemos-galeria h2,
.vive-mision-galeria h2,
.vive-objetivos-galeria h2,
.vive-hacemos-proceso h2,
.vive-mision-valores h2,
.vive-quienes-bloque-texto h2 {
  margin: 0 0 18px 0;
  color: var(--vive-azul-profundo);
  font-size: 1.8rem;
}

.vive-quienes-img,
.vive-hacemos-img,
.vive-mision-img,
.vive-objetivos-img {
  position: relative;
  height: 270px;
  overflow: hidden;
  border-radius: var(--vive-radius);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.vive-quienes-img img,
.vive-hacemos-img img,
.vive-mision-img img,
.vive-objetivos-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.vive-quienes-img:hover img,
.vive-hacemos-img:hover img,
.vive-mision-img:hover img,
.vive-objetivos-img:hover img {
  transform: scale(1.06);
}

.vive-quienes-img span,
.vive-hacemos-img span,
.vive-mision-img span,
.vive-objetivos-img span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 16px 18px;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(to top, rgba(12, 44, 60, 0.92), rgba(12, 44, 60, 0.15));
}

/* =========================
   COMPONENTES ESPECÍFICOS
========================= */

/* Política */
.vive-politica-wrapper h2 {
  margin: 42px 0 16px 0;
  padding: 14px 20px;
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1.3;
  background: var(--vive-azul-profundo);
  border-radius: 12px;
}

.vive-politica-wrapper ul {
  margin: 18px 0 25px 0;
  padding: 22px 28px 22px 48px;
  background: #f6faf8;
  border-left: 5px solid var(--vive-verde);
  border-radius: 12px;
}

.vive-politica-wrapper li {
  margin-bottom: 12px;
  text-align: justify;
}

.vive-politica-wrapper strong,
.vive-politica-wrapper a {
  color: var(--vive-azul-profundo);
}

.vive-politica-wrapper a {
  font-weight: bold;
  text-decoration: none;
}

.vive-politica-wrapper a:hover {
  text-decoration: underline;
}

.vive-datos-responsable {
  margin: 20px 0 30px 0;
  padding: 22px 26px;
  background: var(--vive-claro-2);
  border: 1px solid var(--vive-borde);
  border-radius: 14px;
}

.vive-nota {
  margin: 24px 0;
  padding: 18px 24px;
  background: #fff8e6;
  border-left: 5px solid #d49b00;
  border-radius: 10px;
}

/* Colaboradores */
.vive-colaborador-card {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 32px 0;
  padding: 26px;
  background: var(--vive-claro-2);
  border: 1px solid var(--vive-borde);
  border-left: 6px solid var(--vive-verde);
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.055);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vive-colaborador-card.invertido {
  flex-direction: row-reverse;
  border-right: 6px solid var(--vive-verde);
  border-left: 1px solid var(--vive-borde);
}

.vive-colaborador-foto {
  flex: 0 0 260px;
}

.vive-colaborador-foto img {
  display: block;
  width: 260px;
  height: 260px;
  object-fit: cover;
  background: #e8f1ef;
  border: 6px solid #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.vive-colaborador-info {
  flex: 1;
}

.vive-colaborador-info h2 {
  margin: 0 0 4px 0;
  color: var(--vive-azul-profundo);
  font-size: 1.8rem;
  line-height: 1.25;
}

.vive-colaborador-info h3 {
  margin: 0 0 16px 0;
  color: var(--vive-verde);
  font-size: 1.1rem;
  font-weight: 700;
}

.vive-colaborador-info p {
  margin-bottom: 14px;
  color: var(--vive-texto);
  font-size: 1.02rem;
  text-align: justify;
}

.vive-colaborador-etiquetas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.vive-colaborador-etiquetas span {
  display: inline-block;
  padding: 7px 14px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--vive-azul-profundo);
  border-radius: 50px;
}

/* Quiénes somos */
.vive-quienes-aliados {
  margin-top: 45px;
  padding: 30px;
  background: var(--vive-claro-2);
  border: 1px solid var(--vive-borde);
  border-radius: 16px;
}

.vive-quienes-aliados h2 {
  margin: 0 0 18px 0;
  color: var(--vive-azul-profundo);
  font-size: 1.7rem;
}

.vive-quienes-aliados-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.vive-quienes-aliado {
  padding: 18px;
  color: var(--vive-azul-profundo);
  font-weight: 700;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--vive-borde);
  border-radius: 12px;
}

/* Proceso */
.vive-hacemos-proceso {
  margin-top: 45px;
}

.vive-hacemos-pasos,
.vive-home-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.vive-hacemos-paso,
.vive-home-step {
  padding: 24px;
  background: var(--vive-claro-2);
  border: 1px solid var(--vive-borde);
  border-radius: 16px;
}

.vive-home-step {
  background: #ffffff;
}

.vive-hacemos-numero,
.vive-home-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  color: #ffffff;
  font-weight: 800;
  background: var(--vive-azul-profundo);
  border-radius: 50%;
}

.vive-hacemos-paso h3,
.vive-home-step h3 {
  margin: 0 0 10px 0;
  color: var(--vive-azul-profundo);
  font-size: 1.12rem;
}

.vive-hacemos-paso p,
.vive-home-step p {
  margin: 0;
  color: var(--vive-texto-suave);
  line-height: 1.65;
}

/* Ámbito */
.vive-ambito-datos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 42px 0;
}

.vive-ambito-dato {
  padding: 24px;
  text-align: center;
  background: var(--vive-claro-2);
  border: 1px solid var(--vive-borde);
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vive-ambito-dato strong {
  display: block;
  margin-bottom: 8px;
  color: var(--vive-azul-profundo);
  font-size: 2rem;
  line-height: 1.1;
}

.vive-ambito-dato span {
  color: var(--vive-texto-suave);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Misión */
.vive-mision-texto {
  display: grid;
  gap: 24px;
}

.vive-mision-card {
  padding: 28px 32px;
  background: var(--vive-claro-2);
  border: 1px solid var(--vive-borde);
  border-left: 6px solid var(--vive-verde);
  border-radius: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.vive-mision-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10);
}

.vive-mision-card h2 {
  margin: 0 0 14px 0;
  color: var(--vive-azul-profundo);
  font-size: 1.8rem;
  line-height: 1.2;
}

.vive-mision-card p {
  margin: 0;
  color: var(--vive-texto-suave);
  font-size: 1.03rem;
  line-height: 1.75;
  text-align: justify;
}

.vive-mision-valores {
  margin: 45px 0;
}

/* Objetivos */
.vive-objetivo-general {
  padding: 32px 36px;
}

.vive-objetivo-general h2 {
  font-size: 1.8rem;
}

.vive-objetivo-general p {
  font-size: 1.05rem;
}

/* =========================
   HOME
========================= */
.vive-home-combo {
  width: 100%;
  overflow: hidden;
  color: var(--vive-texto);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--vive-fondo);
}

.vive-home-combo p,
.vive-home-combo figure {
  margin-top: 0;
}

.vive-home-hero-slider {
  position: relative;
  width: 100vw;
  height: calc(100dvh - var(--vive-header-height) - var(--vive-footer-height));
  min-height: 520px;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: var(--vive-azul);
}

.vive-home-hero-slider .slider-glass-wrapper,
.vive-home-hero-slider .slider-glass-wrapper > div,
.vive-home-hero-slider .slider-glass-wrapper .moduletable,
.vive-home-hero-slider .slider-glass-wrapper .module,
.vive-home-hero-slider .slider-glass-wrapper .custom,
.vive-home-hero-slider .carousel,
.vive-home-hero-slider .carousel-inner,
.vive-home-hero-slider .carousel-item,
.vive-home-hero-slider .carousel-item.active {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.vive-home-hero-slider img,
.vive-home-hero-slider .carousel-item img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.vive-home-hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  /*background: linear-gradient(90deg, rgba(12, 44, 60, 0.88) 0%, rgba(12, 44, 60, 0.62) 42%, rgba(12, 44, 60, 0.25) 100%);*/
}

.vive-home-hero-content {
  position: absolute;
  top: 50%;
  left: 7%;
  z-index: 4;
  max-width: 720px;
  color: #ffffff;
  pointer-events: none;
  transform: translateY(-50%);
}

.vive-home-hero-content * {
  pointer-events: auto;
}

.vive-home-badge {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 17px;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(46, 125, 100, 0.95);
  border-radius: 50px;
}

.vive-home-hero-content h1 {
  margin: 0 0 22px 0;
  font-size: clamp(2.2rem, 4.8vw, 4.6rem);
  font-weight: 800;
  line-height: 1.08;
}

.vive-home-hero-content p {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--vive-claro);
  font-size: 1.16rem;
  line-height: 1.75;
}

.vive-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.vive-home-btn-primary,
.vive-home-btn-secondary {
  display: inline-block;
  padding: 13px 24px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.25s ease;
}

.vive-home-btn-primary {
  color: #ffffff;
  background: var(--vive-verde);
  box-shadow: 0 8px 22px rgba(46, 125, 100, 0.35);
}

.vive-home-btn-primary:hover {
  color: #ffffff;
  background: var(--vive-verde-hover);
  transform: translateY(-3px);
}

.vive-home-btn-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.vive-home-btn-secondary:hover {
  color: var(--vive-azul);
  background: #ffffff;
}

.vive-home-hero-slider .carousel-control-prev,
.vive-home-hero-slider .carousel-control-next {
  z-index: 6 !important;
  width: 6% !important;
  opacity: 0.75 !important;
}

.vive-home-hero-slider .carousel-control-prev-icon,
.vive-home-hero-slider .carousel-control-next-icon {
  width: 36px !important;
  height: 36px !important;
}

.vive-home-hero-slider .carousel-indicators {
  z-index: 6 !important;
  margin-bottom: 18px !important;
}

.vive-home-section {
  max-width: var(--vive-page-width);
  margin: 0 auto;
  padding: 70px 28px;
}

.vive-home-section h2 {
  margin: 0 0 14px 0;
  color: var(--vive-azul-profundo);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2;
}

.vive-home-section-intro {
  max-width: 900px;
  margin-bottom: 35px;
  color: var(--vive-texto-suave);
  font-size: 1.06rem;
  line-height: 1.8;
  text-align: justify;
}

.vive-home-dark {
  width: 100vw;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  color: #ffffff;
  background: var(--vive-azul);
}

.vive-home-dark-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 45px;
  align-items: center;
  max-width: var(--vive-page-width);
  margin: 0 auto;
  padding: 70px 28px;
}

.vive-home-dark h2 {
  margin: 0 0 18px 0;
  color: #ffffff;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.2;
}

.vive-home-dark p {
  margin-bottom: 16px;
  color: #e8f1ef;
  font-size: 1.05rem;
  line-height: 1.8;
}

.vive-home-list {
  display: grid;
  gap: 14px;
}

.vive-home-list div {
  padding: 16px 18px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border-left: 5px solid var(--vive-verde);
  border-radius: 12px;
}

.vive-home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  max-width: var(--vive-page-width);
  margin: 10px auto 160px auto;
  padding: 45px 35px;
  background: #ffffff;
  border-left: 7px solid var(--vive-verde);
  border-radius: 20px;
  box-shadow: var(--vive-shadow);
}

.vive-home-cta h2 {
  margin: 0 0 8px 0;
  color: var(--vive-azul-profundo);
  font-size: 1.9rem;
}

.vive-home-cta p {
  margin: 0;
  color: var(--vive-texto-suave);
  line-height: 1.7;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .brand-list {
    display: none !important;
  }

  .top-modules {
    margin-left: 0 !important;
  }

  .vive-navbar .navbar-nav .nav-link,
  .vive-navbar .navbar-nav .nav-item .nav-link {
    padding: 0.35rem 0.38rem !important;
    font-size: 0.82rem !important;
  }

  .vive-navbar .navbar-brand img,
  .navbar-brand img {
    height: 48px !important;
    max-height: 48px !important;
  }
}

@media (max-width: 991px) {
  .vive-navbar {
    min-height: 58px !important;
  }

  .vive-navbar .container,
  .site-header .container {
    min-height: 58px !important;
    flex-wrap: wrap !important;
  }

  .vive-navbar .navbar-brand img,
  .navbar-brand img {
    height: 46px !important;
    max-height: 46px !important;
  }

  .vive-navbar .navbar-collapse {
    width: 100% !important;
    margin-top: 0.5rem !important;
    padding: 0.55rem !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 12px !important;
  }

  .vive-navbar .navbar-nav {
    align-items: stretch !important;
    gap: 0.25rem !important;
    flex-wrap: nowrap !important;
  }

  .vive-navbar .navbar-nav .nav-link,
  .vive-navbar .navbar-nav .nav-item .nav-link {
    width: 100% !important;
    padding: 0.65rem 0.75rem !important;
    font-size: 0.95rem !important;
  }

  .vive-navbar .dropdown-menu,
  .vive-navbar .mod-menu__sub,
  .vive-navbar .nav-child {
    position: static !important;
    float: none !important;
    margin: 0.2rem 0 0.35rem 0.75rem !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }
}

@media (max-width: 900px) {
  .vive-politica-wrapper,
  .vive-colaboradores-wrapper,
  .vive-quienes-wrapper,
  .vive-hacemos-wrapper,
  .vive-ambito-wrapper,
  .vive-mision-wrapper,
  .vive-objetivos-wrapper {
    margin: 25px 14px 170px 14px;
    padding: 30px 22px;
    border-radius: 14px;
  }

  .vive-politica-wrapper {
    margin-bottom: 45px;
  }

  .vive-colaboradores-wrapper {
    margin-bottom: 45px;
  }

  .vive-politica-wrapper h1,
  .vive-colaboradores-wrapper h1,
  .vive-quienes-wrapper h1,
  .vive-hacemos-wrapper h1,
  .vive-ambito-wrapper h1,
  .vive-mision-wrapper h1,
  .vive-objetivos-wrapper h1 {
    font-size: 1.9rem;
  }

  .vive-hacemos-hero,
  .vive-ambito-hero,
  .vive-mision-hero,
  .vive-objetivos-hero,
  .vive-quienes-bloque,
  .vive-hacemos-impacto,
  .vive-ambito-contexto,
  .vive-mision-enfoque,
  .vive-objetivos-impacto,
  .vive-home-dark-inner {
    grid-template-columns: 1fr;
  }

  .vive-quienes-grid,
  .vive-hacemos-grid,
  .vive-ambito-grid,
  .vive-mision-grid,
  .vive-objetivos-grid,
  .vive-quienes-galeria-grid,
  .vive-hacemos-galeria-grid,
  .vive-mision-galeria-grid,
  .vive-objetivos-galeria-grid,
  .vive-quienes-aliados-grid,
  .vive-home-grid,
  .vive-home-steps,
  .vive-hacemos-pasos {
    grid-template-columns: 1fr;
  }

  .vive-ambito-datos {
    grid-template-columns: repeat(2, 1fr);
  }

  .vive-hacemos-imagen,
  .vive-hacemos-imagen img,
  .vive-ambito-imagen,
  .vive-ambito-imagen img,
  .vive-mision-imagen,
  .vive-mision-imagen img,
  .vive-objetivos-imagen,
  .vive-objetivos-imagen img {
    min-height: 280px;
  }

  .vive-home-hero-slider {
    height: auto;
    min-height: 620px;
  }

  .vive-home-hero-content {
    right: 24px;
    left: 24px;
    max-width: none;
  }

  .vive-home-cta {
    flex-direction: column;
    align-items: flex-start;
    margin-right: 18px;
    margin-left: 18px;
  }

  .vive-colaborador-card,
  .vive-colaborador-card.invertido {
    flex-direction: column;
    text-align: center;
    border-top: 6px solid var(--vive-verde);
    border-right: 1px solid var(--vive-borde);
    border-left: 1px solid var(--vive-borde);
  }

  .vive-colaborador-foto {
    flex: none;
    width: 100%;
  }

  .vive-colaborador-foto img {
    width: 100%;
    max-width: 280px;
    height: 260px;
    margin: 0 auto;
  }

  .vive-colaboradores-intro,
  .vive-colaborador-info p,
  .vive-colaboradores-cierre p,
  .vive-politica-wrapper p,
  .vive-politica-wrapper li,
  .vive-quienes-intro,
  .vive-quienes-card p,
  .vive-quienes-bloque-texto p,
  .vive-quienes-destacado p,
  .vive-quienes-cierre p,
  .vive-hacemos-texto p,
  .vive-hacemos-destacado p,
  .vive-hacemos-card p,
  .vive-hacemos-impacto p,
  .vive-hacemos-cierre p,
  .vive-ambito-texto p,
  .vive-ambito-destacado p,
  .vive-ambito-card p,
  .vive-ambito-contexto p,
  .vive-ambito-cierre p,
  .vive-mision-card p,
  .vive-mision-valor p,
  .vive-mision-enfoque p,
  .vive-mision-cierre p,
  .vive-objetivos-texto p,
  .vive-objetivo-general p,
  .vive-objetivo-card p,
  .vive-objetivos-impacto p,
  .vive-objetivos-cierre p {
    text-align: left;
  }

  .vive-colaborador-etiquetas {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .vive-footer img {
    max-height: 44px;
  }

  .vive-footer {
    padding: 0.75rem 1rem;
  }

  .vive-home-section {
    padding: 50px 20px;
  }
}

@media (max-width: 600px) {
  .vive-home-hero-slider {
    min-height: 640px;
  }

  .vive-home-hero-content h1 {
    font-size: 2.1rem;
  }

  .vive-home-hero-content p {
    font-size: 1rem;
  }

  .vive-home-actions {
    flex-direction: column;
  }

  .vive-home-btn-primary,
  .vive-home-btn-secondary {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .vive-ambito-datos {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .vive-footer img {
    max-height: 28px;
  }

  .vive-footer .col-md-auto.d-flex {
    width: 100%;
    justify-content: center;
  }

  .fab-container {
    right: 12px;
    bottom: calc(var(--vive-footer-height) + 12px);
  }

  .fab-btn {
    width: 48px;
    height: 48px;
  }

  .fab-item {
    width: 38px;
    height: 38px;
  }
}

@media (max-width: 420px) {
  .vive-footer .row {
    justify-content: center;
  }

  .vive-footer .col-md-auto.d-flex {
    width: 100%;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }

  .vive-footer img {
    max-height: 24px;
    margin: 0 0.25rem;
  }
}

.vive-videos-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* CABECERA */
.vive-videos-header {
    text-align: center;
    margin-bottom: 35px;
}

.vive-videos-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: #123b5d;
    margin-bottom: 15px;
}

.vive-videos-header p {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.08rem;
    line-height: 1.8;
    color: #555;
}

/* TABLA DE CONTENIDO */
.vive-indice {
    background: #f5f9fc;
    border: 1px solid #dce7ef;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 45px;
    box-shadow: 0 5px 18px rgba(0,0,0,.06);
}

.vive-indice h2 {
    color: #123b5d;
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.vive-indice-lista {
    margin: 0;
    padding: 0;
    list-style: none;
}

.vive-indice-lista li {
    margin-bottom: 10px;
}

.vive-indice-lista a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 10px;
    color: #23465f;
    font-weight: 600;
    text-decoration: none;
    transition: all .25s ease;
}

.vive-indice-lista a:hover {
    background: #ffffff;
    color: #008cc9;
    transform: translateX(5px);
}

.vive-numero {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 34px;
    height: 34px;
    background: #008cc9;
    color: #fff;
    border-radius: 50%;
    font-size: .9rem;
    font-weight: 700;
}

/* SECCIONES */
.vive-video-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid #e4e9ed;
    box-shadow: 0 7px 24px rgba(0,0,0,.07);
    scroll-margin-top: 100px;
}

.vive-video-header {
    padding: 23px 28px;
    background: linear-gradient(135deg, #123b5d, #008cc9);
    color: #ffffff;
}

.vive-video-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.55rem;
    font-weight: 700;
}

.vive-video-header span {
    display: block;
    margin-top: 5px;
    opacity: .9;
    font-size: .95rem;
}

.vive-video-body {
    padding: 28px;
}

/* VIDEOS RESPONSIVOS */
.vive-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #000;
}

.vive-video-container video,
.vive-video-container iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: 0;
    object-fit: contain;
}

/* DESCRIPCIÓN */
.vive-video-descripcion {
    padding-top: 20px;
    color: #555;
    line-height: 1.7;
    font-size: 1rem;
}

.vive-video-descripcion strong {
    color: #123b5d;
}

/* BOTÓN REGRESAR */
.vive-volver {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    border-radius: 8px;
    background: #eef6fa;
    color: #008cc9;
    text-decoration: none;
    font-weight: 600;
    transition: .2s;
}

.vive-volver:hover {
    background: #008cc9;
    color: #fff;
}

/* ETIQUETA DE PRIORIDAD */
.vive-prioridad {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 20px;
    background: rgba(255,255,255,.18);
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 8px;
}

/* RESPONSIVO */
@media (max-width: 768px) {

    .vive-videos-wrapper {
        padding: 25px 12px 45px;
    }

    .vive-videos-header h1 {
        font-size: 1.8rem;
    }

    .vive-indice {
        padding: 20px 15px;
    }

    .vive-video-header {
        padding: 20px;
    }

    .vive-video-header h2 {
        font-size: 1.3rem;
    }

    .vive-video-body {
        padding: 18px;
    }
}
