/* =========================================
   COLEGIO OLIVERIO CROMWELL
   BOLSA DE TRABAJO
   ========================================= */

/* CONFIGURACIÓN GENERAL */

.bolsa-page {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  font-family: 'Inter', Arial, sans-serif;
  color: #ffffff;

  background: linear-gradient(
    270deg,
    rgb(155, 36, 62),
    rgb(85, 0, 100),
    rgb(0, 57, 166),
    rgb(85, 0, 100),
    rgb(155, 36, 62)
  );

  background-size: 600% 600%;
  animation: bolsaGradient 20s ease infinite;

  display: flex;
  flex-direction: column;
}

.bolsa-page *,
.bolsa-page *::before,
.bolsa-page *::after {
  box-sizing: border-box;
}

@keyframes bolsaGradient {
  0%, 100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* =========================================
   ENCABEZADO Y LOGOTIPO
   ========================================= */

.bolsa-site-top {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 22px 30px;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;

  position: relative;
  z-index: 100;
}

.bolsa-logo-link {
  display: inline-flex;
  flex-shrink: 0;
}

.bolsa-header-logo {
  width: auto;
  height: 90px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* =========================================
   NAVEGACIÓN
   ========================================= */

.bolsa-page .main-nav {
  position: relative;
  z-index: 100;
}

.bolsa-page .nav-menu,
.bolsa-page .nav-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bolsa-page .nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.bolsa-page .nav-menu li {
  position: relative;
}

.bolsa-page .nav-menu a {
  display: block;
  padding: 12px 3px;

  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
}

.bolsa-page .nav-menu a:hover,
.bolsa-page .nav-menu a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* SUBMENÚS */

.bolsa-page .dropdown-content,
.bolsa-page .nested-content {
  display: none;
  position: absolute;

  min-width: 210px;
  background: #180b61;

  padding: 8px 0 !important;
  border-radius: 8px;

  box-shadow: 0 8px 16px #0003;
  z-index: 110;
}

.bolsa-page .dropdown-content {
  top: 100%;
  left: 0;
}

.bolsa-page .nested-content {
  top: 0;
  left: 100%;
}

.bolsa-page .dropdown-content a,
.bolsa-page .nested-content a {
  padding: 10px 16px;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .bolsa-page .nav-menu > li:hover > .dropdown-content,
  .bolsa-page .nav-menu > li:focus-within > .dropdown-content,
  .bolsa-page .nested-dropdown:hover > .nested-content,
  .bolsa-page .nested-dropdown:focus-within > .nested-content {
    display: block;
  }
}

/* MENÚ HAMBURGUESA */

.bolsa-page .nav-header {
  display: none;
}

.bolsa-page .hamburger {
  border: none;
  background: transparent;

  color: #ffffff;
  font-size: 30px;

  cursor: pointer;
  padding: 8px 12px;
}

/* =========================================
   CONTENIDO PRINCIPAL
   ========================================= */

.bolsa-main {
  width: 100%;
  max-width: 1100px;

  margin: 0 auto;
  padding: 35px 20px 65px;

  flex: 1;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* TÍTULO */

.bolsa-header {
  text-align: center;
  margin-bottom: 35px;
}

.bolsa-header h1 {
  margin: 0;

  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

/* =========================================
   TARJETA DE BOLSA DE TRABAJO
   ========================================= */

.bolsa-card {
  width: 100%;
  max-width: 650px;

  padding: 45px 45px;

  background: #ffffff;
  color: #333333;

  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);

  text-align: center;
}

/* ICONO */

.bolsa-icono {
  width: 75px;
  height: 75px;

  margin: 0 auto 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #f7e9ee;
  border-radius: 50%;

  font-size: 35px;
}

/* TÍTULO INTERIOR */

.bolsa-card h2 {
  margin: 0 0 22px;

  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;

  color: #202044;
}

/* PÁRRAFOS */

.bolsa-card p {
  margin: 0 auto 20px;

  max-width: 500px;

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

  color: #555555;
}

/* =========================================
   INFORMACIÓN DE CONTACTO
   ========================================= */

.bolsa-contacto {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 16px;
  margin: 30px auto;
}

.bolsa-contacto-link {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  width: 100%;
  max-width: 450px;

  padding: 15px 20px;

  background: #f7f7fa;
  border: 1px solid #e6e6ee;
  border-radius: 10px;

  color: #202044;
  font-size: 16px;
  font-weight: 600;

  text-decoration: none;
  overflow-wrap: anywhere;

  transition:
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.bolsa-contacto-link span:first-child {
  font-size: 23px;
  color: #9b243e;
  flex-shrink: 0;
}

.bolsa-contacto-link:hover {
  background: #f7e9ee;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px #0001;
}

.bolsa-contacto-link:focus-visible {
  outline: 3px solid #9b243e;
  outline-offset: 3px;
}

/* MENSAJE FINAL */

.bolsa-card .bolsa-mensaje-final {
  margin-top: 30px;
  margin-bottom: 0;

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

  color: #9b243e;
}

/* =========================================
   WHATSAPP
   ========================================= */

.bolsa-whatsapp-bubble {
  position: fixed;

  left: 30px;
  bottom: 30px;

  width: 65px;
  height: 65px;

  background: #25d366;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 4px 8px #0003;

  z-index: 900;

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

.bolsa-whatsapp-bubble a {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.bolsa-whatsapp-bubble img {
  width: 45px;
  height: 45px;
}

.bolsa-whatsapp-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 12px #0005;
}

/* =========================================
   AVISO DE PRIVACIDAD
   ========================================= */

.bolsa-aviso-privacidad {
  text-align: center;

  font-size: 0.9rem;

  margin: 0 auto 24px;
  padding: 12px 20px;
}

.bolsa-aviso-privacidad a {
  color: #ffffff;
  text-decoration: underline;
}

.bolsa-aviso-privacidad a:hover {
  color: #d9e4ff;
}

/* =========================================
   RESPONSIVE - TABLET Y MÓVIL
   ========================================= */

@media (max-width: 768px) {

  .bolsa-site-top {
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .bolsa-header-logo {
    height: 65px;
  }

  .bolsa-page .main-nav {
    margin-left: auto;
  }

  .bolsa-page .nav-header {
    display: block;
  }

  .bolsa-page .nav-menu {
    display: none;

    position: absolute;
    right: 0;
    top: calc(100% + 12px);

    width: min(90vw, 360px);
    max-height: 75vh;

    overflow-y: auto;

    flex-direction: column;
    align-items: stretch;
    gap: 0;

    padding: 8px 0;

    background: #180b61;
    border-radius: 10px;

    box-shadow: 0 10px 24px #0005;
  }

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

  .bolsa-page .nav-menu > li {
    width: 100%;
  }

  .bolsa-page .nav-menu a {
    padding: 13px 20px;
  }

  .bolsa-page .dropdown-content,
  .bolsa-page .nested-content {
    display: none;
    position: static;

    min-width: 0;
    width: 100%;

    border-radius: 0;
    box-shadow: none;

    padding: 0 !important;

    background: #271675;
  }

  .bolsa-page .nested-content {
    background: #352389;
  }

  .bolsa-page .nav-menu li.submenu-open > .dropdown-content,
  .bolsa-page .nav-menu li.submenu-open > .nested-content {
    display: block;
  }

  .bolsa-page .dropdown-content a {
    padding-left: 32px;
    white-space: normal;
  }

  .bolsa-page .nested-content a {
    padding-left: 45px;
    white-space: normal;
  }

  .bolsa-main {
    padding: 35px 18px 50px;
  }

  .bolsa-header {
    margin-bottom: 28px;
  }

  .bolsa-card {
    padding: 35px 25px;
  }

  .bolsa-whatsapp-bubble {
    width: 55px;
    height: 55px;

    left: 15px;
    bottom: 18px;
  }

  .bolsa-whatsapp-bubble img {
    width: 36px;
    height: 36px;
  }
}

/* =========================================
   RESPONSIVE - CELULARES PEQUEÑOS
   ========================================= */

@media (max-width: 480px) {

  .bolsa-header-logo {
    height: 56px;
  }

  .bolsa-header h1 {
    font-size: 1.8rem;
  }

  .bolsa-card {
    padding: 30px 20px;
    border-radius: 14px;
  }

  .bolsa-card h2 {
    font-size: 1.5rem;
  }

  .bolsa-card p {
    font-size: 15px;
  }

  .bolsa-contacto-link {
    font-size: 14px;
    padding: 14px 12px;
  }

  .bolsa-icono {
    width: 65px;
    height: 65px;
    font-size: 30px;
  }
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {
  .bolsa-page {
    animation: none;
  }

  .bolsa-contacto-link,
  .bolsa-whatsapp-bubble {
    transition: none;
  }
}

/* V3: la barra de bolsa comparte la misma posición y apariencia */
.bolsa-site-top {display:contents!important;padding:0!important;margin:0!important;}
.bolsa-page .oc-nav {position:fixed!important;top:0!important;left:0!important;right:0!important;z-index:1900!important;}
.bolsa-page .bolsa-main {padding-top:24px!important;}
