/* ============================================================================
 * ESTILOS DE LAS PAGINAS GENERADAS - REITOR
 * ----------------------------------------------------------------------------
 * GENERADO POR generar-seo.py. No editar a mano: se reescribe entero.
 *
 * Es css/styles.css con solo las reglas que pueden aplicarse en
 * /articulos/ y /calculadoras/. Esas paginas no tienen hero de portada,
 * ni testimonios, ni plataforma, ni modales de curso: cargar los 208 KB
 * enteros era mandar por la red, en cada visita, estilos que no pintan
 * nada.
 *
 * PARA CAMBIAR ALGO, EDITA css/styles.css Y REGENERA.
 * Si un JavaScript empieza a anadir una clase nueva de styles.css,
 * apuntala en CLASES_DE_JAVASCRIPT dentro de generar-seo.py o su regla
 * se quedara fuera.
 * ========================================================================== */

:root {
  --azul-oscuro: #0b1e3b;
  --verde-lima: #8dc63f;
  --verde-lima-profundo: #79b12f;
  --azul-intermedio: #1e3d6b;
  --blanco: #ffffff;
  --gris-claro: #f2f4f6;
  --gris-medio: #c6c9cd;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--blanco);
  color: var(--azul-oscuro);
  overflow-x: hidden;
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background-color: var(--azul-oscuro);
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

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

.logo-img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

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

.logo-text {
  color: var(--blanco);
  font-weight: 700;
  font-size: 1.5rem;
  margin-left: 10px;
  transition: color 0.3s ease;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
}

.nav-menu > li {
  margin-left: 1.5rem;
  position: relative;
}

.nav-menu a {
  color: var(--blanco);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
}

.nav-menu a:hover {
  color: var(--verde-lima);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--verde-lima);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}







.has-submenu > a::after {
  content: "\f078";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-left: 5px;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.nav-menu > li:hover .has-submenu > a::after {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--azul-intermedio);
  min-width: 220px;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-menu > li:hover .submenu,
.nav-menu > li.es-senalado .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ------------------------------------------------ Señalar un item del menú

   Lo pone js/senalar-menu.js cuando un botón de la página -"Ver
   calculadoras", por ejemplo- en vez de llevarte a otro sitio te enseña
   dónde está eso en la barra. Dura unos segundos y se va sola.

   El anillo va en un ::before y no en el borde del <li> para no mover ni un
   píxel del menú: cualquier cambio de caja empujaría los items de al lado. */

.nav-menu > li.es-senalado {
  position: relative;
}

.nav-menu > li.es-senalado::before {
  content: "";
  position: absolute;
  inset: -8px -12px;
  border: 2px solid var(--verde-lima);
  border-radius: 10px;
  pointer-events: none;
  animation: senalarLatido 1s ease-out 3;
}

.nav-menu > li.es-senalado > a {
  color: var(--verde-lima) !important;
}

.nav-menu > li.es-senalado > a::after {
  transform: rotate(180deg);
}

@keyframes senalarLatido {
  0% {
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(141, 198, 63, 0.5);
  }
  25% {
    opacity: 1;
    box-shadow: 0 0 0 6px rgba(141, 198, 63, 0);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(141, 198, 63, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-menu > li.es-senalado::before {
    animation: none;
    opacity: 1;
  }
}

.submenu li {
  list-style: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu a {
  padding: 12px 20px;
  display: block;
  color: var(--blanco);
  transition: all 0.3s ease;
}

.submenu a:hover {
  background-color: var(--verde-lima);
  color: var(--azul-oscuro);
}

.submenu a::after {
  display: none;
}

/* ===== BUTTONS ===== */
.btn {
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--verde-lima);
  color: var(--blanco);
}

.btn-primary:hover {
  background-color: var(--blanco);
  color: var(--verde-lima);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}





.btn-outline {
  background: transparent;
  border: 2px solid var(--verde-lima);
  color: var(--verde-lima);
  padding: 8px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--verde-lima);
  color: var(--azul-oscuro);
}

.submit-btn {
  width: 100%;
  padding: 0.7rem;
  background: linear-gradient(
    135deg,
    var(--verde-lima) 0%,
    var(--verde-lima-profundo) 100%
  );
  color: var(--azul-oscuro);
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0.8rem;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(154, 205, 50, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: buttonSpin 0.8s linear infinite;
}

.submit-btn.loading {
  pointer-events: none;
  opacity: 0.8;
}

.submit-btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid transparent;
  border-top: 2px solid var(--azul-oscuro);
  border-radius: 50%;
  animation: buttonSpin 1s linear infinite;
}

/* ===== HERO SECTION ===== */




























































/* ===== SECTION STYLES ===== */






.services,
.faq,
.courses,
.diploma {
  padding: 6rem 2rem;
  position: relative;
}

/* ==================================================================
   SERVICIOS REITOR - layout bento
   Tarjeta destacada oscura + rejilla de servicios, con filtros por
   categoria. Las clases .service-card y .rs-card se conservan porque
   js/script.js las usa para el resaltado al llegar desde el submenu.
   ================================================================== */



/* Halos verdes muy tenues en las esquinas */


/* ---------------------------------------------------- Encabezado */



/* Kicker con filetes a los lados */








/* ------------------------------------------------------- Filtros */











/* -------------------------------------------------- Rejilla bento */



/* La tarjeta destacada ocupa la columna izquierda y las dos filas */


/* Al filtrar, las tarjetas ocultas salen del flujo */
.rs-card[hidden] {
  display: none !important;
}

/* Cuando la destacada se oculta, las demas reparten el ancho */


/* Con un filtro activo el bento se deshace: las tarjetas fluyen solas
   para que no queden huecos ni columnas vacias */


/* ------------------------------------------- Tarjeta destacada */





/* Ilustracion de fondo, a la derecha */










/* Listado de la tarjeta destacada */








/* Acciones de la destacada */






/* Boton circular con flecha */




/* -------------------------------------------- Tarjetas normales */





/* Cabecera horizontal: icono a la izquierda, texto a la derecha */




/* Tableta del icono */




/* Iconos SVG propios de cada servicio */










/* Pie de la tarjeta: separador + flecha a la derecha */










/* ------------------------------------------------- Pie de seccion */

















/* -------------------- Resaltado al llegar desde el submenu */



@keyframes rsFlash {
  0%,
  100% {
    box-shadow:
      0 0 0 4px rgba(141, 198, 63, 0.2),
      0 18px 38px rgba(11, 30, 59, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 11px rgba(141, 198, 63, 0.07),
      0 18px 38px rgba(11, 30, 59, 0.12);
  }
}

/* ------------------------------------------------------ Responsive */



@media (max-width: 720px) {
  /* En movil la ilustracion estorba al texto */
}

/* ---------------------------------- Respeta reduccion de movimiento */


/* ===== COMMON PROBLEMS SECTION ===== */


























/* ===== EFECTOS SÚTILES PARA LA IMAGEN DGII ===== */






/* Efecto sutil de brillo al hacer hover */


/* ===== FAQ SECTION ===== */
.faq {
  background-color: var(--blanco);
}





























/* ===== ENHANCED COURSES SECTION - TAMAÑO COMPACTO ===== */


























@keyframes floatCardEnhanced {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  50% {
    transform: translateY(-8px) rotate(0.3deg); /* Reducido */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2); /* Reducido */
  }
}



























/* Responsive Design Ajustado */






/* Ajustes para pantallas grandes - Más compacto */


/* ===== PLATFORM SECTION ===== */


















/* ===== PLATFORM NOTIFY POPOVER ===== */


















/* Placeholder con contraste moderado */








/* Ajustes de color para el botón secundario dentro del popover (fondo blanco) */




.notify-feedback {
  margin-top: 8px;
  font-size: 0.9rem;
}



/* Variante oscura del popover: se integra con la sección plataforma */
















/* Sombra/halo elíptico bajo la imagen: suave y profesional */


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

@keyframes shadowBreathe {
  0%,
  100% {
    transform: translateX(-50%) scaleX(1);
    opacity: 0.82;
  }
  50% {
    transform: translateX(-50%) scaleX(1.06);
    opacity: 0.92;
  }
}

/* Respeto a usuarios con reducción de movimiento */


/* ==================================================================
   DIPLOMA DE CERTIFICACION
   Panel oscuro con el diploma a la izquierda y los beneficios
   a la derecha. Los iconos son SVG propios de la marca.
   ================================================================== */

.diploma {
  position: relative;
  padding: 5rem 2rem 5.5rem;
  background: #0a1c33;
  overflow: hidden;
}

/* Trama diagonal muy tenue de fondo */
.diploma::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
      circle at 12% 8%,
      rgba(141, 198, 63, 0.07) 0%,
      transparent 38%
    ),
    radial-gradient(circle at 88% 92%, rgba(30, 61, 107, 0.5) 0%, transparent 45%);
}

/* Panel interior */


/* Hilera de puntos, esquina superior derecha */









/* ------------------------------------------------- Imagen del diploma */







/* ------------------------------------------------------- Contenido */









/* --------------------------------------------------- Beneficios */





/* Circulo verde de verificacion */
















/* ------------------------------------------------------- Acciones */

















/* ------------------------------------------------- Franja inferior */







/* Foco visible por teclado */
.diploma a:focus-visible {
  outline: 3px solid var(--verde-lima);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ------------------------------------------------------ Responsive */



@media (max-width: 720px) {
  .diploma {
    padding: 3.5rem 1rem 4rem;
  }
}

/* ---------------------------------- Respeta reduccion de movimiento */



/* ===== CARDS ECOSYSTEM ===== */
















































































/* ===== NEWS & UPDATES ===== */




















































/* La tarjeta de noticia abre una ventana emergente en la misma pagina, no
   navega a ningun sitio: por eso el disparador es <button> y no <a>. Estas
   reglas le quitan la apariencia por defecto del navegador para que herede
   exactamente el aspecto que tenia el enlace. */

























/* Contenedor interno exclusivo del CTA de noticias (aislado) */








.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}



.newsletter-form input {
  flex: auto;
  padding: 14px 18px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  min-width: 0; /* Permite encoger dentro del flex */
  height: 48px;
  box-sizing: border-box;
}

.newsletter-form input:focus {
  outline: none;
  background: var(--blanco);
  box-shadow: 0 4px 20px rgba(154, 205, 50, 0.3);
}

.newsletter-form .btn {
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(154, 205, 50, 0.4);
  white-space: nowrap;
  height: 48px; /* Igual altura que el input */
  align-self: stretch;
}



/* Responsivo: apilar input y botón para evitar desbordes */
@media (max-width: 768px) {
  .newsletter-form input,
  .newsletter-form .btn {
    width: 100%;
    height: 46px;
  }
}





/* ===== YOUTUBE SECTION ===== */


















































/* ===== TRUST OFFICE SECTION ===== */































































































/* ===== YOUTUBE HEADER CONTAINER ===== */














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

/* Responsive adjustments */






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

/* Responsive adjustments for logo */






































































.notification-bell {
  display: inline-block;
  margin-left: 8px;
  color: #ffd700;
  animation: ring 2s infinite;
}

/* ==================================================================
   EVENTOS Y SEMINARIOS - agenda Reitor
   Cabecera con navegador de meses, evento destacado y agenda proxima
   con tarjeta de suscripcion.
   ================================================================== */



/* Trama de circulos y diagonales del diseno */




/* ---------------------------------------------------- Cabecera */













/* Navegador de meses y acceso al calendario */




















/* ------------------------------------------- Evento destacado */











/* Cuerpo del evento destacado */












/* Datos practicos y reserva */










/* Columna de reserva */
























/* ------------------------------------------------ Agenda proxima */











/* Linea de tiempo con puntos sobre las tarjetas */














































/* ------------------------------------------ Tarjeta de suscripcion */



























/* Foco visible por teclado */


/* --------------------- Resaltado al llegar desde la campana */

.notification-target-highlight {
  animation: notificationTargetPulse 2s ease;
}

@keyframes notificationTargetPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(141, 198, 63, 0.45);
    transform: scale(1);
  }
  40% {
    box-shadow: 0 0 0 12px rgba(141, 198, 63, 0);
    transform: scale(1.01);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(141, 198, 63, 0);
    transform: scale(1);
  }
}

/* ------------------------------------------------------ Responsive */







/* ---------------------------------- Respeta reduccion de movimiento */

@media (prefers-reduced-motion: reduce) {
  .notification-target-highlight {
    animation: none;
  }
}

/* Texto solo para lectores de pantalla */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ===== Fallback AOS para sección TEAM (solo scope team) ===== */






















/* ===== REITOR CHATBOT ===== */
.reitor-chatbot {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 1200;
  width: 72px;
  height: 72px;
}

.reitor-chatbot-bubble {
  position: relative;
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f2c52 0%, #1a4677 100%);
  box-shadow:
    0 18px 34px rgba(11, 30, 59, 0.18),
    0 0 0 4px rgba(26, 70, 119, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.reitor-chatbot-bubble:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 22px 40px rgba(11, 30, 59, 0.22),
    0 0 0 4px rgba(26, 70, 119, 0.28);
}



.reitor-chatbot-teaser {
  position: absolute;
  right: 78px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #102c52 0%, #1a4677 100%);
  color: var(--blanco);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.79rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(11, 30, 59, 0.18);
}

.reitor-chatbot-teaser::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #1a4677;
  transform: translateY(-50%) rotate(45deg);
}

.reitor-chatbot.active .reitor-chatbot-teaser {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(12px);
}

.reitor-chatbot-panel {
  position: absolute;
  right: calc(100% + 12px);
  bottom: 0;
  width: min(360px, calc(100vw - 120px));
  height: min(520px, calc(100vh - 132px));
  min-height: 430px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9fd 100%);
  border: 1px solid rgba(15, 54, 99, 0.1);
  border-radius: 24px;
  box-shadow: 0 28px 62px rgba(11, 30, 59, 0.2);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateX(18px) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease,
    transform 0.28s ease;
  pointer-events: none;
}

.reitor-chatbot.active .reitor-chatbot-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.reitor-guided-focus {
  animation: reitorGuidedFocus 2.2s ease;
}

@keyframes reitorGuidedFocus {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 70, 119, 0);
  }
  20% {
    box-shadow: 0 0 0 6px rgba(26, 70, 119, 0.16);
  }
  65% {
    box-shadow: 0 0 0 14px rgba(26, 70, 119, 0.08);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(26, 70, 119, 0);
  }
}

.reitor-chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background:
    radial-gradient(
      circle at top right,
      rgba(154, 205, 50, 0.18),
      transparent 38%
    ),
    linear-gradient(135deg, #0f2c52 0%, #173f70 100%);
  color: var(--blanco);
}

.reitor-chatbot-agent {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.reitor-chatbot-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}

.reitor-chatbot-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  padding: 5px;
  object-fit: contain;
}

.reitor-chatbot-status-dot {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #5fd37c;
  border: 2px solid #173f70;
}

.reitor-chatbot-agent-meta {
  min-width: 0;
}

.reitor-chatbot-agent-meta strong {
  display: block;
  font-size: 0.96rem;
  text-transform: lowercase;
}

.reitor-chatbot-agent-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 0.77rem;
  color: rgba(255, 255, 255, 0.82);
}

.reitor-chatbot-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reitor-chatbot-control {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--blanco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.24s ease,
    transform 0.24s ease;
}

.reitor-chatbot-control:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.reitor-chatbot-body {
  padding: 14px;
  min-height: 0;
}

.reitor-chatbot-messages {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 6px;
}

.reitor-chatbot-message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  box-shadow: 0 10px 24px rgba(11, 30, 59, 0.07);
}

.reitor-chatbot-message.bot {
  align-self: flex-start;
  background: #ecf3fb;
  color: #16314f;
  border-top-left-radius: 6px;
}

.reitor-chatbot-message.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #dff0b5 0%, #cce88e 100%);
  color: #18314b;
  border-top-right-radius: 6px;
  font-weight: 600;
}

.reitor-chatbot-message.typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
}

.reitor-chatbot-message p {
  margin: 0;
}

.reitor-chatbot-message p + p {
  margin-top: 8px;
}

.reitor-chatbot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(23, 63, 112, 0.56);
  animation: reitorChatTyping 1.1s infinite ease-in-out;
}

.reitor-chatbot-dot:nth-child(2) {
  animation-delay: 0.15s;
}

.reitor-chatbot-dot:nth-child(3) {
  animation-delay: 0.3s;
}

.reitor-chatbot-quick-questions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.reitor-chatbot-chip {
  border: 1px solid rgba(15, 54, 99, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: #17314e;
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 0.79rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(11, 30, 59, 0.04);
  transition:
    border-color 0.24s ease,
    transform 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease,
    opacity 0.24s ease;
}

.reitor-chatbot-chip:hover:not(:disabled) {
  border-color: var(--verde-lima);
  background: rgba(154, 205, 50, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(11, 30, 59, 0.08);
}

.reitor-chatbot-chip:disabled {
  opacity: 0.55;
  cursor: default;
}

.reitor-chatbot-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(15, 54, 99, 0.08);
  background: rgba(255, 255, 255, 0.82);
  color: rgba(15, 44, 82, 0.72);
  font-size: 0.73rem;
  font-weight: 600;
}

@keyframes reitorChatTyping {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* ===== WHATSAPP FLOATING BUTTON ===== */




















































@media (max-width: 768px) {
  .reitor-chatbot {
    right: 18px;
    bottom: 84px;
    width: 66px;
    height: 66px;
  }

  .reitor-chatbot-bubble {
    width: 66px;
    height: 66px;
  }

  

  .reitor-chatbot-teaser {
    right: 72px;
    max-width: 170px;
    padding: 8px 11px;
    font-size: 0.73rem;
  }

  .reitor-chatbot-panel {
    width: min(320px, calc(100vw - 108px));
    height: min(500px, calc(100vh - 120px));
    min-height: 410px;
  }
}

@media (max-width: 480px) {
  .reitor-chatbot {
    right: 14px;
    bottom: 80px;
    width: 62px;
    height: 62px;
  }

  .reitor-chatbot-bubble {
    width: 62px;
    height: 62px;
  }

  

  .reitor-chatbot-teaser {
    display: none;
  }

  .reitor-chatbot-panel {
    width: min(280px, calc(100vw - 96px));
    height: min(470px, calc(100vh - 108px));
    min-height: 390px;
    border-radius: 20px;
  }

  .reitor-chatbot-header {
    padding: 14px 14px 12px;
  }

  .reitor-chatbot-body {
    padding: 12px;
  }

  .reitor-chatbot-message {
    max-width: 92%;
    font-size: 0.82rem;
  }

  .reitor-chatbot-chip {
    font-size: 0.76rem;
  }
}

/* ===== SPECIAL ELEMENTS ===== */
.nav-new-badge {
  background: linear-gradient(
    135deg,
    var(--verde-lima) 0%,
    var(--verde-lima-profundo) 100%
  );
  color: var(--azul-oscuro);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse-green 2s infinite;
  display: inline-block;
  line-height: 1;
  margin-left: 8px;
}

/* ===== DASHBOARD STYLES ===== */


.dashboard-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(
    135deg,
    var(--azul-oscuro) 0%,
    var(--azul-intermedio) 100%
  );
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--verde-lima);
}



















































.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  margin-bottom: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--verde-lima);
  border-radius: 3px;
  transition: width 0.3s ease;
}



















/* Mejorar legibilidad del botón Detalles (dashboard) */








































/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes floatService {
  0%,
  100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(-4px);
  }
  75% {
    transform: translateY(-6px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(154, 205, 50, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(154, 205, 50, 0.6);
  }
  100% {
    box-shadow: 0 4px 15px rgba(154, 205, 50, 0.3);
  }
}

@keyframes buttonSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes borderProgressive {
  0% {
    clip-path: polygon(0 0, 0 0, 0 100%, 0 100%);
  }
  25% {
    clip-path: polygon(0 0, 25% 0, 25% 100%, 0 100%);
  }
  50% {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  }
  75% {
    clip-path: polygon(0 0, 75% 0, 75% 100%, 0 100%);
  }
  100% {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

@keyframes borderGlow {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

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

@keyframes spinHint {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulseIndicator {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 4px 25px rgba(37, 211, 102, 0.8);
  }
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse-red {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
  }
}

/* Variante verde lima para badges/botones de YouTube */
@keyframes pulse-lime {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(154, 205, 50, 0.45);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(154, 205, 50, 0);
  }
}

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

@keyframes pulse-dot {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes glow {
  from {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
  }
  to {
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.3);
  }
}

@keyframes pulse-timer {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes featured-glow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
  }
}

@keyframes ring {
  0%,
  100% {
    transform: rotate(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: rotate(-10deg);
  }
  20%,
  40%,
  60%,
  80% {
    transform: rotate(10deg);
  }
}

@keyframes subtle-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes pulse-green {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(154, 205, 50, 0.4);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(154, 205, 50, 0);
  }
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--azul-oscuro);
  color: var(--gris-claro);
  padding: 3rem 2rem 1.4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.2rem;
}

.footer-col h3 {
  color: var(--blanco);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 50px;
  height: 2px;
  background-color: var(--verde-lima);
}

.footer-col p {
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--gris-claro);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--verde-lima);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--azul-intermedio);
  border-radius: 50%;
  color: var(--blanco);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--verde-lima);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  margin-top: 2.1rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--azul-intermedio);
  color: var(--gris-medio);
  font-size: 0.84rem;
}

.footer-author-card {
  width: fit-content;
  max-width: 100%;
  margin: 1.35rem 0 0 auto;
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  position: relative;
  overflow: visible;
  z-index: 3;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

.footer-author-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.7rem;
  cursor: default;
}

.footer-author-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(154, 205, 50, 0.05), transparent 26%);
  pointer-events: none;
}

.footer-author-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(154, 205, 50, 0.15),
    rgba(154, 205, 50, 0.65),
    rgba(154, 205, 50, 0.15)
  );
  pointer-events: none;
}

.footer-author-content,
.footer-author-links,
.footer-author-indicator {
  position: relative;
  z-index: 1;
}

.footer-author-kicker {
  display: inline-block;
  margin-bottom: 0.1rem;
  font-size: 0.61rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

.footer-author-content h3 {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 600;
  text-align: right;
}

.footer-author-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: rgba(154, 205, 50, 0.9);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(154, 205, 50, 0.14);
}

.footer-author-indicator i {
  font-size: 0.72rem;
  animation: footerAuthorArrow 1.2s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.footer-author-links {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 0.45rem;
  min-width: 0;
  width: max-content;
  max-width: min(86vw, 320px);
  padding: 0.15rem 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 0.24s ease,
    transform 0.32s ease,
    visibility 0.32s ease;
}

.footer-author-card:hover .footer-author-links,
.footer-author-card:focus-within .footer-author-links {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.footer-author-card:hover .footer-author-indicator i,
.footer-author-card:focus-within .footer-author-indicator i {
  transform: rotate(180deg);
  animation: none;
}



.reitor-chatbot.hidden-by-author {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(10px);
  transform: translateY(12px) scale(0.92);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    filter 0.3s ease,
    transform 0.3s ease;
}

.footer-author-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.82rem;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

.footer-author-link i {
  color: rgba(154, 205, 50, 0.88);
}

.footer-author-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(154, 205, 50, 0.16);
  color: var(--blanco);
}

@keyframes footerAuthorArrow {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-author-link,
  .footer-author-links,
  .footer-author-indicator i {
    transition: none;
  }

  .footer-author-indicator i {
    animation: none;
  }
}

/* ===== RESPONSIVE DESIGN ===== */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--blanco);
  font-size: 1.5rem;
  cursor: pointer;
}

/* WhatsApp Fix */






@keyframes lockShake {
  0%,
  100% {
    transform: translateY(-50%) rotate(0);
  }
  25% {
    transform: translateY(-50%) rotate(-10deg);
  }
  75% {
    transform: translateY(-50%) rotate(10deg);
  }
}

/* Performance Optimizations */


/* ===== CLIENTES (Trusted By) ===== */
.clients {
  background: linear-gradient(180deg, #f8fafc 0%, var(--blanco) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}











.clients h2 {
  margin: 8px 0 8px;
  font-size: 2.2rem;
  letter-spacing: 0.2px;
  background: linear-gradient(
    90deg,
    var(--azul-oscuro) 0%,
    #1b365d 50%,
    var(--verde-lima) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}



/* Marquee container */


/* Fade edges */






/* Scrolling track */




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

/* Client cards - marquee version */














@media (max-width: 520px) {
  .clients {
    padding: 52px 0;
  }
}







/* Responsive Media Queries */


@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--azul-oscuro);
    flex-direction: column;
    padding: 1rem 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu > li {
    margin: 0;
    width: 100%;
  }

  .nav-menu a {
    padding: 1rem 2rem;
    width: 100%;
  }

  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: var(--azul-intermedio);
    width: 100%;
  }

  

  

  

  

  

  

  .event-item {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  

  

  

  

  

  

  

  

  .newsletter-form input {
    min-width: auto;
    width: 100%;
  }

  

  .main-event {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .btn,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
}
/* ===== NOTIFICACIONES MEJORADAS - SIN EFECTOS NO DESEADOS ===== */
.nav-notifications {
  position: relative;
  margin-left: 15px;
}

.notification-bell {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.notification-bell:hover {
  background: var(--verde-lima);
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(154, 205, 50, 0.3);
}

.notification-bell:hover i {
  color: var(--azul-oscuro) !important;
}

.notification-bell i {
  font-size: 1.1rem;
  color: var(--texto-claro);
  transition: all 0.3s ease;
}

/* BADGE CON PULSO SOLO PARA NOTIFICACIONES */
.nav-notifications .notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(
    135deg,
    var(--verde-lima),
    var(--verde-lima-profundo)
  );
  color: var(--azul-oscuro);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--azul-oscuro);
  animation: notification-pulse 2s infinite;
}

/* Sin esto, el atributo hidden no sirve de nada aqui.
   [hidden] solo aporta un "display: none" de la hoja del navegador, de
   especificidad casi cero; el "display: flex" de arriba le gana. El
   resultado era una insignia verde con un 0 dentro cuando no habia nada
   nuevo: justo lo contrario de lo que pide un contador. */
.nav-notifications .notification-badge[hidden] {
  display: none;
}

/* PULSO ESPECÍFICO SOLO PARA NOTIFICACIONES */
@keyframes notification-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* ELIMINAR CUALQUIER PULSO GLOBAL QUE AFECTE OTROS ELEMENTOS */
.btn-primary,
.mobile-menu-btn {
  animation: none !important;
}

/* Dropdown de Notificaciones - Estilo Profesional */
.notification-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 380px;
  max-width: 90vw;
  background: var(--azul-oscuro);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 10px;
}

.notification-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.notification-dropdown::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 20px;
  width: 16px;
  height: 16px;
  background: var(--azul-oscuro);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotate(45deg);
}

/* Header del Dropdown */
.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 30, 59, 0.95);
  border-radius: 12px 12px 0 0;
}

.notification-header h4 {
  margin: 0;
  color: var(--verde-lima);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Panel de Novedades/Anuncios (contenido dentro del dropdown) */
#announcementContent.announcement-panel {
  padding: 1rem 1.25rem 1.25rem;
  display: grid;
  gap: 12px; /* separa visualmente las tarjetas de anuncios */
}






.announcement-cta {
  margin-left: auto;
  background: var(--verde-lima);
  border: 1px solid var(--verde-lima);
  color: var(--azul-oscuro);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.announcement-cta:hover {
  background: var(--verde-lima);
  color: var(--azul-oscuro);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(154, 205, 50, 0.25);
}

/* Asegurar legibilidad del CTA dentro del dropdown en todos los estados */
.notification-dropdown .announcement-cta,
.notification-dropdown .announcement-cta:hover,
.notification-dropdown .announcement-cta:focus,
.notification-dropdown .announcement-cta:focus-visible,
.notification-dropdown .announcement-cta:active,
.notification-dropdown .announcement-cta:visited {
  background: var(--verde-lima);
  border-color: var(--verde-lima);
  color: var(--azul-oscuro);
  text-decoration: none;
}



.announcement-cta:focus-visible {
  outline: 3px solid rgba(154, 205, 50, 0.45);
  outline-offset: 2px;
}

.notification-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--texto-claro);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.3s ease;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-close:hover {
  background: var(--verde-lima);
  color: var(--azul-oscuro);
  transform: rotate(90deg);
}

/* Items de Notificación */










@keyframes notification-blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0.3;
  }
}


*/

/* Efectos de animación para nuevos items */
@keyframes notification-slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}



/* Responsive */
@media (max-width: 768px) {
  .notification-dropdown {
    position: fixed;
    top: 70px;
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
  }

  .notification-dropdown::before {
    right: auto;
    left: 20px;
  }

  .nav-notifications {
    margin-left: 10px;
  }
}
/* ESTILOS DEL BOTÓN SUBIR */










/* Efecto de pulso sutil */
@keyframes subtle-pulse {
  0% {
    box-shadow: 0 4px 20px rgba(11, 30, 59, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(11, 30, 59, 0.5);
  }
  100% {
    box-shadow: 0 4px 20px rgba(11, 30, 59, 0.3);
  }
}



/* Responsive */


/* Variables de color (si no las tienes definidas) */
:root {
  --azul-oscuro: #0b1e3b;
  --azul-medio: #1e3d6b;
  --verde-lima: #8dc63f;
  --verde-lima-profundo: #79b12f;
  --texto-claro: #ffffff;
}

/* Aqui habia un bloque rotulado "Estilos de ejemplo para probar el scroll":
   codigo de una prueba que se quedo dentro y se aplicaba a TODO el sitio.

     body { height: 200vh; background: <degradado>; font-family: Poppins }
     .content { padding: 50px; text-align: center }

   El height: 200vh es el que hacia dano. Con overflow-x: hidden en el body
   -que si es intencionado, unas lineas mas arriba-, el navegador convertia
   el body en un contenedor con scroll propio de alto fijo. Ademas pisaba el
   background-color de la marca con un degradado gris de una maqueta.

   La tipografia ya la declara la regla body de arriba; .content no lo usa
   ninguna pagina. */
/* ===== BOTONES DE ACCIÓN DEL CURSO ===== */






/* ===== MODAL DE ZOOM DE IMAGEN ===== */






















/* Efectos de entrada para el modal */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}



/* Responsive para el modal de zoom */



/* ===== LOADER DE TRANSICION =====
   El loader vive por completo en css/loader.css. Aqui habia una segunda
   definicion de .page-transition-loader que competia con aquella y, sobre
   todo, una regla ".page-transition-loader * { animation-duration: 2s
   !important }" que forzaba a 2 segundos TODAS las animaciones del loader,
   ignorando las duraciones declaradas en loader.css. Se elimino para que
   haya un unico dueno de estos estilos. No volver a declararlo aqui. */

/* ===== ELIMINAR EFECTO BLANCO AL CARGAR ===== */

/* Eliminar transiciones globales que causan el efecto blanco */
body,
html {
  transition: none !important;
  animation: none !important;
}

/* Forzar que la página cargue instantáneamente sin efectos */
body {
  opacity: 1 !important;
  visibility: visible !important;
  animation: none !important;
}

/* Eliminar cualquier fade-in global */


/* Prevenir efectos de carga en elementos específicos */
.header-container,
.services,
.courses {
  animation: none !important;
  transition: none !important;
}
/* ===== SOLUCIÓN PARA CTA SECTION CENTRADO ===== */



/* Contenedor especial para el CTA */


/* Asegurar que los cursos se comporten correctamente */

/* ===== REITOR STORIES SYSTEM - CORREGIDO ===== */
.logo-stories-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.stories-indicator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

/* ANILLO MÁS FINO Y DISCRETO */
/* ANILLO SIMPLE ALREDEDOR DEL LOGO - NO TAPA NADA */
.stories-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--verde-lima);
  border-radius: 50%;
  animation: storiesPulse 2s ease-in-out infinite;
  opacity: 0;
  transition: all 0.3s ease;
}
.stories-indicator.has-stories .stories-ring {
  opacity: 0.8;
}

/* Estado cuando las stories han sido vistas */
.stories-indicator.stories-seen .stories-ring {
  background: var(--gris-medio);
  animation: none;
  opacity: 0.6;
}

.stories-logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--azul-oscuro);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.stories-indicator:hover .stories-logo {
  transform: scale(1.05);
}

/* Stories Modal - LAYOUT CORREGIDO */
.stories-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.stories-modal.active {
  opacity: 1;
  visibility: visible;
}

.stories-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 30, 59, 0.95);
  backdrop-filter: blur(5px);
}

.stories-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 400px;
  max-height: 85vh; /* Reducido para asegurar que quepa */
  margin: 5vh auto;
  background: var(--azul-oscuro);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

/* Header fijo */
.stories-header {
  position: relative;
  z-index: 10;
  padding: 1rem;
  background: linear-gradient(
    to bottom,
    rgba(11, 30, 59, 0.95) 0%,
    transparent 100%
  );
  flex-shrink: 0;
}

.stories-progress-container {
  margin-bottom: 0.8rem;
}

.progress-bar {
  width: 100%;
  display: flex;
  gap: 0.35rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--verde-lima),
    var(--verde-lima-profundo)
  );
  border-radius: 1px;
  width: 0%;
  transition: width 0.1s linear;
}

.progress-step {
  flex: 1;
  height: 3px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
  cursor: pointer;
}

.progress-step-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    var(--verde-lima),
    var(--verde-lima-profundo)
  );
  transition: width 0.12s linear;
}

.progress-step.is-complete .progress-step-fill {
  width: 100%;
}

.progress-step.is-active {
  box-shadow: 0 0 0 1px rgba(154, 205, 50, 0.25);
}

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

.story-user {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--verde-lima);
  overflow: hidden;
  background: var(--azul-intermedio);
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.username {
  color: var(--blanco);
  font-weight: 600;
  font-size: 0.85rem;
}

.stories-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--blanco);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
}

.stories-close:hover {
  background: var(--verde-lima);
  color: var(--azul-oscuro);
  transform: rotate(90deg);
}

/* Contenido principal - ÁREA FLEXIBLE */
.stories-content {
  position: relative;
  flex: 1;
  min-height: 0; /* Importante para flexbox */
  overflow: hidden;
}

.stories-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
}

.story-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--azul-intermedio);
  position: relative;
}

.story-content-video {
  overflow: hidden;
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.story-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(4, 12, 24, 0.18) 0%,
      rgba(4, 12, 24, 0.72) 100%
    ),
    radial-gradient(
      circle at top right,
      rgba(141, 198, 63, 0.22),
      transparent 26%
    );
}

.story-text-content {
  padding: 2rem;
  color: var(--blanco);
  text-align: center;
  max-width: 90%;
  background: rgba(11, 30, 59, 0.8);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.story-text-content-video {
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  max-width: none;
  text-align: left;
  background: rgba(11, 30, 59, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.story-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(141, 198, 63, 0.18);
  color: #d9f3ad;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--verde-lima);
}

.story-description {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.story-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--verde-lima);
  color: var(--azul-oscuro);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.story-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(154, 205, 50, 0.4);
}

/* Controles de navegación */
.stories-controls {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.story-prev,
.story-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--blanco);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
}

.story-prev {
  left: 0.5rem;
}

.story-next {
  right: 0.5rem;
}

.story-prev:hover,
.story-next:hover {
  background: var(--verde-lima);
  color: var(--azul-oscuro);
  transform: translateY(-50%) scale(1.1);
}

/* Footer fijo en la parte inferior */
.stories-footer {
  position: relative;
  padding: 1rem;
  background: linear-gradient(
    to top,
    rgba(11, 30, 59, 0.9) 0%,
    transparent 100%
  );
  flex-shrink: 0;
  z-index: 10;
}

.story-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--blanco);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
}

.action-btn:hover {
  background: var(--verde-lima);
  color: var(--azul-oscuro);
  transform: scale(1.1);
}

/* Animaciones más suaves */
@keyframes storiesPulse {
  0%,
  100% {
    opacity: 0.6;
    background-position: 0% 50%;
  }
  50% {
    opacity: 0.9;
    background-position: 100% 50%;
  }
}

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

/* Responsive Design Mejorado */
@media (max-width: 768px) {
  .stories-container {
    margin: 2vh auto;
    max-height: 90vh;
    border-radius: 15px;
    max-width: 95%;
  }

  .story-prev,
  .story-next {
    width: 35px;
    height: 35px;
  }

  .stories-header {
    padding: 0.8rem;
  }

  .stories-footer {
    padding: 0.8rem;
  }
}

@media (max-width: 480px) {
  .stories-container {
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
    max-width: 100%;
  }

  .story-text-content {
    padding: 1.5rem;
  }

  .story-text-content-video {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .story-title {
    font-size: 1.1rem;
  }

  .story-description {
    font-size: 0.85rem;
  }
}

/* Tooltip mejorado */
.stories-tooltip {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--azul-oscuro);
  color: var(--blanco);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--verde-lima);
}

.stories-tooltip::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid var(--azul-oscuro);
}

.logo:hover .stories-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}
/* ===== TUTORIAL MODAL (reemplazo completo) ===== */
.tutorial-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 10001;
  background: rgba(11, 30, 59, 0.96);
  backdrop-filter: blur(4px);
}
.tutorial-modal.active {
  display: flex;
}
















/* Spotlight para guiar al usuario al logo/notificaciones */









/* ===== WhatsApp: hint sutil ===== */




@keyframes waHintIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes waHintOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}



/* Spotlight/Tutorial: que el spotlight oscurezca, no el modal */
.tutorial-modal {
  background: transparent !important; /* sin scrim global */
  backdrop-filter: none !important; /* sin blur global */
  z-index: 10001; /* el contenido del modal queda arriba */
}

/* Overlay del spotlight debajo del modal y sin bloquear clicks */


/* El callout no bloquea el modal */

/* ==================================================================
   EQUIPO EXPERTO - layout bento
   Ficha destacada a la izquierda + rejilla 2x2 y banner de contacto.
   Se conservan las clases .team-modal-trigger y los data-member
   porque js/script.js abre con ellas el modal de cada perfil.
   ================================================================== */



/* El logo de REITOR, grande y tenue, arriba a la izquierda.
   Sustituye a unos arcos concentricos genericos: con el logo la seccion
   tiene firma propia.
   Es una imagen ya teñida (logo-marca-agua.png: la silueta del logo en el
   verde palido de los arcos) y no una mascara CSS sobre el logo normal: las
   mascaras con imagen no se pintan al abrir la pagina como archivo local
   (file://), y la seccion se quedaba vacia. */


/* En telefono, mas pequeno: a 420px ocuparia todo el ancho tras el titulo. */


/* Trama de puntos abajo a la derecha */




/* ---------------------------------------------------- Encabezado */











/* ------------------------------------------------ Rejilla general */





/* ---------------------------------------------- Ficha destacada */









/* Filete verde vertical en el borde izquierdo de la foto */


/* Distintivo de anos de experiencia */








/* Panel oscuro inferior */








/* Pastillas de especialidad */
















/* Marca de LinkedIn */




/* Sin URL configurada no es un enlace: no debe parecer pulsable */


/* ------------------------------------------- Tarjetas pequenas */











/* Marca de LinkedIn en la esquina */












/* Filete verde corto */








/* --------------------------------------------- Banner de contacto */













/* ------------------------------------------ Perfil unico (2026-11) */





































/* Biografia */












































/* Foco visible por teclado */


/* ------------------------------------------------------ Responsive */





/* ---------------------------------- Respeta reduccion de movimiento */


/* ============================================================================
   FICHA DEL EQUIPO EXPERTO  -  modal de biografia
   ----------------------------------------------------------------------------
   El marcado lo construye createModalContent() en js/script.js a partir de
   js/autores.js. Los iconos son <use href="#eq-*"> contra el sprite embebido
   al principio de #teamModal en index.html.

   Colores: los del paquete de iconos, que son los de la maqueta aprobada.
   Se declaran aqui como tokens locales y no se tocan las variables globales
   del sitio, que gobiernan el resto de la pagina.
   ============================================================================ */













/* ------------------------------------------------------------- Cerrar */









/* ============================================================== Rejilla */



/* Las dos columnas se colocan solas en la primera fila y el pie, que abarca
   de lado a lado, cae en la segunda. NO se les pone grid-row: 1: con una sola
   columna declarada -el caso del movil- eso obliga a la rejilla a inventarse
   una segunda columna implicita para el segundo hijo, y el diseno se queda en
   dos columnas de 208 y 263 px por mucho que el media query diga 1fr. */






/* ------------------------------------------------------------- Retrato */









/* La insignia de especialista, abajo a la derecha del circulo */




/* --------------------------------------------------------- Identidad */









/* ------------------------------------------------------------- Cifras */











/* ---------------------------------------------------------- Contenido */





/* El filete corto y lima de debajo del titulo */












/* -------------------------------------------------------------- Pills */





/* ------------------------------------------------------- Credenciales */













/* ----------------------------------------------------------- Pie */





















/* -------------------------------------------------------- Scrollbar */







/* ========================================================== Responsive */

/* Por debajo de 860px la columna azul deja de caber al lado: pasa arriba,
   en horizontal, para no comerse toda la primera pantalla del telefono. */
@media (max-width: 860px) {
  /* Aqui la X queda sobre el panel azul, no sobre el blanco: se mete un poco
     mas adentro para no montarse en la esquina redondeada, y lleva sombra
     para despegarse del fondo oscuro. */
}





/* Responsive Design */






/* ===== CALCULADORAS ===== */
.calculators-hub {
  position: relative;
  padding: 5.5rem 2rem 6rem;
  background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
  overflow: hidden;
}

.calculators-hub::before,
.calculators-hub::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.calculators-hub::before {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--verde-lima) 25%,
    var(--azul-intermedio) 50%,
    var(--verde-lima) 75%,
    transparent 100%
  );
  box-shadow: 0 2px 10px rgba(141, 198, 63, 0.22);
}

.calculators-hub::after {
  top: 30px;
  right: 28px;
  width: 86px;
  height: 86px;
  background:
    radial-gradient(circle, rgba(141, 198, 63, 0.1) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0 L40 20 L20 40 L0 20 Z' fill='%238DC63F' fill-opacity='0.12'/%3E%3C/svg%3E");
  opacity: 0.7;
}





.calculators-shell {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}









.calculators-panels {
  min-width: 0;
}

.calculator-panel {
  display: none;
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(248, 251, 253, 0.98)
  );
  border: 1px solid rgba(11, 30, 59, 0.08);
  border-radius: 26px;
  padding: 2rem;
  box-shadow:
    0 18px 38px rgba(11, 30, 59, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.calculator-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--verde-lima), var(--azul-intermedio));
}

.calculator-panel.active {
  display: block;
  animation: calculatorPanelReveal 0.32s ease;
}

.calculator-panel-header {
  margin-bottom: 1.6rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(11, 30, 59, 0.08);
}

.calculator-panel-header h3 {
  font-size: 1.55rem;
  color: var(--azul-oscuro);
  margin-bottom: 0.45rem;
}

.calculator-panel-header p {
  color: #526274;
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 760px;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.calculator-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calculator-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.calculator-field-full {
  grid-column: 1 / -1;
}

.calculator-field span {
  font-size: 0.88rem;
  font-weight: 600;
  color: #4a5d75;
}

.calculator-field input,
.calculator-field select {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(11, 30, 59, 0.1);
  background: #ffffff;
  color: var(--azul-oscuro);
  padding: 0.9rem 1rem;
  font-size: 0.98rem;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  box-shadow: inset 0 1px 2px rgba(11, 30, 59, 0.03);
}

.calculator-field input:focus,
.calculator-field select:focus {
  outline: none;
  border-color: rgba(141, 198, 63, 0.7);
  box-shadow: 0 0 0 4px rgba(141, 198, 63, 0.13);
}

.checkbox-field {
  justify-content: center;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(11, 30, 59, 0.08);
  background: rgba(11, 30, 59, 0.03);
}

.checkbox-field input {
  width: 22px;
  min-height: 22px;
  padding: 0;
  accent-color: var(--verde-lima);
  box-shadow: none;
}

.checkbox-field span {
  margin-bottom: 0.35rem;
}

.calculator-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(11, 30, 59, 0.06);
}

.calculator-actions .btn {
  min-width: 190px;
  justify-content: center;
}

.calculator-results {
  margin-top: 1.5rem;
}

.calculator-placeholder,
.calculator-warning,
.calculator-result-card {
  border-radius: 24px;
  padding: 1.25rem;
}

.calculator-placeholder {
  border: 1px dashed rgba(11, 30, 59, 0.14);
  background: linear-gradient(
    180deg,
    rgba(248, 250, 252, 0.96),
    rgba(255, 255, 255, 0.98)
  );
  color: #66758a;
}

.calculator-warning {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #991b1b;
}

.calculator-result-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6faf5 100%);
  border: 1px solid rgba(141, 198, 63, 0.16);
  box-shadow:
    0 12px 26px rgba(11, 30, 59, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.calculator-result-card h4 {
  font-size: 1rem;
  color: var(--azul-oscuro);
  margin-bottom: 1rem;
}

.calculator-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.calculator-result-item {
  background: rgba(11, 30, 59, 0.035);
  border-radius: 16px;
  padding: 0.95rem 1rem;
}

.calculator-result-item strong {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.3rem;
}

.calculator-result-item span {
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--azul-oscuro);
}

.calculator-result-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(11, 30, 59, 0.08);
  color: #526274;
  line-height: 1.68;
  font-size: 0.95rem;
}







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



@media (max-width: 768px) {
  .calculators-hub {
    padding: 4.5rem 1rem;
  }

  

  

  .calculator-panel {
    padding: 1.4rem;
    border-radius: 24px;
  }

  .calculator-grid,
  .calculator-grid-three,
  .calculator-result-grid {
    grid-template-columns: 1fr;
  }

  .calculator-actions .btn {
    width: 100%;
  }
}

/* Animaciones AOS personalizadas */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}



[data-aos="fade-up"] {
  transform: translateY(30px);
}



/* ===== MODAL DE INSCRIPCIÓN A CURSOS ===== */


















.enroll-submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(
    135deg,
    var(--verde-lima),
    var(--verde-lima-profundo)
  );
  color: var(--blanco);
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.enroll-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(141, 198, 63, 0.4);
}
.enroll-submit-btn:active {
  transform: translateY(0);
}



/* Éxito */







/* Animaciones */
@keyframes enrollFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes enrollSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Responsive */


/* Botón enroll como button (hereda estilos de .enroll-btn-enhanced) */


/* ===== Barra de progreso de lectura ===== */




/* ==================================================================
   BANCO DE HERRAMIENTAS - complementos
   Sello de vigencia, acciones de resultado, foco accesible e impresion
   ================================================================== */

/* Sello con el ano de los parametros fiscales */
.calculators-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(11, 30, 59, 0.05);
  border: 1px solid rgba(11, 30, 59, 0.1);
  color: #45566c;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.calculators-stamp i {
  color: var(--verde-lima);
}

/* Foco visible por teclado en las pestanas */
.calculator-chip:focus-visible,
.calculator-panel:focus-visible {
  outline: 3px solid var(--azul-intermedio);
  outline-offset: 3px;
}

.calculator-panel:focus-visible {
  outline-offset: -3px;
}

/* Dato destacado dentro de la tarjeta de resultado */
.calculator-result-item.is-highlight {
  background: linear-gradient(
    135deg,
    rgba(141, 198, 63, 0.16),
    rgba(141, 198, 63, 0.06)
  );
  border: 1px solid rgba(141, 198, 63, 0.28);
}

.calculator-result-item.is-highlight span {
  color: var(--azul-oscuro);
  font-size: 1.18rem;
}

/* Barra de acciones: copiar, PDF, WhatsApp */
.calculator-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(11, 30, 59, 0.08);
}

.calculator-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(11, 30, 59, 0.12);
  background: #ffffff;
  color: #35506d;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.calculator-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(141, 198, 63, 0.45);
  box-shadow: 0 8px 18px rgba(11, 30, 59, 0.08);
  color: var(--azul-oscuro);
}

.calculator-chip i {
  color: var(--verde-lima);
}

.calculator-chip-accent {
  background: linear-gradient(135deg, var(--verde-lima) 0%, var(--verde-lima-profundo) 100%);
  border-color: transparent;
  color: #ffffff;
}

.calculator-chip-accent i,
.calculator-chip-accent:hover {
  color: #ffffff;
}

/* Aviso legal al pie de cada resultado */
.calculator-result-legal {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.65;
  color: #77869a;
}

.calculator-warning i {
  margin-right: 0.4rem;
}



/* Respeta a quien pidio menos movimiento en el sistema */
@media (prefers-reduced-motion: reduce) {
  .calculator-panel.active {
    animation: none;
  }

  .calculator-chip {
    transition: none;
  }

  .calculator-chip:hover {
    transform: none;
  }
}

@media (max-width: 768px) {
  .calculator-result-actions .calculator-chip {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* Impresion: al guardar en PDF solo sale la herramienta usada */
/* ==================================================================
   EL INFORME IMPRESO DE UNA CALCULADORA
   ------------------------------------------------------------------
   Antes se imprimia el panel escondiendo el formulario, y salia un papel
   con el resultado pero sin los datos que lo produjeron. Ahora
   js/calculators.js arma un documento aparte (#calcInforme) al pulsar
   "Guardar PDF", y aqui se manda imprimir solo eso.

   El informe no se ve en pantalla: nace oculto y solo existe mientras
   dura la impresion.
   ================================================================== */

.calc-informe {
  display: none;
}

@media print {
  body > *:not(.calc-informe) {
    display: none !important;
  }

  .calc-informe {
    display: block !important;
    padding: 0;
    color: #16202e;
    font-family: "Poppins", system-ui, sans-serif;
  }

  .calc-informe-cabecera {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid #8dc63f;
  }

  .calc-informe-marca strong {
    display: block;
    font-size: 1.15rem;
    color: #0b1e3b;
  }

  .calc-informe-marca span {
    font-size: 0.78rem;
    color: #5b6b7d;
  }

  .calc-informe-sello {
    padding: 0.25rem 0.6rem;
    border: 1px solid #8dc63f;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #4f7a12;
    white-space: nowrap;
  }

  .calc-informe h1 {
    margin: 1.3rem 0 0.3rem;
    font-size: 1.5rem;
    color: #0b1e3b;
  }

  .calc-informe-fecha {
    margin: 0 0 1.6rem;
    font-size: 0.82rem;
    color: #5b6b7d;
  }

  .calc-informe h2 {
    margin: 0 0 0.6rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4f7a12;
  }

  .calc-informe-bloque {
    margin-bottom: 1.6rem;
    page-break-inside: avoid;
  }

  .calc-informe-fila {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #e6ebf1;
    font-size: 0.9rem;
  }

  .calc-informe-fila span {
    color: #5b6b7d;
  }

  .calc-informe-fila strong {
    color: #0b1e3b;
    text-align: right;
  }

  .calc-informe-nota {
    margin: -1rem 0 1.6rem;
    font-size: 0.84rem;
    color: #3d4f66;
  }

  .calc-informe-legal {
    padding-top: 0.9rem;
    border-top: 1px solid #e6ebf1;
    page-break-inside: avoid;
  }

  .calc-informe-legal p {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    line-height: 1.55;
    color: #5b6b7d;
  }

  .calc-informe-pie {
    color: #8a97a6 !important;
  }
}

/* ==================================================================
   FORMULARIOS Y CONSENTIMIENTO
   Mensajes de estado, banner de cookies y formulario de contacto
   ================================================================== */

/* ------------------------------------------- Mensajes de formulario */

.reitor-form-msg {
  margin: 0.85rem 0 0;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  min-height: 0;
  transition: color 0.2s ease;
}

.reitor-form-msg:empty {
  margin: 0;
}

.reitor-form-msg.is-exito {
  color: #2f7a1f;
  font-weight: 600;
}

.reitor-form-msg.is-error {
  color: #b91c1c;
  font-weight: 600;
}

.reitor-form-msg.is-aviso {
  color: #7a5a12;
  font-weight: 500;
}

/* Campo con error de validación */
[aria-invalid="true"] {
  border-color: rgba(185, 28, 28, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1) !important;
}

/* ------------------------------------------ Banner de consentimiento */

.reitor-consent {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 9999;
  width: min(920px, calc(100% - 2rem));
  transform: translate(-50%, calc(100% + 2rem));
  opacity: 0;
  transition: transform 0.36s ease, opacity 0.36s ease;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(11, 30, 59, 0.1);
  box-shadow: 0 20px 48px rgba(11, 30, 59, 0.18);
}

.reitor-consent.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.reitor-consent-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 1.4rem;
}

.reitor-consent-text {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  flex: 1 1 auto;
}

.reitor-consent-text i {
  color: var(--verde-lima);
  font-size: 1.2rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.reitor-consent-text p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #455468;
}

.reitor-consent-text a {
  color: var(--azul-intermedio);
  font-weight: 600;
  text-decoration: underline;
}

.reitor-consent-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}

.reitor-consent-btn {
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.reitor-consent-reject {
  background: #ffffff;
  border-color: rgba(11, 30, 59, 0.16);
  color: #4a5d75;
}

.reitor-consent-reject:hover {
  background: rgba(11, 30, 59, 0.04);
}

.reitor-consent-accept {
  background: linear-gradient(
    135deg,
    var(--verde-lima) 0%,
    var(--verde-lima-profundo) 100%
  );
  color: #ffffff;
}

.reitor-consent-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(141, 198, 63, 0.3);
}

.reitor-consent-btn:focus-visible {
  outline: 3px solid var(--azul-intermedio);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .reitor-consent-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .reitor-consent-actions {
    flex-direction: column-reverse;
  }

  .reitor-consent-btn {
    width: 100%;
    padding: 0.8rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reitor-consent {
    transition: opacity 0.2s ease;
    transform: translate(-50%, 0);
  }

  .reitor-consent-accept:hover {
    transform: none;
  }
}

/* --------------------------------------- Sección de contacto directo */

























/* Tarjeta del formulario */




























/* ==================================================================
   REJILLA DE CALCULADORAS EN LA PORTADA
   ------------------------------------------------------------------
   La portada ya no lleva las nueve herramientas dentro. Presenta y
   reparte: cada tarjeta lleva a /calculadoras/<slug>.html, donde esta
   el formulario con la explicacion del calculo y su base legal.
   El marcado lo escribe generar-seo.py desde js/calculadoras.js.
   ================================================================== */



















@media (max-width: 600px) {
  /* En telefono la flecha se ve siempre: no hay hover que la revele */
}



/* El "Calculadoras" de la barra no navega, solo despliega. Sin href el
   navegador no le pone el cursor de enlace, asi que se pone a mano. */
.nav-menu > li.has-submenu > a[role="button"] {
  cursor: pointer;
}

/* Sin eventos futuros: lo escribe generar-contenido.py en lugar del destacado. */


/* Solo hay un evento futuro (el destacado): la agenda lo dice en vez de quedar vacía. */


/* Sin ningún evento futuro (generar-contenido.py pone .agenda-sin-eventos):
   fuera el título y la lista vacía; la suscripción queda sola y centrada. */




/* ==================================================================
   NOTICIAS: CABECERA "BOLETÍN FISCAL REITOR" (.nb-*)
   ------------------------------------------------------------------
   La pinta js/noticias.js. Identidad propia, distinta de las fichas de
   cursos (que usan foto y los arcos de los afiches): aquí es un boletín
   impreso. Papel rayado, mancheta con logo y fecha sobre doble filete,
   un sello circular con el tema y la etiqueta de la noticia en grande.
   ================================================================== */







/* Margen rojo... en lima: la línea vertical de un cuaderno de notas */


/* Logo REITOR de marca de agua, abajo a la derecha */










/* El sello del tema: circular, punteado e inclinado, como un timbre */













