/**
/*--------------------------------------------------------------
# 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; /* Ajusta si lo quieres más abajo */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.15);
}

.aboutSwiper img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}

/* 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
--------------------------------------------------------------*/

@media (min-width:1200px){

.navmenu{
padding:0;
}

.navmenu ul{
margin:0;
padding:0;
display:flex;
list-style:none;
align-items:center;
}

.navmenu li{
position:relative;
}

.navmenu a{
color:var(--nav-color);
padding:18px 15px;
font-size:16px;
font-family:var(--nav-font);
font-weight:400;
display:flex;
align-items:center;
white-space:nowrap;
transition:0.3s;
}

.navmenu li:last-child a{
padding-right:0;
}

.navmenu li:hover>a,
.navmenu .active{
color:var(--nav-hover-color);
}

}

/*--------------------------------------------------------------
# SUBMENU DESPLEGABLE
--------------------------------------------------------------*/

/* SUBMENU */

.navmenu li {
  position: relative;
}

/* contenedor submenu */
.navmenu .submenu{
  position:absolute;
  top:100%;
  left:0;
  background:#fff;
  min-width:200px;
  list-style:none;
  padding:10px 0;

  opacity:0;
  visibility:hidden;
  transform:translateY(10px);
  transition:0.3s;

  box-shadow:0 8px 25px rgba(0,0,0,0.15);
  border-radius:6px;
  z-index:999;

  display:block; /* IMPORTANTE */
}

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

/* items verticales */
.navmenu .submenu li{
  display:block;
  width:100%;
}

/* enlaces */
.navmenu .submenu li a{
  display:block;
  padding:10px 20px;
  font-size:15px;
  color:#333;
}

/* hover */
.navmenu .submenu li a:hover{
  background:#f2f2f2;
}

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

@media (max-width:1199px){

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

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

.navmenu ul{
  display:none;
  list-style:none;
  position:absolute;
  inset:60px 20px 20px 20px;
  padding:10px 0;
  margin:0;
  border-radius:6px;
  background-color:#ffffff;
  overflow-y:auto;
  z-index:9998;
  box-shadow:0px 0px 30px rgba(0,0,0,0.1);
}

.navmenu a{
  color:#333;
  padding:12px 20px;
  font-size:17px;
  font-weight:500;
  display:flex;
  align-items:center;
  justify-content:space-between;
  transition:0.3s;
}

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

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

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

/* submenu móvil */

.submenu{
  position:static;
  opacity:1;
  visibility:visible;
  transform:none;
  box-shadow:none;
  display:none;
  padding-left:20px;
}

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

}

/*--------------------------------------------------------------
# NODOS 
--------------------------------------------------------------*/

/* ===========================
   ACORDEÓN PREMIUM ESTABLE
=========================== */

.acordeon-item {
  background: #ffffff;
  border-radius: 14px;
  margin-bottom: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: 0.3s ease;
}

.acordeon-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 25px;
  cursor: pointer;
  background: linear-gradient(90deg,#f4f8ff,#ffffff);
  transition: 0.3s ease;
}

.acordeon-header:hover {
  background: linear-gradient(90deg,#e8f0ff,#ffffff);
}

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

.icono-nodo {
  width: 50px;
  height: auto;
}

.acordeon-header h4 {
  margin: 0;
  font-weight: 600;
  color: #000000;
}

.flecha {
  font-size: 18px;
  transition: transform 0.4s ease;
}

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

/* CONTENIDO SIN MAX-HEIGHT */
.acordeon-content {
  display: none;
  padding: 0 25px 25px 25px;
  animation: fadeSlide 0.4s ease;
}

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

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

/* TABLAS */
.acordeon-content table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.acordeon-content th {
  background: #fc0000;
  color: #fff;
  padding: 12px;
  text-align: center;
}

.acordeon-content td {
  border: 1px solid #eaeaea;
  padding: 10px;
  text-align: center;
}

.acordeon-content tr:nth-child(even) {
  background: #f7faff;
}

.acordeon-content tr:hover {
  background: #eef4ff;
  transition: 0.3s;
}

/* Botón de descarga final de nodos */
.descarga-nodos-final {
  margin-top: 40px;
  text-align: center;
}

.descarga-nodos-final .btn-descargar {
  background: #e10600;
  color: #fff;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  font-size: 16px;
}

.descarga-nodos-final .btn-descargar:hover {
  background: #b00000;
  color: #fff;
}

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

#fundamentos {
  padding: 80px 0; /* Antes era 100px, menos espacio arriba */
  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 30px; /* Antes era 60px, ahora más cerca de las columnas */
  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: 0 0 48%; /* dos columnas con espacio */
  display: flex;
}

/* Tarjetas de contenido */
#fundamentos .fundamento-card {
  background-color: #ffffff;
  padding: 36px;
  border-radius: 18px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  font-size: 16px;
  line-height: 1.9;
  color: #3f3f3f;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  width: 100%;
}

/* Hover suave */
#fundamentos .fundamento-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

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

@media (max-width: 576px) {
  #fundamentos .section-title h2 {
    font-size: 32px;
  }
  #fundamentos .section-title .subtitle {
    font-size: 16px;
    margin-bottom: 20px; /* más cercano al contenido */
  }
  #fundamentos .fundamento-card {
    padding: 24px;
  }
}

/*--------------------------------------------------------------
# Lineamientos
--------------------------------------------------------------*/

/* Sección */
.lineamientos p {
  padding: 100px 0;
  background-color: #f6f8fb;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Título */
.lineamientos .section-title h2 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #1f2933;
  margin-bottom: 14px;
}

/* Intro */
.lineamientos .section-intro {
  max-width: 780px;
  margin: 0 auto 65px;
  font-size: 17px;
  line-height: 1.75;
  color: #5a5a5a;
}

/* Tarjeta */
.lineamiento-card {
  background-color: #ffffff;
  padding: 42px;
  border-radius: 18px;
  border-left: 6px solid #f12207;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover sutil */
.lineamiento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

/* Título interno */
.lineamiento-card h4 {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
  margin-bottom: 20px;
  position: relative;
}

/* Línea decorativa */
.lineamiento-card h4::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background-color: #fd1100;
  margin-top: 8px;
  border-radius: 2px;
}

/* Texto */
.lineamiento-card p {
  font-size: 16px;
  line-height: 1.95;
  color: #3f3f3f;
  text-align: justify;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .lineamientos {
    padding: 70px 0;
  }

  .lineamiento-card {
    padding: 32px;
  }

  .lineamiento-card h4 {
    font-size: 20px;
  }
}


/* =========================
   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 {
  font-size: 16px;
  font-weight: 500;
  margin-top: 10px;
  color: #f9fafc;
}

/* 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;
  }
}

/*--------------------------------------------------------------
# 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;
  }
}

/*--------------------------------------------------------------
# Featured Services Section
--------------------------------------------------------------*/
.featured-services {
  padding: 40px 0;
}

.featured-services .service-item {
  position: relative;
  padding-top: 20px;
}

.featured-services .service-item .icon {
  background-color: color-mix(in srgb, var(--accent-color), transparent 80%);
  width: 72px;
  height: 72px;
  position: relative;
  margin-right: 15px;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: ease-in-out 0.3s;
}

.featured-services .service-item .icon i {
  color: var(--accent-color);
  font-size: 32px;
  z-index: 2;
  position: relative;
}

.featured-services .service-item .title {
  font-weight: 700;
  margin-bottom: 5px;
  font-size: 18px;
}

.featured-services .service-item .title a {
  color: var(--heading-color);
}

.featured-services .service-item .title a:hover {
  color: var(--accent-color);
}

.featured-services .service-item .description {
  font-size: 14px;
}

.featured-services .service-item:hover .icon {
  background-color: var(--accent-color);
}

.featured-services .service-item:hover .icon i {
  color: var(--contrast-color);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about {
  padding-bottom: 20px;
}

.about .content .who-we-are {
  text-transform: uppercase;
  margin-bottom: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.about .content h3 {
  font-size: 2rem;
  font-weight: 700;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  padding-bottom: 10px;
}

.about .content ul i {
  font-size: 1.25rem;
  margin-right: 4px;
  color: var(--accent-color);
}

.about .content p:last-child {
  margin-bottom: 0;
}

.about .content .read-more {
  background: var(--accent-color);
  color: var(--contrast-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  padding: 12px 24px;
  border-radius: 5px;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about .content .read-more i {
  font-size: 18px;
  margin-left: 5px;
  line-height: 0;
  transition: 0.3s;
}

.about .content .read-more:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  padding-right: 19px;
}

.about .content .read-more:hover i {
  margin-left: 10px;
}

.about .about-images img {
  border-radius: 10px;
}


/*--------------------------------------------------------------
# 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;
}
/* ===== SECCIÓN PUBLICACIONES ===== */

.section-premium {
  padding: 90px 20px;
  background: #f5f5f5;
  text-align: center;
}

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

.section-premium h2::after {
  content: "";
  width: 100px;
  height: 4px;
  background: #e10600; /* rojo premium */
  display: block;
  margin: 18px auto 0;
  border-radius: 4px;
}

/* Grid de tarjetas */
.pub-grid {
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Tarjeta Premium */
.pub-card.premium {
  background: linear-gradient(145deg, #ffffff, #f0f0f0);
  padding: 55px 40px;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  border-top: 6px solid #e10600;
  transition: 0.35s ease;
  position: relative;
}

.pub-card.premium:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 30px 70px rgba(0,0,0,0.2);
}

/* Icono de PDF */
.icono-pdf {
  font-size: 50px;
  margin-bottom: 20px;
}

/* Título tarjeta */
.pub-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #000;
}

/* Descripción */
.descripcion {
  font-size: 15px;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Botón principal visor */
.btn-visor {
  background: #000;
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  margin-bottom: 30px;
}

.btn-visor:hover {
  background: #e10600;
  box-shadow: 0 0 20px #e10600;
}

/* Visor PDF */
.visor-pdf {
  display: none;
  margin-top: 20px;
  background: #f4f6f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cabecera del visor */
.visor-header {
  background: #e10600;
  color: white;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-cerrar {
  background: #000;
  border: none;
  padding: 6px 12px;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.btn-cerrar:hover {
  background: #bb2d3b;
}

iframe {
  border: none;
  width: 100%;
  height: 600px;
}

/* Botones secundarios */
.accesos-extra {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-lms {
  background: #fff;
  border: 2px solid #000;
  color: #000;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-lms:hover {
  background: #000;
  color: #fff;
  box-shadow: 0 0 15px #000;
}

.btn-repo {
  background: #e10600;
  color: #fff;
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-repo:hover {
  background: #b00000;
  box-shadow: 0 0 15px #b00000;
}

/* Tipografía premium */
body, .section-premium {
  font-family: 'Poppins', sans-serif;
}

/* Adaptable a dispositivos */
@media (max-width: 768px) {
  .pub-card.premium {
    padding: 40px 25px;
  }

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

/* =========================
        CONTACTO 
========================= */

.contact-section {
  padding: 110px 0;
  background: linear-gradient(135deg,#f5f5f5,#f7f7f7);
  font-family: 'Poppins', sans-serif;
}

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

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

.section-header h2 {
  font-size: 36px;
  font-weight: 700;
  color: #fc0505;
  margin-bottom: 15px;
}

.section-header p {
  max-width: 700px;
  margin: auto;
  color: #555;
  font-size: 16px;
}

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

.info-card {
  flex: 1;
  min-width: 250px;
  background: #ffffff;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.3s;
}

.info-card:hover {
  transform: translateY(-8px);
}

.info-card i {
  font-size: 30px;
  color: #fa0505;
  margin-bottom: 15px;
}

.info-card h4 {
  font-weight: 600;
  margin-bottom: 10px;
}

/* Contenido principal */
.contact-content {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

/* Mapa */
.map-box {
  flex: 1;
  min-width: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.map-box iframe {
  width: 100%;
  height: 450px;
  border: 0;
}

/* Formulario */
.contact-form {
  flex: 1;
  min-width: 300px;
  background: #ffffff;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form select{
  width:100%;
  padding:14px;
  border-radius:10px;
  border:1px solid #ddd;
  margin-bottom:15px;
  font-size:15px;
  transition:0.3s;
  background:#fff;
}

.contact-form select:focus{
  border-color:#e10600;
  outline:none;
  box-shadow:0 0 8px rgba(225,6,0,0.2);
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1;
  min-width: 140px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #fd0404;
  outline: none;
  box-shadow: 0 0 0 2px rgba(139,0,0,0.1);
}

/* Botón */
.contact-form button {
  background: #fd0202;
  color: #ffffff;
  padding: 14px;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.contact-form button:hover {
  background: #0c0c0c;
  transform: scale(1.03);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
  }

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

  .form-row {
    flex-direction: column;
  }
}



/* ===== 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 Encuentros ===== */
.encuentros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

/* ===== Tarjetas ===== */
.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;
}

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

/* Imagen encuentro */
.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;
}

/* ===== Botón ===== */
.encuentro-card .btn-visor {
  background: #e10600;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

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

/* ===== Modal general ===== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* ===== Contenido modal ===== */
.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  max-width: 800px;
  width: 90%;
  position: relative;
}

/* Botón cerrar */
.modal .cerrar {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

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

.btn-inscripcion {
  background: #000;
  color: #fff;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-inscripcion:hover {
  background: #e10600;
}

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

.btn-doc: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);
}

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

/* INFO IZQUIERDA */
.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;
}

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

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

/* BOTÓN DESCARGA */
.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);
}

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

/* BOTÓN CERRAR */
.modal .cerrar{
  position:absolute;
  top:15px;
  right:25px;
  font-size:28px;
  color:#fff;
  cursor:pointer;
  z-index:10000;
}

/* ===== Visor PDF ===== */
.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 Imagen ===== */
.modal-galeria {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 95%;
  max-height: 95%;
}

/* Imagen grande siempre del mismo tamaño */
.modal-galeria img {
  width: auto;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 15px 60px rgba(0,0,0,0.45);
}
/* ===== 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 ===== */

/* ============================= */
/* SECCIÓN ALIADOS */
/* ============================= */
.aliados-premium {
  padding: 50px 0;
  background: #ffffff;
  overflow: hidden;
}

/* CONTENEDOR */
.slider-horizontal {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* ============================= */
/* TRACK (MOVIMIENTO) */
/* ============================= */
.slider-track {
  display: flex;
  width: max-content;
  animation: scrollInfinito 90s linear infinite; /* 🔥 VELOCIDAD */
}

/* ============================= */
/* ITEMS (LOGOS) */
/* ============================= */
.aliado-item {
  flex: 0 0 auto;
  width: 100px;          /* 🔥 tamaño para ver muchos */
  margin: 0 6px;         /* 🔥 separación mínima */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* IMÁGENES */
.aliado-item img {
  max-height: 50px;      /* 🔥 altura controlada */
  width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

/* EFECTO HOVER */
.aliado-item img:hover {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* ============================= */
/* ANIMACIÓN INFINITA */
/* ============================= */
@keyframes scrollInfinito {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================= */
/* PAUSA AL PASAR EL MOUSE */
/* ============================= */
.slider-horizontal:hover .slider-track {
  animation-play-state: paused;
}

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

/* TABLET */
@media (max-width: 1024px) {
  .aliado-item {
    width: 80px;
  }

  .aliado-item img {
    max-height: 45px;
  }

  .slider-track {
    animation: scrollInfinito 70s linear infinite;
  }
}

/* CELULAR */
@media (max-width: 768px) {
  .aliado-item {
    width: 70px;
    margin: 0 4px;
  }

  .aliado-item img {
    max-height: 40px;
  }

  .slider-track {
    animation: scrollInfinito 50s linear infinite;
  }
}

/* CELULAR PEQUEÑO */
@media (max-width: 480px) {
  .aliado-item {
    width: 60px;
  }

  .aliado-item img {
    max-height: 35px;
  }

  .slider-track {
    animation: scrollInfinito 40s linear infinite;
  }
}

/* ================================
   EVENTO DESTACADO
================================ */

.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;
  cursor: pointer;

  border-radius: 25px;

  background:
    linear-gradient(
      135deg,
      rgba(0, 92, 50, 0.97),
      rgba(0, 130, 80, 0.94)
    );

  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.18);

  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(0, 0, 0, 0.25);
}

/* Círculos decorativos */

.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 */

.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);
}

/* Icono */

.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;
  max-width: 850px;
}

/* Etiqueta */

.evento-label {
  display: block;

  margin-bottom: 8px;

  font-size: 14px;
  font-weight: 700;

  letter-spacing: 2px;

  opacity: 0.85;
}

/* Título */

.evento-destacado h3 {
  margin: 0 0 18px;

  font-size: clamp(24px, 4vw, 38px);

  line-height: 1.15;

  font-weight: 800;
}

/* Tema */

.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;
}

/* Descripción */

.evento-descripcion {
  max-width: 750px;

  margin-bottom: 25px;

  font-size: 16px;
  line-height: 1.6;

  color: rgba(255, 255, 255, 0.88);
}

/* Botón */

.btn-ver {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  padding: 13px 23px;

  border: none;
  border-radius: 30px;

  background: #ffffff;
  color: #006633;

  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);
}


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

@media (max-width: 768px) {

  .evento-seccion {
    padding: 25px 15px;
  }

  .evento-destacado {
    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;
  }
}