@font-face {
  font-family: 'Roboto-Regular';
  src: url(fonts/Roboto-Regular.ttf);
}

@font-face {
  font-family: 'Roboto-Bold';
  src: url(fonts/Roboto-Bold.ttf);
}

@font-face {
  font-family: 'Montserrat-Regular';
  src: url(fonts/Roboto-Regular.ttf);
}

@font-face {
  font-family: 'Montserrat-Bold';
  src: url(fonts/Roboto-Bold.ttf);
}

@font-face {
  font-family: 'Roboto-Black';
  src: url(fonts/Roboto-Black.ttf);
}

@font-face {
  font-family: 'ideem-cursiva';
  src: url(fonts/times.ttf);
}

:root {
  --azul-bajo: #006AB5;
  --azul-fuerte: #002A56;
  --azul-botones: #0092CD;
  --dorado: #CAB881;
  --blanco: #fff;
  --negro: #000;
  --gris: #f3f5f8;
  --bullet-img: url('https://ik.imagekit.io/dn8iw9heh/IDEEM/ICONOS/Mesa%20de%20trabajo%201%20(1).png?updatedAt=1762184054996');
  --bullet-size: 16px;
  --bullet-gap: 0.6rem;
}

/*/Primera fila barra*/
@media (min-width: 1000px) {
  .px-md-7 {
    padding-left: 7rem !important;
    padding-right: 7.7rem !important;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;

  }
}

.segundo-titulo {
  font-family: 'Roboto-Black';
  font-size: 2rem;
  color: var(--blanco);
}


@media (max-width: 991.98px) {
  .navbar {
    background-color: var(--azul-fuerte) !important;
    /* móvil azul */
    padding: 10px 0;
  }

  .navbar>.container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-link,
  .nav-link:focus,
  .nav-link:hover {
    color: var(--blanco) !important;
  }
}

/* ===== Navbar base (FULL WIDTH dorado en desktop) ===== */
.navbar {
  background-color: var(--dorado);
  /* franja dorada a 100% */
  padding: 10px 0;
  /* alto consistente */
}

.navbar>.container {
  background: transparent;
  /* el dorado vive en .navbar, no en el container */
}

.navbar-toggler {
  border-color: var(--dorado) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,<svg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'><path stroke='%23CAB881' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/></svg>");
}

/* Enlaces */
.nav-link {
  font-family: 'Roboto-Bold';
  font-size: 0.9rem;
  color: var(--azul-fuerte);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--azul-fuerte);
}

/* Separación entre items */
.navbar-nav .nav-item:not(:last-child) {
  margin-right: 0.8rem;
}

/* Color texto collapse (no afecta links) */
.navbar-collapse {
  color: var(--blanco);
}

/* Centrar los enlaces del navbar dentro de la franja (desktop) */
@media (min-width: 992px) {
  .navbar .navbar-collapse {
    justify-content: center;
  }

  .navbar-nav.ms-auto {
    margin-left: 22rem !important;
    margin-right: 0 !important;
  }
}

/* ===== Dropdown (no tocar) ===== */
.dropdown-hover:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}

.dropdown-menu {
  width: 82vw;
  padding: 5%;
  width: 100%;
  margin-top: 1rem !important;
  margin-left: 1rem !important;
  padding: 1.5rem;
  border-top: 1px solid #dee2e6;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
}



.dropdown-header {
  font-family: 'Roboto-Bold';
  color: black;
  font-size: 1.2rem;
}

.dropdown-item {
  font-family: 'Roboto-Regular';
  font-size: 0.9rem;
}

.dropdown-item.ver-mas {
  font-weight: bold;
  color: #007bff;
  margin-bottom: 0.5rem;
}

/* ===== Footer ===== */
.categoria-footer {
  font-size: 1rem;
  font-family: 'Roboto-Regular';
}

.contenido-footer {
  font-size: 0.9rem;
  font-family: 'Roboto-Regular';
}

.footer-bg {
  background-image: url('https://res.cloudinary.com/dwvatbtfk/image/upload/v1753714987/BGFooter_l1k4uk.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #002855;
  padding-left: 1.9%;
}

.footer-copy {
  background-color: var(--azul-fuerte);
  color: #ffffff;
  font-size: 0.9rem;
  font-family: 'Roboto-Regular';
}

/* ===== Dropdown responsive ===== */
@media (max-width: 991.98px) {
  .dropdown-menu {
    width: 82vw !important;
    left: 0 !important;
    right: 0 !important;
    min-width: unset;
    overflow-x: auto;
    padding: 1rem;
    box-sizing: border-box;
    height: auto;
    border-radius: 0 0 10px 10px;
    margin-left: 1.5rem;

  }

  .dropdown-contenedor {
    margin-left: -1.7rem;
  }

  .navbar-collapse {
    padding: 0;
  }

  .dropdown-menu .row {
    flex-wrap: wrap;
  }

  .dropdown-menu .col-12 {
    min-width: 0;
    word-break: break-word;
    white-space: normal;
  }

  .dropdown-item {
    white-space: normal;
    word-break: break-word;
  }

  .alineacion {
    text-align: center;
  }
}

/* Asegura que quede por encima del contenido al hacer scroll */
#mainNav {
  z-index: 1040;
}


@media (min-width: 992px) {
  #mainNav .dropdown.position-static .dropdown-menu {
    left: 0;
    right: 0;
  }

  .dropdown-menu[aria-labelledby="quienesDropdown"] {
    width: 36rem;
    max-width: 48vw;
    padding: 1.2rem;
    left: 40%;
    right: auto;
    transform: translateX(58%);
    margin-left: 0;
  }
}

/* =========================================================
   AJUSTES DE CENTRADO DEL TÍTULO SUPERIOR
   ========================================================= */
@media (min-width: 1240px) {
  .primera-fila .row {
    position: relative;
  }

  .primera-fila .segundo-titulo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1;
    max-width: calc(100% - 2rem);
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
}

@media (min-width: 1000px) {
  .px-md-7 {
    padding-left: 7.5rem !important;
    padding-right: 7.5rem !important;
  }
}


#mainNav.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1051;
  isolation: isolate;
}

#mainNav {
  transform: translateZ(0);
  transition: box-shadow 160ms ease;
}

#nav-spacer {
  height: 0;
}


@media (max-width: 991.98px) {
  #mainNav .navbar-collapse {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}


html,
body {
  margin: 0;
}

.fuente {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto-Bold";
  font-size: 2rem;
  color: var(--azul-fuerte);
  text-align: justify;
  gap: 1em;
}

.fuente::before,
.fuente::after {
  content: "";
  display: block;
  height: 2px;
  background: #000;
  margin: 0 0.5em;
  flex: 0 0 1;
  flex-basis: 0;
  transition: flex-basis 1s cubic-bezier(.77, 0, .18, 1);
}

.fuente span {
  white-space: nowrap;
}

@media (max-width: 576px) {
  .fuente {
    font-size: 1.2rem;
  }

  .fuente.linea-activa::before,
  .fuente.linea-activa::after {
    flex-basis: 30px;
  }
}

.fuente:not(.linea-activa)::before,
.fuente:not(.linea-activa)::after {
  flex-basis: 0 !important;
  background: transparent;
}

.fuente.linea-activa::before,
.fuente.linea-activa::after {
  flex-basis: 200px;
  background: #000;
}

@media (max-width: 576px) {
  .fuente {
    font-size: 1.2rem;
  }

  .fuente.linea-activa::before,
  .fuente.linea-activa::after {
    flex-basis: 15px;
  }
}


/* ============================ FOOTER ============================ */
.site-footer {
  background: var(--azul-fuerte);
  color: white;
  padding-top: 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr 1fr 1fr;
  gap: 2rem;
}

.footer-column-title {
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.footer-logo-block img {
  max-width: 250px;
  height: auto;
}

.footer-logo-block p {
  font-size: 0.85rem;
  max-width: 240px;
  opacity: 0.85;
}

/* LISTAS DEL FOOTER CON VIÑETA IMAGEN */
.footer-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 0.9rem;
}

.footer-list li {
  margin-bottom: 0.35rem;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.footer-bullet {
  width: 20px;
  height: 20px;

  flex-shrink: 0;
}

.footer-list li a {
  color: var(--blanco);
  opacity: 0.9;
}

.footer-list li a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-phones-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.footer-phones-list li {
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-phones-list i {
  width: 18px;
  text-align: center;
}

/* Enlaces de teléfonos en blanco */
.footer-phones-list a {
  color: var(--blanco);
  opacity: 0.9;
}

.footer-phones-list a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-email {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-email i {
  width: 18px;
  text-align: center;
}

/* Redes sociales */
.footer-social-row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
}

.footer-social-text {
  font-size: 0.9rem;
  font-weight: 600;
  width: 100%;
  text-align: center;
}

.footer-social-icons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  font-size: 1.3rem;
}

.footer-social-icons a {
  color: var(--blanco);
  opacity: 0.9;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.footer-social-icons a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Copyright */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 0.8rem;
  font-size: 0.8rem;
  text-align: center;
  opacity: 0.85;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    justify-self: flex-start;
  }

  .hero {
    padding-bottom: 3rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .info-blocks {
    grid-template-columns: 1fr;
  }

  .footer-list,
  .footer-phones-list {
    padding-left: 1rem;
  }

  .footer-column-title,
  .footer-social-text,
  .footer-social-icons {
    padding-left: 1rem;
  }

  .footer-list li,
  .footer-phones-list li {
    justify-content: flex-start;
    text-align: left;
  }

  .footer-list li a,
  .footer-phones-list a {
    white-space: normal;
    word-break: break-word;
  }

  .footer-social-row {
    justify-content: flex-start;
    text-align: left;
  }

  .footer-social-text {
    text-align: left;
  }

  .footer-social-icons {
    justify-content: flex-start;
  }

  .footer-bottom {
    text-align: left;
    padding-left: 1rem;
  }


}

@media (min-width: 768px) and (max-width: 1280px) {
  .ideem-logo {
    padding-left: 0;
    padding-right: 0;
  }

  .navbar .navbar-brand:first-child {
    margin-left: 0;
  }

  .segunda-columna .navbar-brand {
    margin-right: 0;
  }

  .navbar>.container {
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }

  .segundo-titulo {
    font-size: 1.7rem;
    line-height: 1.2;
    text-align: center;
  }

}