/**
/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Nunito",  sans-serif;
  --nav-font: "Inter",  sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root { 
  --background-color: #ffffff; /* Background color for the entire website, including individual sections */
  --default-color: #3d4348; /* Default color used for the majority of the text content across the entire website */
  --heading-color: #3e5055; /* Color for headings, subheadings and title throughout the website */
  --accent-color: #388da8; /* Accent color that represents your brand on the website. It's used for buttons, links, and other elements that need to stand out */
  --surface-color: #ffffff; /* The surface color is used as a background of boxed elements within sections, such as cards, icon boxes, or other elements that require a visual separation from the global background. */
  --contrast-color: #ffffff; /* Contrast color for text, ensuring readability against backgrounds of accent, heading, or default colors. */
}

/* Nav Menu Colors - The following color variables are used specifically for the navigation menu. They are separate from the global colors to allow for more customization options */
:root {
  --nav-color: #313336;  /* The default color of the main navmenu links */
  --nav-hover-color: #77b6ca; /* Applied to main navmenu links when they are hovered over or active */
  --nav-mobile-background-color: #ffffff; /* Used as the background color for mobile navigation menu */
  --nav-dropdown-background-color: #ffffff; /* Used as the background color for dropdown items that appear when hovering over primary navigation items */
  --nav-dropdown-color: #313336; /* Used for navigation links of the dropdown items in the navigation menu. */
  --nav-dropdown-hover-color: #77b6ca; /* Similar to --nav-hover-color, this color is applied to dropdown navigation links when they are hovered over. */
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f8fbfc;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}


/*--------------------------------------------------------------
# Start
--------------------------------------------------------------*/

.quote {
  font-family: 'Georgia', serif; /* Tipografía elegante */
  font-size: 1.5rem; /* Tamaño agradable para lectura */
  color: #2c3e50; /* Color sobrio y elegante */
  text-align: center; /* Centrar el texto */
  line-height: 1.8; /* Espaciado entre líneas */
  margin: 40px auto; /* Separación superior e inferior */
  max-width: 700px; /* Limitar ancho para mejor lectura */
  background: rgba(255, 255, 255, 0.05); /* Fondo sutil */
  padding: 20px; /* Espacio interno */
  border-left: 4px solid #e67e22; /* Barra decorativa a la izquierda */
  border-radius: 8px; /* Bordes suaves */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Sombra ligera */
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.quote:hover {
  transform: translateY(-5px); /* Levanta un poco al pasar el mouse */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* Sombra más marcada */
}

.quote span {
  display: block;
  margin-top: 10px;
  font-size: 1rem;
  font-style: italic;
  color: #000000; /* Color más suave para el autor */
}


.btn-watch-video {
  background: linear-gradient(45deg, #e74c3c, #f39c12); /* Degradado atractivo */
  color: #fff; /* Texto blanco */
  padding: 12px 25px;
  border-radius: 50px; /* Botón redondeado */
  font-weight: bold;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px; /* Espacio entre icono y texto */
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-watch-video i {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.btn-watch-video:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-watch-video:hover i {
  transform: scale(1.2); /* El icono crece un poco al pasar el mouse */
}

/*--------------------------------------------------------------
# about
--------------------------------------------------------------*/

#about {
  padding: 100px 0;
  background: #f8f9fb;
  font-family: 'Poppins', sans-serif;
}

#about .row {
  align-items: center;
}

/* =========================
   TÍTULO
========================= */

#about h3 {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1f2933;
  position: relative;
}

#about h3::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #0d6efd;
  display: block;
  margin-top: 12px;
  border-radius: 2px;
}

/* =========================
   TEXTO
========================= */

#about .content p {
  font-size: 16px;
  line-height: 1.9;
  color: #444;
  margin-bottom: 20px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

#about .content strong {
  color: #080808;
  font-weight: 600;
}

/* =========================
   CARRUSEL
========================= */

.about-images {
  display: flex;
  align-items: center;
  justify-content: center;
}

.aboutSwiper {
  width: 100%;
  max-width: 920px;
  margin-top: 40px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.15);
  background-color: #0f0f0f; /* Fondo oscuro opcional para rellenar si la foto no cubre todo el ancho */
}

/* Aplicar alto al contenedor de la diapositiva */
.aboutSwiper .swiper-slide {
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ajuste completo de la imagen sin recortes */
.aboutSwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ajusta la foto completa para ver el logo y el grupo sin recortes */
  object-position: center;
  display: block;
}

/* Flechas */
.swiper-button-next,
.swiper-button-prev {
  background: rgba(0,0,0,0.4);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 18px;
}

/* Paginación */
.swiper-pagination-bullet {
  background: #ffffff;
  opacity: 0.6;
}

.swiper-pagination-bullet-active {
  background: #0d6efd;
  opacity: 1;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

  #about {
    padding: 80px 20px;
  }

  .aboutSwiper {
    margin-top: 25px;
  }

}

@media (max-width: 576px) {

  #about h3 {
    font-size: 30px;
  }

  .aboutSwiper img {
    height: 300px;
  }

}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}


/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/

.header {
  background-color: rgba(255, 255, 255, 0.95); /* Fondo blanco semi-transparente */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Sombra ligera */
  padding: 15px 0;
  transition: all 0.3s ease;
  z-index: 9999;

  position: fixed; /* Mantiene el header fijo */
  top: 0;
  left: 0;
  width: 100%;
}

/* Contenedor interno del header */

.header .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/*--------------------------------------------------------------
# Logo
--------------------------------------------------------------*/

.logo2 img {
  max-height: 60px;
  transition: transform 0.3s ease;
}

.logo2:hover img {
  transform: scale(1.05);
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

/*--------------------------------------------------------------
# Botón (si existe)
--------------------------------------------------------------*/

.header .btn-getstarted,
.header .btn-getstarted:focus {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-size: 14px;
  padding: 8px 25px;
  margin-left: 30px;
  border-radius: 50px;
  transition: 0.3s;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
}

/*--------------------------------------------------------------
# Responsive Header
--------------------------------------------------------------*/

@media (max-width: 1200px) {

  .header .logo {
    order: 1;
  }

  .header .btn-getstarted {
    order: 2;
    margin: 0 15px 0 0;
    padding: 6px 15px;
  }

  .header .navmenu {
    order: 3;
  }

}

/*--------------------------------------------------------------
# Logo Mobile
--------------------------------------------------------------*/

@media (max-width: 480px) {

  .logo2 img {
    max-height: 40px;
  }

  .header .logo h1 {
    font-size: 24px;
  }

}

/*--------------------------------------------------------------
# Scroll Effect
--------------------------------------------------------------*/

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.15);
}

/* Index Page Header */

.index-page .header {
  --background-color: rgba(255, 255, 255, 0);
}

/* Header al hacer scroll */

.index-page.scrolled .header {
  --background-color: #ffffff;
}

/*--------------------------------------------------------------
# RESET GLOBAL
--------------------------------------------------------------*/

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* Para que el contenido no quede debajo del header */

body{
  padding-top:90px;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/

*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial, Helvetica, sans-serif;
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/

.header {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: all 0.3s ease;
  z-index: 9999;
}

/* Logo */

.logo2 img {
  max-height: 60px;
  transition: transform 0.3s ease;
}

.logo2:hover img {
  transform: scale(1.05);
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
}

@media (max-width: 480px) {

  .header .logo img {
    max-height: 24px;
  }

  .header .logo h1 {
    font-size: 24px;
  }

}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}
/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/

/* ==============================================================
   ESCRITORIO
============================================================== */

@media (min-width: 1200px) {

  .navmenu {
    padding: 0;
  }

  /* MENÚ PRINCIPAL */
  .navmenu > ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    gap: 0;
  }

  /* ELEMENTOS */
  .navmenu > ul > li {
    position: relative;
    margin: 0;
    padding: 0;
  }

  /* ENLACES PRINCIPALES */
  .navmenu > ul > li > a {

    color: var(--nav-color);
    padding: 16px 8px;
    font-size: 14px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.3s ease;
    border-radius: 6px;
  }

  /* HOVER */
  .navmenu > ul > li:hover > a {
    color: var(--nav-hover-color);
    background: rgba(198, 40, 40, 0.06);
  }

  /* ACTIVO */
  .navmenu > ul > li > a.active {
    color: var(--nav-hover-color);
    font-weight: 600;
  }

  /* ============================================================
     FLECHA
  ============================================================ */

  .submenu-arrow {
    margin-left: 4px;
    font-size: 10px;
    line-height: 1;
    transition: transform 0.25s ease;
  }

  .navmenu li:hover > a .submenu-arrow {
    transform: rotate(180deg);
  }

  /* ============================================================
     SUBMENU
  ============================================================ */

  .navmenu .submenu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    background: #ffffff;
    list-style: none;
    display: block;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
      opacity 0.25s ease,
      visibility 0.25s ease,
      transform 0.25s ease;
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    z-index: 9999;
  }

  /* MOSTRAR SUBMENU */
  .navmenu li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* ITEMS SUBMENU */
  .navmenu .submenu li {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
  }

  /* LINKS SUBMENU */
  .navmenu .submenu li a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    font-family: var(--nav-font);
    font-weight: 500;
    color: #333333;
    white-space: nowrap;
    border-radius: 7px;
    transition: all 0.2s ease;
    box-sizing: border-box;
  }

  /* HOVER SUBMENU */
  .navmenu .submenu li a:hover {
    color: #c62828;
    background: #fdf2f2;
    padding-left: 18px;
  }

  /* ============================================================
     SUBMENU HACIA LA IZQUIERDA
     PARA PUBLICACIONES / FORMACIÓN SI ES NECESARIO
  ============================================================ */

  .navmenu > ul > li:nth-last-child(2) .submenu {
    right: 0;
    left: auto;
  }

}


/* ==============================================================
   PANTALLAS MEDIANAS
   1200px - 1350px
============================================================== */

@media (min-width: 1200px) and (max-width: 1350px) {

  .navmenu > ul > li > a {
    padding-left: 6px;
    padding-right: 6px;
    font-size: 13px;
  }

  .navmenu > ul {
    gap: 0;
  }

}


/* ==============================================================
   PANTALLAS DE 1366px EN ADELANTE
============================================================== */

@media (min-width: 1366px) {
  .navmenu > ul > li > a {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 14px;
  }

}


/* ==============================================================
   PANTALLAS GRANDES
   1440px EN ADELANTE
============================================================== */

@media (min-width: 1440px) {
  .navmenu > ul > li > a {
    padding-left: 9px;
    padding-right: 9px;
    font-size: 14px;
  }

}


/*--------------------------------------------------------------
# Mobile Navigation
--------------------------------------------------------------*/

@media (max-width: 1199px) {

  /* BOTÓN HAMBURGUESA */

  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    cursor: pointer;
    transition: 0.3s;
  }

  .mobile-nav-toggle:hover {
    color: var(--nav-hover-color);
  }

  /* CONTENEDOR */

  .navmenu {
    padding: 0;
    z-index: 9997;
  }


  /* MENÚ */

  .navmenu > ul {
    display: none;
    list-style: none;
    position: fixed;
    top: 70px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 10px;
    background-color: #ffffff;
    overflow-y: auto;
    z-index: 9998;
    box-shadow:
      0 10px 35px rgba(0, 0, 0, 0.15);
  }


  /* ENLACES */

  .navmenu > ul > li > a {
    color: #333333;
    padding: 13px 20px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    border-radius: 6px;
  }


  /* HOVER */

  .navmenu > ul > li > a:hover {
    color: #c62828;
    background: #fdf2f2;
  }


  /* ACTIVO */

  .navmenu > ul > li > a.active {
    color: #c62828;
    font-weight: 600;
  }


  /* ============================================================
     SUBMENU MOBILE
  ============================================================ */

  .navmenu .submenu {
    position: static;
    display: none;
    width: 100%;
    padding: 5px 0 5px 15px;
    margin: 0;
    background: #fafafa;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
  }


  /* ITEMS */

  .navmenu .submenu li {
    display: block;
    width: 100%;
  }

  /* LINKS */

  .navmenu .submenu li a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 15px;
    color: #555555;
    border-radius: 6px;
    transition: all 0.2s ease;
  }


  /* HOVER */

  .navmenu .submenu li a:hover {
    color: #c62828;
    background: #f5f5f5;
    padding-left: 25px;
  }

  /* MOSTRAR SUBMENU */

  .has-submenu:hover > .submenu {
    display: block;
  }

  /* ============================================================
     FLECHA MOBILE
  ============================================================ */

  .submenu-arrow {
    margin-left: auto;
    font-size: 11px;
  }

  /* ============================================================
     MENÚ ACTIVO
  ============================================================ */

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    inset: 0;
    background: rgba(33, 37, 41, 0.80);
  }

  .mobile-nav-active .navmenu > ul {
    display: block;
  }

}


/*--------------------------------------------------------------
# Ajuste adicional del logo
--------------------------------------------------------------*/

@media (min-width: 1200px) {
  .header .logo img {
    max-height: 52px;
    width: auto;
  }

}


/*--------------------------------------------------------------
# Evitar desbordamiento horizontal
--------------------------------------------------------------*/

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}


/*--------------------------------------------------------------
# Animación suave
--------------------------------------------------------------*/

.navmenu a {
  text-decoration: none;
}


/*--------------------------------------------------------------
# Submenu - borde superior
--------------------------------------------------------------*/

@media (min-width: 1200px) {
  .navmenu .submenu::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 25px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }

}

/* =========================================================
   SECCIÓN NODOS DE GESTIÓN (ACORDEÓN PREMIUM STABLE) - RIGES
========================================================= */

:root {
  --riges-azul: #003366;       /* Azul marino principal */
  --riges-rojo: #d9534f;       /* Rojo académico de acento */
  --riges-negro: #111111;      /* Texto principal */
  --riges-blanco: #ffffff;     /* Blanco puro */
  --riges-gris-fondo: #f8fafc; /* Fondo suave */
  --riges-borde: rgba(0, 51, 102, 0.12);
}

/* Item Contenedor del Acordeón */
.acordeon-item {
  background: var(--riges-blanco);
  border-radius: 14px;
  margin-bottom: 25px;
  border: 1px solid var(--riges-borde);
  box-shadow: 0 10px 30px rgba(0, 51, 102, 0.05);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.acordeon-item:hover {
  border-color: rgba(0, 51, 102, 0.25);
  box-shadow: 0 12px 35px rgba(0, 51, 102, 0.09);
}

.acordeon-item.active {
  border-color: var(--riges-rojo);
}

/* Header / Encabezado */
.acordeon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 25px;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(0, 51, 102, 0.04), var(--riges-blanco));
  transition: background 0.3s ease;
  user-select: none;
}

.acordeon-header:hover {
  background: linear-gradient(90deg, rgba(0, 51, 102, 0.08), var(--riges-blanco));
}

.header-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icono-nodo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}

.acordeon-header h4 {
  margin: 0;
  font-weight: 700;
  font-size: 16px;
  color: var(--riges-azul);
  line-height: 1.4;
}

.flecha {
  font-size: 16px;
  color: var(--riges-rojo);
  transition: transform 0.4s ease;
  flex-shrink: 0;
  margin-left: 15px;
}

/* Rotación de Flecha en estado activo */
.acordeon-item.active .flecha {
  transform: rotate(180deg);
}

/* Contenido (Desplegable Estable) */
.acordeon-content {
  display: none;
  padding: 10px 25px 25px 25px;
  animation: fadeSlide 0.4s ease forwards;
  background: var(--riges-blanco);
  border-top: 1px solid var(--riges-borde);
}

.acordeon-item.active .acordeon-content {
  display: block;
}

.acordeon-content p {
  font-size: 15px;
  color: var(--riges-negro);
  opacity: 0.85;
  line-height: 1.6;
  margin-top: 15px;
  margin-bottom: 20px;
}

/* Animación de entrada suave */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablas Institucionales RIGES */
.acordeon-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--riges-borde);
}

.acordeon-content th {
  background: var(--riges-azul);
  color: var(--riges-blanco);
  padding: 14px;
  text-align: left;
  font-weight: 700;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.acordeon-content td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
  color: var(--riges-negro);
  line-height: 1.5;
}

.acordeon-content tr:last-child td {
  border-bottom: none;
}

.acordeon-content tr:nth-child(even) {
  background: rgba(0, 51, 102, 0.02);
}

.acordeon-content tr:hover {
  background: rgba(217, 83, 79, 0.04);
  transition: background 0.3s ease;
}

/* Botón de Descarga Final de Nodos */
.descarga-nodos-final {
  margin-top: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.descarga-nodos-final .texto-descarga {
  font-size: 14px;
  font-weight: 600;
  color: var(--riges-azul);
  margin: 0;
}

.descarga-nodos-final .btn-descargar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--riges-azul);
  color: var(--riges-blanco);
  padding: 13px 30px;
  border-radius: 40px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(0, 51, 102, 0.15);
}

.descarga-nodos-final .btn-descargar:hover {
  background: var(--riges-rojo);
  color: var(--riges-blanco);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(217, 83, 79, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
  .acordeon-header {
    padding: 18px 20px;
  }

  .acordeon-content {
    padding: 10px 18px 20px 18px;
    overflow-x: auto;
  }

  .acordeon-header h4 {
    font-size: 14.5px;
  }

  .acordeon-content table {
    min-width: 520px;
  }
}

/*--------------------------------------------------------------
# Fundamentos
--------------------------------------------------------------*/

#fundamentos {
  padding: 80px 0;
  background-color: #f4f6f8;
  font-family: 'Poppins', sans-serif;
}

/* Título de sección */
#fundamentos .section-title h2 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1f2933;
  margin-bottom: 12px;
  text-align: center;
}

/* Subtítulo */
#fundamentos .section-title .subtitle {
  max-width: 780px;
  margin: 0 auto 35px;
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  text-align: center;
}

/* Row con dos columnas */
#fundamentos .row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

/* Columnas */
#fundamentos .col-lg-6 {
  flex: 1 1 calc(50% - 15px);
  display: flex;
}

/* Tarjetas de contenido */
#fundamentos .fundamento-card {
  background-color: #ffffff;
  padding: 36px 32px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-top: 5px solid #d92525; /* Borde superior de acento */
  font-size: 15px;
  line-height: 1.85;
  color: #3f3f3f;
  text-align: justify;
  hyphens: auto;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Header interno de la tarjeta */
#fundamentos .fundamento-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

#fundamentos .fundamento-badge {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #d92525;
  letter-spacing: 1.5px;
  background-color: #fdf2f2;
  padding: 6px 14px;
  border-radius: 20px;
}

#fundamentos .fundamento-icon {
  font-size: 24px;
  line-height: 1;
}

/* Texto de la tarjeta */
#fundamentos .fundamento-card p {
  margin: 0;
  color: #4a5568;
}

/* Hover suave y elegante */
#fundamentos .fundamento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
  #fundamentos {
    padding: 70px 20px;
  }
  #fundamentos .col-lg-6 {
    flex: 0 0 100%;
  }
  #fundamentos .fundamento-card {
    padding: 28px 24px;
  }
}

@media (max-width: 576px) {
  #fundamentos .section-title h2 {
    font-size: 32px;
  }
  #fundamentos .section-title .subtitle {
    font-size: 16px;
    margin-bottom: 25px;
  }
  #fundamentos .fundamento-card {
    padding: 24px 20px;
  }
  #fundamentos .fundamento-card p {
    text-align: left;
  }
}

/* =========================================================
   SECCIÓN LINEAMIENTOS RIGES
========================================================= */
.lineamientos-section {
  padding: 60px 20px;
}

.subtitulo-seccion {
  font-size: 16px;
  color: var(--color-gris-texto);
  margin-top: -15px;
  margin-bottom: 35px;
  font-weight: 400;
}

/* Layout Grid para Lineamientos */
.lineamientos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Tarjetas de Lineamientos */
.lineamiento-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 35px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 5px solid var(--color-rojo);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.lineamiento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Encabezado dentro de la Tarjeta */
.lineamiento-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.badge-numero {
  background: var(--color-fondo-sec);
  color: var(--color-rojo);
  font-weight: 800;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.icono-lineamiento {
  font-size: 32px;
  line-height: 1;
}

/* Tipografía y Contenido */
.lineamiento-body h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-negro);
  margin-bottom: 15px;
  line-height: 1.4;
}

.lineamiento-body p {
  font-size: 15px;
  color: var(--color-gris-texto);
  line-height: 1.7;
  margin-bottom: 14px;
  text-align: justify;
}

.lineamiento-body p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   ADAPTACIÓN RESPONSIVA
========================================================= */
@media (max-width: 992px) {
  .lineamientos-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 480px) {
  .lineamientos-section {
    padding: 40px 15px;
  }

  .lineamiento-card {
    padding: 25px 20px;
    border-radius: 16px;
  }

  .lineamiento-body h4 {
    font-size: 18px;
  }

  .lineamiento-body p {
    font-size: 14px;
    text-align: left;
  }
}

/* =========================
   FOOTER
========================= */

.footer {
  background: #080808;
  color: #d1d5db;
  padding-top: 70px;
  font-family: 'Poppins', sans-serif;
}

.footer a {
  color: #d1d5db;
  text-decoration: none;
  transition: 0.3s;
}

.footer a:hover {
  color: #f05209;
}

/* Logo */
.footer .sitename {
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  display: block;
  margin-bottom: 20px;
}

/* Secciones */
.footer h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
  position: relative;
}

.footer h4::after {
  content: "";
  width: 40px;
  height: 2px;
  background: #ff0630;
  display: block;
  margin-top: 8px;
}

/* Listas */
.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

/* Redes sociales */
.social-links {
  margin-top: 20px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: #1f2937;
  border-radius: 50%;
  margin-right: 10px;
  color: #ffffff;
  transition: 0.3s;
}

.social-links a:hover {
  background: #0d6efd;
}

/* Contador */

.visitas-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 18px;
  border-radius: 12px;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.visitas-card i {
  font-size: 1.4rem;
  color: #00d2ff;
}

.visitas-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.visitas-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.8;
}

.visitas-numero {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}
/* Parte inferior */
.footer-bottom {
  background: #f72702;
  text-align: center;
  padding: 20px 0;
  margin-top: 40px;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .footer {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

/* =========================================================
   PASARELA PREMIUM GLASSMORPHISM DE NOTICIAS DE WHATSAPP
========================================================= */

.pasarela-card-glass {
  position: relative;
  margin-top: 18px;
  background: rgba(18, 30, 49, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pasarela-card-glass:hover {
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.15);
}

/* Barra Superior de la Pasarela */
.pasarela-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Punto intermitente verde LIVE */
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(37, 211, 102, 0.6);
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.icon-ws {
  color: #25d366;
  font-size: 1rem;
}

.status-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #e2e8f0;
}

/* Botón Unirse */
.btn-join-ws {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(37, 211, 102, 0.15);
  color: #25d366 !important;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(37, 211, 102, 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-join-ws:hover {
  background: #25d366;
  color: #0d1b2a !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

.btn-join-ws i {
  font-size: 16px;
  transition: transform 0.2s ease;
}

.btn-join-ws:hover i {
  transform: translateX(3px);
}

/* Contenedor del Ticker */
.ticker-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 28px;
  display: flex;
  align-items: center;
}

/* Sombras de degradado suave a los costados */
.fade-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 25px;
  z-index: 3;
  pointer-events: none;
}

.fade-overlay.left {
  left: 0;
  background: linear-gradient(to right, rgba(18, 30, 49, 0.9), transparent);
}

.fade-overlay.right {
  right: 0;
  background: linear-gradient(to left, rgba(18, 30, 49, 0.9), transparent);
}

/* Pista de animación infinita */
.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: continuous-scroll 22s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused; /* Pausa al colocar el ratón sobre el texto */
}

/* Ítems de Noticias */
.news-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 45px;
  text-decoration: none;
  white-space: nowrap;
}

.tag-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.tag-badge.red {
  background: rgba(230, 57, 70, 0.2);
  color: #ff4d5e;
  border: 1px solid rgba(230, 57, 70, 0.3);
}

.tag-badge.green {
  background: rgba(37, 211, 102, 0.2);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.tag-badge.blue {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.news-text {
  font-size: 13px;
  color: #cbd5e1;
  transition: color 0.2s ease;
}

.news-text strong {
  color: #ffffff;
}

.news-item:hover .news-text {
  color: #25d366;
}

/* Animación continua sin salto */
@keyframes continuous-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: var(--background-color);
  transition: all 0.6s ease-out;
  width: 100%;
  height: 100vh;
}

#preloader:before,
#preloader:after {
  content: "";
  position: absolute;
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: animate-preloader 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

#preloader:after {
  animation-delay: -0.5s;
}

@keyframes animate-preloader {
  0% {
    width: 10px;
    height: 10px;
    top: calc(50% - 5px);
    left: calc(50% - 5px);
    opacity: 1;
  }

  100% {
    width: 72px;
    height: 72px;
    top: calc(50% - 36px);
    left: calc(50% - 36px);
    opacity: 0;
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  --background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 25px 0;
  position: relative;
}

.page-title h1 {
  font-size: 24px;
  font-weight: 700;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 100px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 70vh;
  position: relative;
  padding: 180px 0 40px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero .hero-bg img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .hero-bg::before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 15%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h1 {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
}

.hero h1 span {
  color: var(--accent-color);
}

.hero p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin: 5px 0 30px 0;
  font-size: 20px;
  font-weight: 400;
}

@media (min-width: 768px) {
  .hero .hero-img {
    max-width: 600px;
  }
}

.hero .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 10px 28px;
  border-radius: 50px;
  transition: 0.5s;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.hero .btn-get-started:hover {
  color: var(--contrast-color);
  background: color-mix(in srgb, var(--accent-color), transparent 15%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}

.hero .btn-watch-video {
  font-size: 16px;
  transition: 0.5s;
  margin-left: 25px;
  color: var(--default-color);
  font-weight: 600;
}

.hero .btn-watch-video i {
  color: var(--accent-color);
  font-size: 32px;
  transition: 0.3s;
  line-height: 0;
  margin-right: 8px;
}

.hero .btn-watch-video:hover {
  color: var(--accent-color);
}

.hero .btn-watch-video:hover i {
  color: color-mix(in srgb, var(--accent-color), transparent 15%);
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .hero p {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 30px;
  }

  .hero .btn-get-started,
  .hero .btn-watch-video {
    font-size: 13px;
  }
}

/* =========================================================
   SECCIÓN ABOUT Y PROPÓSITO SOCIAL (RIGES)
========================================================= */
.section-about-premium {
  padding: 80px 0;
  background-color: #ffffff;
}

/* Badges y Encabezados */
.section-about-premium .about-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-rojo, #d92525);
  background-color: rgba(217, 37, 37, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-about-premium .about-title {
  font-size: 36px;
  font-weight: 800;
  color: #1f2933;
  margin-bottom: 20px;
  line-height: 1.2;
}

.proposito-heading {
  font-size: 28px;
  font-weight: 700;
  color: #1f2933;
  margin-top: 5px;
}

/* Texto y Párrafos */
.section-about-premium p {
  font-size: 15px;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 18px;
  text-align: justify;
}

.section-about-premium p.lead-text {
  font-size: 16px;
  font-weight: 500;
  color: #2d3748;
}

/* Carrusel Swiper */
.about-swiper-wrapper {
  position: relative;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background-color: #1a202c; /* Fondo oscuro ajustado para los bordes restantes */
  overflow: hidden;
}

.aboutSwiper {
  width: 100%;
  /* Mantenemos una altura adaptable o suficiente para la relación de aspecto */
  min-height: 400px;
  max-height: 520px;
  height: auto;
  border-radius: 20px;
}

.aboutSwiper .swiper-slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a202c;
  padding: 10px; /* Margen interno para despejar el logo del borde redondeado */
  box-sizing: border-box;
}

.aboutSwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  /* Evita el recorte de esquinas y ajusta la escala automáticamente */
  object-fit: contain !important;
  display: block;
}

.aboutSwiper .swiper-slide:hover img {
  transform: scale(1.02);
}

.aboutSwiper .swiper-button-next,
.aboutSwiper .swiper-button-prev {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  color: #1f2933;
  transition: all 0.3s ease;
}

.aboutSwiper .swiper-button-next:after,
.aboutSwiper .swiper-button-prev:after {
  font-size: 15px;
  font-weight: bold;
}

.aboutSwiper .swiper-button-next:hover,
.aboutSwiper .swiper-button-prev:hover {
  background-color: var(--color-rojo, #d92525);
  color: #ffffff;
}

.aboutSwiper .swiper-pagination-bullet-active {
  background-color: var(--color-rojo, #d92525);
  width: 22px;
  border-radius: 8px;
}

/* =========================================================
   SECCIÓN ABOUT Y PROPÓSITO SOCIAL (RIGES) - COMPLETO
========================================================= */

.section-about-premium {
  padding: 80px 0;
  background-color: #ffffff;
}

/* --- Badges y Encabezados --- */
.section-about-premium .about-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-rojo, #d92525);
  background-color: rgba(217, 37, 37, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-about-premium .about-title {
  font-size: 36px;
  font-weight: 800;
  color: #1f2933;
  margin-bottom: 20px;
  line-height: 1.2;
}

.proposito-heading {
  font-size: 28px;
  font-weight: 700;
  color: #1f2933;
  margin-top: 5px;
}

/* --- Texto y Párrafos --- */
.section-about-premium p {
  font-size: 15px;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 18px;
  text-align: justify;
}

.section-about-premium p.lead-text {
  font-size: 16px;
  font-weight: 500;
  color: #2d3748;
}

/* --- Carrusel Swiper (Ajuste Perfecto a Bordes Curvos) --- */
.about-swiper-wrapper {
  position: relative;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.aboutSwiper {
  width: 100%;
  height: 480px;
  border-radius: 20px;
  overflow: hidden; /* Recorta la imagen exacto al marco curvo */
}

.aboutSwiper .swiper-slide {
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.aboutSwiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Mantiene proporciones sin deformar */
  display: block;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

.aboutSwiper .swiper-slide:hover img {
  transform: scale(1.03);
}

.aboutSwiper .swiper-button-next,
.aboutSwiper .swiper-button-prev {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  color: #1f2933;
  transition: all 0.3s ease;
}

.aboutSwiper .swiper-button-next:after,
.aboutSwiper .swiper-button-prev:after {
  font-size: 15px;
  font-weight: bold;
}

.aboutSwiper .swiper-button-next:hover,
.aboutSwiper .swiper-button-prev:hover {
  background-color: var(--color-rojo, #d92525);
  color: #ffffff;
}

.aboutSwiper .swiper-pagination-bullet-active {
  background-color: var(--color-rojo, #d92525);
  width: 22px;
  border-radius: 8px;
}

/* --- Tarjetas de Propósito --- */
.proposito-card {
  background: #f8fafc;
  padding: 32px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proposito-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
}

.proposito-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.proposito-card-header .card-icon {
  width: 46px;
  height: 46px;
  background-color: rgba(217, 37, 37, 0.1);
  color: var(--color-rojo, #d92525);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.proposito-card-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1f2933;
  margin: 0;
}

.proposito-highlight {
  margin-top: auto;
  padding: 14px 16px;
  background: #ffffff;
  border-left: 4px solid var(--color-rojo, #d92525);
  border-radius: 0 10px 10px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* --- Grilla de Principios --- */
.creencias-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.creencias-titulo {
  font-size: 22px;
  font-weight: 700;
  color: #1f2933;
  text-align: center;
  margin-bottom: 30px;
}

.creencias-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.creencia-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f8fafc;
  padding: 18px 20px;
  border-radius: 14px;
}

.creencia-num {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-rojo, #d92525);
  background: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.creencia-item p {
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  margin: 0;
  text-align: left;
}

/* --- Banner Destacado --- */
.proposito-banner {
  background: linear-gradient(135deg, #1f2933 0%, #111827 100%);
  padding: 24px 30px;
  border-radius: 14px;
  text-align: center;
}

.proposito-banner p {
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
  margin: 0;
  text-align: center;
}

/* --- Responsividad --- */
@media (max-width: 992px) {
  .aboutSwiper {
    height: 360px;
  }
  .creencias-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .aboutSwiper {
    height: 280px;
  }
  .section-about-premium p {
    text-align: left;
  }
  .proposito-card {
    padding: 24px;
  }
  .creencias-box {
    padding: 24px 16px;
  }
  .proposito-banner {
    padding: 18px 15px;
  }
  .proposito-banner p {
    font-size: 14px;
  }
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features .nav-tabs {
  border: 0;
}

.features .nav-item {
  width: 100%;
  margin-bottom: 15px;
}

.features .nav-item:last-child {
  margin-bottom: 0;
}

.features .nav-link {
  color: var(--heading-color);
  border: 0;
  padding: 30px;
  transition: 0.3s;
  border-radius: 10px;
  display: flex;
  cursor: pointer;
}

.features .nav-link i {
  background-color: var(--surface-color);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  width: 48px;
  height: 48px;
  font-size: 22px;
  flex-shrink: 0;
  border-radius: 50px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.features .nav-link h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 10px 0;
  transition: 0.3s;
}

.features .nav-link p {
  font-size: 15px;
  margin: 0;
}

.features .nav-link:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 96%);
}

.features .nav-link.active {
  background: color-mix(in srgb, var(--accent-color), transparent 96%);
  color: var(--default-color);
}

.features .tab-pane img {
  border-radius: 15px;
}

/*--------------------------------------------------------------
# Features Details Section
--------------------------------------------------------------*/
.features-details .features-item+.features-item {
  margin-top: 60px;
}

.features-details .features-item .content {
  background-color: color-mix(in srgb, var(--accent-color), transparent 95%);
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 30px;
  border-radius: 10px;
}

.features-details .features-item h3 {
  font-weight: 700;
  font-size: 26px;
  margin-bottom: 15px;
}

.features-details .features-item .more-btn {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 6px 30px;
  border-radius: 6px;
}

.features-details .features-item .more-btn:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.features-details .features-item ul {
  list-style: none;
  padding: 0;
}

.features-details .features-item ul li {
  padding-bottom: 10px;
  display: flex;
  align-items: center;
}

.features-details .features-item ul li:last-child {
  padding-bottom: 0;
}

.features-details .features-item ul i {
  font-size: 20px;
  margin-right: 10px;
  color: var(--accent-color);
}

.features-details .features-item img {
  border-radius: 15px;
}


/*--------------------------------------------------------------
# More Features Section
--------------------------------------------------------------*/
.more-features .features-image {
  position: relative;
  min-height: 400px;
}

.more-features .features-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.more-features h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.more-features .icon-box {
  margin-top: 30px;
}

.more-features .icon-box i {
  color: var(--accent-color);
  margin-right: 15px;
  font-size: 24px;
  line-height: 1.2;
}

.more-features .icon-box h4 {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 18px;
}

.more-features .icon-box p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

/* =========================================================
   VARIABLES Y BASE
========================================================= */
:root {
  --color-rojo: #e10600;
  --color-negro: #000000;
  --color-gris-texto: #555555;
  --color-fondo-sec: #f5f5f5;
  --color-tarjeta-top: #ffffff;
  --color-tarjeta-bottom: #f0f0f0;
  --fuente-principal: 'Poppins', sans-serif;
}

body,
.section-premium {
  font-family: var(--fuente-principal);
}

/* =========================================================
   ESTRUCTURA DEL MAQUETADO (GRID PRINCIPAL)
========================================================= */
.contenedor-principal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.bloque-ancho {
  grid-column: span 2;
}

.header-publicaciones .section-premium {
  padding: 30px 20px;
}

.header-publicaciones h2 {
  margin-bottom: 0;
}

/* =========================================================
   SECCIONES Y TÍTULOS
========================================================= */
.section-premium {
  padding: 40px 30px;
  background: var(--color-fondo-sec);
  text-align: center;
  border-radius: 20px;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-premium h2 {
  font-size: 38px;
  font-weight: 800;
  color: var(--color-negro);
  margin-bottom: 30px;
  position: relative;
  letter-spacing: 1px;
}

.section-premium h2::after {
  content: "";
  width: 100px;
  height: 4px;
  background: var(--color-rojo);
  display: block;
  margin: 18px auto 0;
  border-radius: 4px;
}

/* =========================================================
   TARJETAS
========================================================= */
.pub-grid {
  width: 100%;
  margin: 0 auto;
  display: flex;
  height: 100%;
}

.pub-card.premium {
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(
    145deg,
    var(--color-tarjeta-top),
    var(--color-tarjeta-bottom)
  );
  padding: 40px 35px;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  border-top: 6px solid var(--color-rojo);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.pub-card.premium:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.18);
}

.icono-pdf {
  font-size: 50px;
  margin-bottom: 15px;
}

.pub-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--color-negro);
}

.descripcion {
  font-size: 15px;
  color: var(--color-gris-texto);
  margin-bottom: 25px;
  line-height: 1.6;
}

/* =========================================================
   BOTONES Y ACCIONES
========================================================= */
.acciones-card {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 15px;
  width: 100%;
}

.btn-visor,
.btn-repo {
  display: inline-block;
  background: var(--color-negro);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
}

.btn-descargar {
  display: inline-block;
  background: var(--color-rojo);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
}

.btn-visor:hover,
.btn-repo:hover {
  background: #222222;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.btn-descargar:hover {
  background: #b30500;
  box-shadow: 0 5px 15px rgba(225, 6, 0, 0.4);
  transform: translateY(-2px);
}

/* =========================================================
   CONTADOR DE DESCARGAS
========================================================= */
.texto-descargas {
  font-size: 13px;
  color: var(--color-gris-texto);
  margin-top: 10px;
  font-weight: 500;
}

.texto-descargas span {
  font-weight: 700;
  color: var(--color-rojo);
}

/* =========================================================
   VENTANA MODAL FLOTANTE (VISOR POPUP)
========================================================= */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-contenedor {
  background: #ffffff;
  width: 100%;
  max-width: 950px;
  height: 85vh;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  animation: modalEntrada 0.3s ease-out forwards;
}

@keyframes modalEntrada {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-header {
  background: var(--color-negro);
  color: #ffffff;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid var(--color-rojo);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.modal-header-acciones {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-descargar-modal {
  background: var(--color-rojo);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-descargar-modal:hover {
  background: #b30500;
  transform: translateY(-1px);
}

.btn-cerrar-modal {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.btn-cerrar-modal:hover {
  color: var(--color-rojo);
  transform: scale(1.15);
}

.modal-body {
  flex: 1;
  width: 100%;
  background: #f4f6f9;
}

.modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* =========================================================
   ADAPTACIÓN RESPONSIVA
========================================================= */
@media (max-width: 768px) {
  .contenedor-principal {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bloque-ancho {
    grid-column: span 1;
  }

  .section-premium {
    padding: 35px 20px;
  }

  .section-premium h2 {
    font-size: 30px;
    margin-bottom: 25px;
  }

  .pub-card.premium {
    padding: 30px 20px;
  }

  .acciones-card {
    flex-direction: column;
    width: 100%;
  }

  .btn-visor,
  .btn-repo,
  .btn-descargar {
    width: 100%;
    text-align: center;
  }

  .modal-overlay {
    padding: 10px;
  }

  .modal-contenedor {
    height: 90vh;
  }

  .modal-header {
    padding: 12px 18px;
  }

  .modal-header h3 {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .section-premium {
    padding: 30px 15px;
  }

  .section-premium h2 {
    font-size: 26px;
  }

  .pub-card.premium {
    padding: 25px 15px;
    border-radius: 18px;
  }

  .icono-pdf {
    font-size: 40px;
  }

  .pub-card h3 {
    font-size: 18px;
  }

  .descripcion {
    font-size: 14px;
  }

  .modal-contenedor {
    height: 95vh;
    border-radius: 12px;
  }
}

/* =========================================================
   SECCIÓN CONTACTO - PALETA RIGES (AZUL, BLANCO, ROJO, NEGRO)
========================================================= */

:root {
  --riges-azul: #003366;       /* Azul marino principal */
  --riges-rojo: #d9534f;       /* Rojo académico de acento */
  --riges-negro: #111111;      /* Negro puro / Textos oscuros */
  --riges-blanco: #ffffff;     /* Blanco puro */
  --riges-gris-fondo: #f4f6f9; /* Fondo claro para contraste */
  --riges-borde: rgba(0, 51, 102, 0.12);
}

/* --- Estructura General --- */
.contact-section {
  padding: 100px 0;
  background-color: var(--riges-gris-fondo);
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Encabezado --- */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-badge {
  display: inline-block;
  padding: 6px 18px;
  background-color: rgba(0, 51, 102, 0.08);
  color: var(--riges-azul);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--riges-azul);
  margin-top: 12px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-header h2 span {
  color: var(--riges-rojo);
}

.section-subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: var(--riges-negro);
  opacity: 0.75;
  font-size: 15.5px;
  line-height: 1.6;
}

/* --- Tarjetas de Información --- */
.contact-info {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.info-card {
  flex: 1 1 250px;
  background: var(--riges-blanco);
  padding: 30px 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--riges-borde);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(0, 51, 102, 0.12);
  border-color: var(--riges-rojo);
}

.info-card i {
  font-size: 32px;
  color: var(--riges-rojo);
  margin-bottom: 14px;
  display: inline-block;
}

.info-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--riges-azul);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 14px;
  color: var(--riges-negro);
  margin: 0;
  word-break: break-word;
}

/* --- Contenido Principal (Simetría de Cajas) --- */
.contact-content {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: stretch;
}

/* Caja del Mapa */
.map-box {
  flex: 1 1 450px;
  height: 480px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--riges-blanco);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--riges-borde);
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Caja de Twitter / X */
.twitter-box {
  flex: 1 1 450px;
  height: 480px;
  background: var(--riges-blanco);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--riges-borde);
  display: flex;
  flex-direction: column;
}

.twitter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.twitter-box h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--riges-azul);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.twitter-box h4 i {
  color: var(--riges-negro);
}

.btn-seguir {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--riges-negro);
  color: var(--riges-blanco);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-seguir:hover {
  background-color: var(--riges-rojo);
  color: var(--riges-blanco);
  transform: translateY(-2px);
}

.twitter-feed-container {
  flex: 1;
  overflow-y: auto;
  border-radius: 12px;
  padding-right: 4px;
}

/* Scrollbar Personalizada */
.twitter-feed-container::-webkit-scrollbar {
  width: 6px;
}

.twitter-feed-container::-webkit-scrollbar-track {
  background: #e9ecef;
  border-radius: 10px;
}

.twitter-feed-container::-webkit-scrollbar-thumb {
  background: var(--riges-azul);
  border-radius: 10px;
}

.twitter-feed-container::-webkit-scrollbar-thumb:hover {
  background: var(--riges-rojo);
}

/* --- Responsive --- */
@media (max-width: 991px) {
  .contact-section {
    padding: 70px 0;
  }

  .contact-content {
    flex-direction: column;
  }

  .map-box,
  .twitter-box {
    flex: 1 1 100%;
    height: 420px;
  }
}

@media (max-width: 576px) {
  .contact-section {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .info-card {
    padding: 24px 16px;
  }

  .twitter-box {
    padding: 18px;
  }
}

/* =========================================================
   SECCIÓN ENCUENTROS
========================================================= */
.encuentro {
    padding: 80px 20px;
    background: #f5f5f5;
}

.encuentro h2 {
    text-align: center;
    font-size: 38px;
    font-weight: 800;
    color: #000;
    margin-bottom: 60px;
    letter-spacing: 1px;
    position: relative;
}

.encuentro h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 4px;
    background: #e10600;
    margin: 12px auto 0;
    border-radius: 4px;
}

/* =========================================================
   GRID Y TARJETAS ENCUENTROS
========================================================= */
.encuentros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

.encuentro-card {
    background: linear-gradient(145deg, #fff, #f0f0f0);
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: 0.35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.encuentro-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 55px rgba(0,0,0,0.12);
}

.encuentro-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.encuentro-card img:hover {
    transform: scale(1.03);
}

.encuentro-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #000;
}

/* =========================================================
   BOTONES DE TARJETAS
========================================================= */
.encuentro-card .btn-visor {
    background: #e10600;
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    margin-bottom: 8px;
}

.encuentro-card .btn-visor:hover {
    background: #b00000;
    transform: scale(1.05);
}

.btn-galeria {
    background: #000000;
    color: #ffffff;
    border: 2px solid #e10600;
    padding: 10px 22px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-galeria:hover {
    background: #e10600;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(225, 6, 0, 0.4);
    transform: scale(1.05);
}

/* =========================================================
   MODALES GENERALES (Estructura base)
========================================================= */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Capa global alta */
}

/* Botón de cierre universal para todos los modales */
.modal .cerrar {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    z-index: 10050; /* Siempre por encima del contenido del modal */
    user-select: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal .cerrar:hover {
    color: #ff4d4d;
    transform: scale(1.15);
}

.modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    position: relative;
    z-index: 10000;
}

.modal-botones {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.btn-inscripcion,
#btnTransmision {
    background: #000;
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 30px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: 0.3s;
}

.btn-inscripcion:hover,
#btnTransmision:hover {
    background: #e10600;
    transform: scale(1.05);
}

.btn-doc,
#btnAgenda {
    background: #000;
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 30px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    transition: 0.3s;
}

.btn-doc:hover,
#btnAgenda:hover {
    background: #b00000;
    transform: scale(1.05);
}

/* =========================================================
   MODAL PDF PRO
========================================================= */
.modal-pdf-pro {
    width: 95%;
    max-width: 1200px;
    height: 92%;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}

.pdf-header {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pdf-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-icon {
    font-size: 28px;
}

.pdf-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.pdf-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.7;
}

.pdf-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contador {
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.btn-descargar {
    background: #e10600;
    border: none;
    color: #fff;
    padding: 8px 18px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-descargar:hover {
    background: #b00000;
    transform: scale(1.05);
}

#pdfVisor {
    flex: 1;
    width: 100%;
    border: none;
    background: #f4f6f9;
}

.visor-pdf {
    display: none;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.visor-pdf iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* =========================================================
   MODAL GALERÍA / SLIDER
========================================================= */
.modal-slider-box {
    position: relative;
    width: 90%;
    max-width: 900px;
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10000;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 70vh;
    max-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
}

.slider-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease-in-out;
}

.slider-container .prev,
.slider-container .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    font-size: 24px;
    padding: 12px 18px;
    cursor: pointer;
    border-radius: 50%;
    user-select: none;
    z-index: 10010;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.slider-container .prev:hover,
.slider-container .next:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.slider-container .prev {
    left: 15px;
}

.slider-container .next {
    right: 15px;
}

.counter-slider {
    margin-top: 15px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .modal-slider-box {
        width: 95%;
        padding: 10px;
    }

    .slider-container {
        height: 50vh;
    }

    .slider-container .prev,
    .slider-container .next {
        font-size: 18px;
        padding: 8px 12px;
    }
}


/* ===== POPUP PUBLICITARIO ===== */

/* FONDO */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,128,128,0.7);
  display: flex; justify-content: center; align-items: center;
  backdrop-filter: blur(5px);
  z-index: 9999;
}

/* CONTENIDO */
.popup-contenido {
  position: relative;
  width: 380px;
  max-width: 90%;
  background: linear-gradient(145deg,#fff,#f0f0f0);
  border-radius: 35px;
  padding: 20px 15px 15px 15px; /* más espacio arriba */
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* BOTÓN CERRAR */
.cerrar-popup {
  position: absolute;
  top: 10px;    /* dentro del popup */
  right: 10px;  /* dentro del popup */
  width: 36px; height: 36px;
  line-height: 36px;
  font-size: 22px;
  background: #ff2d2d;
  color: white;
  border-radius: 50%;
  text-align: center;
  cursor: pointer;
  z-index: 10; /* siempre encima */
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* FECHA */
.popup-fecha {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

/* IMAGEN */
.popup-img-container img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* BOTÓN */
.btn-info {
  width: 100%;
  padding: 10px;
  background: #ff2d2d;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-info:hover {
  background: #e60000;
  transform: scale(1.05);
}

/* =========================================================
   SECCIÓN ALIADOS (INFINITE SCROLL) - RIGES
========================================================= */

:root {
  --riges-azul: #003366;       /* Azul marino institucional */
  --riges-rojo: #d9534f;       /* Rojo académico / acento */
  --riges-negro: #111111;      /* Texto principal */
  --riges-blanco: #ffffff;     /* Blanco puro */
  --riges-gris-fondo: #f8fafc; /* Fondo suave para contenedor */
  --riges-borde: rgba(0, 51, 102, 0.12);
}

#aliado.aliados-premium {
  padding: 85px 0;
  background-color: var(--riges-blanco);
  overflow: hidden;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
}

/* --- Encabezado --- */
#aliado .section-title {
  text-align: center;
  margin-bottom: 50px;
}

#aliado .section-title h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--riges-azul);
  margin-bottom: 10px;
  line-height: 1.2;
}

#aliado .section-title .subtitle {
  font-size: 15.5px;
  color: var(--riges-negro);
  opacity: 0.75;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --- Contenedor del Slider --- */
.slider-horizontal.premium {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 15px 0;
  /* Máscara de desvanecimiento suave a los lados */
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

/* Pista de Animación (Duración ajustada para 41 ítems) */
.slider-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scrollAliados 80s linear infinite;
  will-change: transform;
}

/* Pausar animación al pasar el ratón */
.slider-horizontal.premium:hover .slider-track {
  animation-play-state: paused;
}

/* Tarjeta / Item de cada Aliado */
.aliado-item {
  flex: 0 0 auto;
  width: 170px;
  height: 95px;
  margin: 0 14px;
  padding: 14px;
  background: var(--riges-blanco);
  border-radius: 16px;
  border: 1px solid var(--riges-borde);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.3s cubic-bezier(0.165, 0.84, 0.44, 1),
              border-color 0.3s ease;
}

/* Imagen dentro de la tarjeta */
.aliado-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.65;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Hover individual en cada logo */
.aliado-item:hover {
  border-color: var(--riges-rojo);
  box-shadow: 0 10px 25px rgba(0, 51, 102, 0.12);
  transform: translateY(-4px);
}

.aliado-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Animación Keyframes */
@keyframes scrollAliados {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- Adaptación Responsive --- */
@media (max-width: 991px) {
  #aliado.aliados-premium {
    padding: 65px 0;
  }

  #aliado .section-title h2 {
    font-size: 30px;
  }
  
  .slider-track {
    animation-duration: 60s;
  }
}

@media (max-width: 768px) {
  .aliado-item {
    width: 135px;
    height: 80px;
    margin: 0 10px;
    padding: 10px;
  }

  .slider-track {
    animation-duration: 45s;
  }
}

/* =========================================================
   SECCIÓN EVENTO DESTACADO - PALETA ROJA
========================================================= */
.evento-seccion {
  width: 100%;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.evento-destacado {
  position: relative;
  width: 100%;
  max-width: 1000px;
  min-height: 330px;
  padding: 45px;
  overflow: hidden;

  /* Disposición en 2 columnas */
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;

  border-radius: 25px;

  /* Fondo Rojo Gradiente */
  background: linear-gradient(
    135deg,
    rgba(175, 0, 0, 0.97),
    rgba(225, 6, 0, 0.94)
  );

  box-shadow: 0 15px 35px rgba(175, 0, 0, 0.25);
  color: #ffffff;

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

/* Efecto hover */
.evento-destacado:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 45px rgba(175, 0, 0, 0.35);
}

/* Círculos decorativos traslúcidos */
.evento-destacado::before,
.evento-destacado::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.evento-destacado::before {
  width: 300px;
  height: 300px;
  right: -100px;
  top: -120px;
  background: rgba(255, 255, 255, 0.08);
}

.evento-destacado::after {
  width: 220px;
  height: 220px;
  left: -100px;
  bottom: -120px;
  background: rgba(255, 255, 255, 0.06);
}

/* Badge traslúcido */
.evento-badge {
  position: absolute;
  top: 20px;
  right: 25px;
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  backdrop-filter: blur(8px);
  z-index: 3;
}

/* Icono circular */
.evento-icono {
  width: 75px;
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 38px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Contenido */
.evento-contenido {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 850px;
}

.evento-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0.85;
}

.evento-destacado h3 {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.15;
  font-weight: 800;
}

.evento-tema {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.5;
}

.evento-tema strong {
  color: #ffffff;
}

.evento-tema span {
  opacity: 0.6;
}

.evento-descripcion {
  max-width: 750px;
  margin-bottom: 25px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

/* Botón blanco con texto Rojo (#af0000) */
.btn-ver {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 23px;
  border: none;
  border-radius: 30px;
  background: #ffffff;
  color: #af0000;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    gap 0.3s ease;
}

.btn-ver span {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.btn-ver:hover {
  background: #f1f1f1;
  transform: translateY(-2px);
}

.btn-ver:hover span {
  transform: translateX(5px);
}

/* Contenedor del video integrado */
.evento-video {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: #000000;
}

.evento-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
  .evento-seccion {
    padding: 25px 15px;
  }

  .evento-destacado {
    flex-direction: column;
    padding: 35px 25px;
    min-height: auto;
    border-radius: 20px;
  }

  .evento-badge {
    position: relative;
    top: auto;
    right: auto;
    display: inline-block;
    margin-bottom: 20px;
  }

  .evento-icono {
    width: 65px;
    height: 65px;
    font-size: 32px;
  }

  .evento-destacado h3 {
    font-size: 26px;
  }

  .evento-tema {
    display: block;
  }

  .evento-tema span {
    margin: 0 5px;
  }

  .evento-descripcion {
    font-size: 15px;
  }

  .btn-ver {
    width: 100%;
    justify-content: center;
  }

  .evento-video {
    margin-top: 10px;
  }
}

html {
  scroll-behavior: smooth;
}

a.btn-ver {
  text-decoration: none;
}

.encuentro-video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background-color: #000000;
  margin-bottom: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.encuentro-video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* =========================================================
   1. WIDGET DE CHAT IA - POSICIÓN: MEDIO IZQUIERDA (CENTER-LEFT)
========================================================= */
.ai-chat-widget {
  position: fixed;
  top: 50%;                     /* Centrado vertical en la mitad de la pantalla */
  left: 20px;                   /* Distancia desde el borde izquierdo */
  right: auto;
  transform: translateY(-50%);   /* Alineación vertical perfecta */
  z-index: 9999;
  font-family: system-ui, -apple-system, sans-serif;
}

/* Botón Flotante Principal */
.ai-chat-btn {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d1b2a, #e63946);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ai-chat-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 28px rgba(230, 57, 70, 0.5);
}

.chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #25d366;
  color: #000000;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 10px;
  border: 2px solid #ffffff;
}

/* Ventana Principal del Chat */
.ai-chat-window {
  display: none;
  position: absolute;
  top: 50%;                     /* Alineado con la mitad del botón */
  left: 75px;                   /* Despliega a la derecha del botón */
  right: auto;
  transform: translateY(-50%);  /* Centrado vertical */
  width: 360px;
  height: 480px;
  background: rgba(13, 27, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  flex-direction: column;
  overflow: hidden;
  animation: chatFadeIn 0.3s ease forwards;
}

.ai-chat-window.open {
  display: flex;
}

/* Encabezado del Chat */
.chat-header {
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #25d366;
  border-radius: 50%;
  border: 2px solid #0d1b2a;
}

.chat-info h4 {
  margin: 0;
  font-size: 15px;
  color: #ffffff;
  font-weight: 700;
}

.chat-info p {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}

/* Área de Mensajes */
.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  display: flex;
  max-width: 82%;
}

.user-message {
  align-self: flex-end;
}

.bot-message {
  align-self: flex-start;
}

.message-content {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
}

.user-message .message-content {
  background: #e63946;
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.bot-message .message-content {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Indicador de escritura (Puntos) */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 8px 16px;
  align-self: flex-start;
}

.typing-indicator.hidden {
  display: none;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: #cbd5e1;
  border-radius: 50%;
  animation: typing 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Formulario de Entrada de Texto */
.chat-input-area {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 8px;
}

.chat-input-area input {
  flex: 1;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 8px 16px;
  color: #ffffff;
  font-size: 13px;
  outline: none;
}

.chat-input-area input:focus {
  border-color: #e63946;
}

.chat-input-area button {
  background: #e63946;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.chat-input-area button:hover {
  background: #d62828;
}

@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(-45%); }
  to { opacity: 1; transform: translateY(-50%); }
}


/* =========================================================
   2. PASARELA DE NOTICIAS DE WHATSAPP (GLASSMORPHISM)
========================================================= */
.pasarela-card-glass {
  position: relative;
  margin-top: 18px;
  background: rgba(18, 30, 49, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pasarela-card-glass:hover {
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.15);
}

.pasarela-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Punto Parpadeante Verde LIVE */
.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #25d366;
  border-radius: 50%;
  animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.icon-ws {
  color: #25d366;
  font-size: 1rem;
}

.status-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #e2e8f0;
}

.btn-join-ws {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(37, 211, 102, 0.15);
  color: #25d366 !important;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(37, 211, 102, 0.3);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-join-ws:hover {
  background: #25d366;
  color: #0d1b2a !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}

/* Viewport del Ticker */
.ticker-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 28px;
  display: flex;
  align-items: center;
}

.fade-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 25px;
  z-index: 3;
  pointer-events: none;
}

.fade-overlay.left {
  left: 0;
  background: linear-gradient(to right, rgba(18, 30, 49, 0.9), transparent);
}

.fade-overlay.right {
  right: 0;
  background: linear-gradient(to left, rgba(18, 30, 49, 0.9), transparent);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: continuous-scroll 22s linear infinite;
}

.ticker-track:hover {
  animation-play-state: paused;
}

.news-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 45px;
  text-decoration: none;
  white-space: nowrap;
}

.tag-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 6px;
}

.tag-badge.red { background: rgba(230, 57, 70, 0.2); color: #ff4d5e; border: 1px solid rgba(230, 57, 70, 0.3); }
.tag-badge.green { background: rgba(37, 211, 102, 0.2); color: #25d366; border: 1px solid rgba(37, 211, 102, 0.3); }
.tag-badge.blue { background: rgba(56, 189, 248, 0.2); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }

.news-text {
  font-size: 13px;
  color: #cbd5e1;
}

.news-text strong {
  color: #ffffff;
}

.news-item:hover .news-text {
  color: #25d366;
}

@keyframes continuous-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}


/* =========================================================
   3. REGLAS RESPONSIVE (MÓVILES Y TABLETAS)
========================================================= */
@media (max-width: 768px) {
  /* Reubicación del widget al borde inferior izquierdo en móviles */
  .ai-chat-widget {
    top: auto;
    bottom: 15px;
    left: 15px;
    right: auto;
    transform: none;
  }

  .ai-chat-btn {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  /* La ventana ocupa un formato modal inferior adaptable */
  .ai-chat-window {
    position: fixed;
    top: auto;
    bottom: 75px;
    left: 15px;
    right: 15px;
    width: calc(100vw - 30px);
    max-width: 100%;
    height: 70vh;
    max-height: 500px;
    transform: none;
    border-radius: 16px;
    animation: chatFadeInMobile 0.3s ease forwards;
  }

  /* Evita el zoom automático en Safari iOS */
  .chat-input-area input {
    font-size: 16px;
  }

  @keyframes chatFadeInMobile {
    from { 
      opacity: 0; 
      transform: translateY(15px); 
    }
    to { 
      opacity: 1; 
      transform: translateY(0); 
    }
  }
}