:root {
/* Palette: Astronaut by user */
  --astronaut-50: #f0f0f8;
  --astronaut-100: #dadbed;
  --astronaut-200: #b9bade;
  --astronaut-300: #9d9ed0;
  --astronaut-400: #8284c2;
  --astronaut-500: #696bb4;
  --astronaut-600: #5255a3;
  --astronaut-700: #3f4188;
  --astronaut-800: #2e3068;
  --astronaut-900: #1a1b41;
  --astronaut-950: #0d0e27;

/* Semantic tokens (keep names used across the site) */
  --primary: var(--astronaut-800);
  --secondary: var(--astronaut-500);
  --accent: var(--astronaut-400);
  --muted: var(--astronaut-200);
  --muted-2: var(--astronaut-100);
  --bg: var(--astronaut-50);
  --text: var(--astronaut-950);
  --text-inverse: #ffffff;

/* Back-compat with existing CSS */
  --thirty: var(--astronaut-900);
  --fourty: var(--text-inverse);
  --fifty: var(--bg);

/* Elevation */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,.12);
  --radius: 14px;
}

header {
    padding: 20px;
}
/* Loader overlay responsive */
#page-loader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 27, 65, 0.9); /* overlay semitransparente con tu tono base */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(4px); /* suave efecto de desenfoque */
  -webkit-backdrop-filter: blur(4px); /* para Safari */
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Ajuste responsive de la imagen */
#page-loader img.loader-img {
  width: 35vw;           /* proporcional al tamaño de ventana */
  max-width: 600px;      /* límite máximo en pantallas grandes */
  min-width: 300px;      /* límite mínimo en móviles */
  height: auto;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.5s ease;
}

/* Pequeña animación de entrada */
#page-loader img.loader-img {
  transform: scale(1.05);
  opacity: 0.95;
}

/* Desvanecer el loader al terminar */
#page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* Adaptación para pantallas más pequeñas */
@media (max-width: 768px) {
  #page-loader img.loader-img {
    width: 60vw;
    max-width: 300px;
  }
}


.header-logo {
    background:url('images/website/directorio_inv.png');
    background-repeat: repeat-x;
    background-size: 100% 100%;
    height: 250px; /* Mantiene la altura definida */
    display: flex;
    justify-content: center;
    align-items: center;
    margin:0px 0 10px 0;
}

.bg-iipe{
    background-color:var(--primary);
}
/* Efecto de hover para las tarjetas */
/* Asegura que las tarjetas tengan la misma altura */
.card {
display: flex!important;
flex-direction: column!important;
}

.card-body {
  font-family: 'Inter', 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
flex-grow: 1!important; /* Esto hace que el contenido crezca y empuje el pie de la tarjeta hacia abajo */
}

.card:hover {
transform: scale(1.05);
transition: all 0.3s ease;
}

/* Efecto de sombra más pronunciada en hover */
.card {
transition: all 0.3s ease-in-out;
}

.card:hover {
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}
/* Ajustar la altura de las imágenes para que tengan el mismo tamaño */
.card-img-top {
height: 500px; /* Ajusta la altura de la imagen según lo que necesites */
object-fit: cover; /* Hace que la imagen cubra el área del contenedor sin distorsionarse */
}

/* Opcional: efecto hover para la imagen */
.card-img-top:hover {
opacity: 0.8;
transition: opacity 0.3s ease;
}
footer {
    background: var(--primary);
    color:var(--fourty);
    padding: 20px;
    font-size: 16px;
}

footer a {
    color: #E4A4FE;
}

.navbar {
    background-color: var(--primary);
    color: white!important;
    z-index: 1000;
}
/* Cambiar el color del ícono hamburguesa */
.custom-toggler .navbar-toggler-icon {
    color: white!important; /* Cambia el color a blanco */
}

.nav-link {
    color: white!important;
}

.dropdown-menu a {
    color: var(--secondary);
}

.footer .tituloFooter {
    font-size: 18px;
}

.footer .subtituloFooter {
    font-size: 17px;
}
/* Estilo para el logo en dispositivos móviles */
@media (max-width: 767px) {
.header-logo {
    background:url('images/website/directorio.png');
    background-repeat: repeat-x;
    background-size: 100% 100%;
    height:80px; /* Mantiene la altura definida */
    display: flex;
    justify-content: center;
    align-items: center;
    margin:0px 0 10px 0;
}
.mobile-logo {
width: 140px; /* Establece el tamaño del logo a 140px solo en móviles */
}
}


/* ===== Professional base styles (added) ===== */
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--secondary); }
a:hover { color: var(--primary); text-decoration: none; }

/* Navbar */
.navbar {
  background: linear-gradient(180deg, var(--primary), var(--astronaut-900));
  box-shadow: var(--shadow-sm);
}
.navbar .nav-link, .navbar .navbar-brand {
  color: var(--fourty) !important;
  font-weight: 500;
}
.navbar .nav-link:hover, .navbar .nav-item.show .nav-link {
  color: var(--muted) !important;
}

/* Buttons */
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
  border-radius: var(--radius);
}
.btn-outline-primary:hover {
  background: var(--primary);
  color: var(--fourty);
}

/* Cards */
.card {
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-header {
  background: var(--muted-2);
  border-bottom: 0;
  color: var(--primary);
  font-weight: 600;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); transition: .2s ease; }
.card .btn { border-radius: 12px; }

/* Sections */
.section {
  padding: clamp(2.5rem, 2.5vw + 1rem, 5rem) 0;
}
.section .h2, .section h2 {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .2px;
}

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 10% -10%, var(--astronaut-400) 0%, transparent 60%),
              linear-gradient(180deg, var(--bg), var(--muted-2));
  border-bottom: 1px solid var(--muted);
}

/* Footer */
footer {
  background: var(--astronaut-900);
  color: var(--fourty);
}
footer a { color: var(--muted); }
footer a:hover { color: var(--fourty); }

/* Utilities */
.badge-soft {
  background: var(--muted-2);
  color: var(--primary);
  border-radius: 999px;
  padding: .35rem .6rem;
  font-weight: 600;
  font-size: .85rem;
}
.shadow-soft { box-shadow: var(--shadow-sm) !important; }
.rounded-2xl { border-radius: var(--radius) !important; }

/* Forms */
.form-control {
  border-radius: 12px;
  border: 1px solid var(--muted);
}
.form-control:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 .2rem rgba(47,49,104,.15);
}

/* Tables */
.table thead th {
  border-bottom: 0;
  background: var(--muted-2);
  color: var(--primary);
}

/* Carousels */
.carousel-indicators li { background-color: var(--secondary); }
.carousel-indicators .active { background-color: var(--fourty); }

/* Chips */
.chip {
  display: inline-flex; align-items:center; gap:.5rem;
  padding:.35rem .75rem; border-radius:999px;
  background: var(--muted-2); color: var(--primary); font-weight:600;
}
.chip .icon { width:18px; height:18px; opacity:.8; }



/* ===== Enhanced design system (mobile-first) ===== */

/* Fluid type scale */
:root {
  --step--1: clamp(0.83rem, 0.78rem + 0.21vw, 0.94rem);
  --step-0: clamp(1.00rem, 0.92rem + 0.39vw, 1.13rem);
  --step-1: clamp(1.20rem, 1.08rem + 0.60vw, 1.35rem);
  --step-2: clamp(1.44rem, 1.27rem + 0.86vw, 1.62rem);
  --step-3: clamp(1.73rem, 1.49rem + 1.17vw, 1.94rem);
  --step-4: clamp(2.07rem, 1.74rem + 1.56vw, 2.33rem);
}

/* Spacing scale */
:root {
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
}

/* Mobile tap targets */
:root {
  --tap-min: 44px;
}

/* Dark mode removed as requested */
.navbar { background: linear-gradient(180deg, var(--astronaut-900), #0f1025); }
  footer { background: #0f1025; }


/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Typography */
h1, .h1 { font-size: var(--step-4); line-height: 1.15; }
h2, .h2 { font-size: var(--step-3); line-height: 1.2; }
h3, .h3 { font-size: var(--step-2); line-height: 1.25; }
h4, .h4 { font-size: var(--step-1); }
small, .small { font-size: var(--step--1); }

/* Container padding */
.container, .container-fluid { padding-left: var(--space-3); padding-right: var(--space-3); }

/* Sticky navbar with blur */
.navbar {
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--muted);
}
.navbar .nav-link {
  padding: .75rem .9rem;
  line-height: 1.2;
  border-radius: .6rem;
}
.navbar .nav-link:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* Active/hover underline effect */
.navbar .nav-link { position: relative; }
.navbar .nav-link::after {
  content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .35rem;
  height: 2px; background: currentColor; border-radius: 2px; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .2s ease;
  opacity: .6;
}
.navbar .nav-link:hover::after, .navbar .nav-item.show .nav-link::after { transform: scaleX(1); }

/* Hero section (optional utility) */
.hero.modern {
  position: relative;
  padding: var(--space-6) 0;
  background:
    radial-gradient(800px 400px at 0% -10%, color-mix(in oklab, var(--secondary), white 18%), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--muted-2));
}
.hero.modern .lead { color: color-mix(in oklab, var(--text), white 12%); max-width: 60ch; }
.hero.modern .cta { gap: .75rem; display: flex; flex-wrap: wrap; }

/* Buttons */
.btn { min-height: var(--tap-min); }
.btn-primary { transition: transform .08s ease; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: transparent; color: var(--fourty);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: var(--radius);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); }

/* Cards with modern look */
.card {
  background: linear-gradient(180deg, #ffffff, #fbfbfe);
}

.card .card-title { color: var(--primary); font-weight: 700; }
.card .card-text { color: color-mix(in oklab, var(--text), black 10%); }
.card .badge-soft { margin-top: .25rem; }

/* Image ratios */
.ratio { position: relative; width: 100%; }
.ratio::before { content:""; display:block; padding-top: var(--ratio, 56.25%); } /* default 16:9 */
.ratio > * { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius: inherit; }

/* Shadows */
.shadow-hover { transition: box-shadow .2s ease, transform .2s ease; }
.shadow-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Section dividers */
.section.has-divider { position: relative; }
.section.has-divider::after {
  content:""; position:absolute; left:0; right:0; bottom:0; height:1px;
  background: linear-gradient(90deg, transparent, var(--muted), transparent);
}

/* Forms: improved fields */
.form-control { padding: .7rem .9rem; }
.form-control::placeholder { color: #8b8daa; }
.form-control:focus { outline: none; }

/* Tables: responsive */
.table-responsive { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.table td, .table th { vertical-align: middle; }

/* Carousel dots larger for mobile */
.carousel-indicators li {
  width: 10px; height: 10px; border-radius: 50%;
}

/* Footer spacing */
footer .container { padding-top: var(--space-5); padding-bottom: var(--space-5); }

/* Utilities */
.max-w-prose { max-width: 65ch; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.rounded-xl { border-radius: 18px; }
.blur-bg { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.gradient-text { background: linear-gradient(90deg, var(--secondary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Mobile-first grid helpers */
.grid-auto { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 768px) {
  .grid-auto { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .grid-auto { grid-template-columns: repeat(3, 1fr); }
}



/* ===== Accessibility and Interaction Enhancements (Light-only) ===== */
:root {
  --focus-ring: 3px solid color-mix(in oklab, var(--secondary), white 15%);
  --focus-offset: 2px;
}

/* Global focus ring */
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  box-shadow: none !important;
}

/* Larger tap targets for nav links on mobile */
@media (max-width: 991.98px) {
  .navbar .nav-link { padding-top: .9rem; padding-bottom: .9rem; }
}

/* Hero video/image pattern (light only) */
.hero.media {
  position: relative;
  padding: clamp(3rem, 5vw, 6rem) 0;
  background:
    radial-gradient(900px 420px at 0% -10%, color-mix(in oklab, var(--secondary), white 22%), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--muted-2));
  overflow: hidden;
  border-bottom: 1px solid var(--muted);
}
.hero.media .media-bg {
  position: absolute; inset: 0;
  filter: saturate(110%) contrast(102%) brightness(96%);
  opacity: .25;
}
.hero.media .media-bg video,
.hero.media .media-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero.media .container { position: relative; }
.hero.media .lead { max-width: 65ch; color: color-mix(in oklab, var(--text), black 12%); }
.hero.media .cta { gap: .75rem; display:flex; flex-wrap:wrap; }

/* Understated section headers ("kicker") */
.kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  font-size: .78rem;
  color: color-mix(in oklab, var(--primary), black 12%);
  display: inline-block;
  margin-bottom: .25rem;
}

/* Mini dividers for long pages */
.divider-soft {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--muted), transparent);
  margin: var(--space-5) 0;
}


/**adaptador 28092025 */

/* estilo y rotación del <i> si usas la alternativa con HTML */
.navbar .nav-caret {
  font-size: .8rem;
  margin-left: .25rem;
  transition: transform .20s ease, opacity .20s ease;
  opacity: .9;
}
.navbar .nav-item.show > .nav-link .nav-caret,
.navbar .dropdown-toggle[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}
