@import url("colors.css");
@import url("heroe.css");
@font-face {
    font-family: 'RocheSans';
    src: url('../fonts/RocheSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
  }
  @font-face {
    font-family: 'RocheSans';
    src: url('../fonts/RocheSans-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
  }
/* Tipografía y fondo global */
html,
body {
    width: 100%;
    overflow-x: clip; /* clip evita scroll horizontal sin crear BFC — no rompe position: sticky */
}

body {
    font-family: "RocheSans", sans-serif;
    background-color: #f3efe9;
    color: #706b69;
}
@keyframes scroll_1 {
  0%   { transform: translateY(0); }
  25%  { transform: translateY(-0.6em); }
  50%  { transform: translateY(0); }
  75%  { transform: translateY(0.6em); }
  100% { transform: translateY(0); }
}
.scroll-icon__wheel-outer {
  display: block;
  position: absolute;
  left: 50%;
  top: .6em;
  height: 1em;
  width: .4em;
  margin-left: -.2em;
  border-radius: .4em;
  overflow: hidden;
}
.scroll-icon__wheel-inner {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--grey-100);
  animation: scroll_1 2.75s ease-in-out infinite;
}
.scroll-icon__dot {
  display: block;
  position: absolute;
  left: 50%;
  background: var(--grey-100);
  height: .5em;
  width: .5em;
  top: .6em;
  margin-left: -.25em;
  border-radius: 50%;
  transform-origin: top center;
  backface-visibility: hidden;
  animation: scroll_2 2s ease-out infinite;
}
.scroll-icon {
  display: block;
  position: relative;
  height: 3em;
  width: 1.5em;
  border: .25em solid var(--grey-100);
  border-radius: 1em;
}

 /* Botón con flecha para enlaces <a> */
.css-button-arrow--sky {
    height: 40px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex; /* Para alinear el texto con la flecha */
    justify-content: center;
    align-items: center;
    outline: none;
    overflow: hidden;
    border: none;
    background-color: var(--blue-bright-300);
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
}
/* Efecto hover con desplazamiento de flecha */
.css-button-arrow--sky:hover {
    padding-right: 30px; /* Espacio extra para la flecha */
    padding-left: 15px;
}
/* Flecha que aparece al pasar el mouse */
.css-button-arrow--sky::after {
    content: "\00BB"; /* Símbolo de doble ángulo (» como flecha) */
    position: absolute;
    opacity: 0;
    font-size: 20px;
    top: 50%;
    transform: translateY(-50%);
    right: -20px;
    transition: 0.4s;
}
/* Flecha se mueve y aparece en hover */
.css-button-arrow--sky:hover::after {
    opacity: 1;
    right: 10px;
}
#list-example .list-group-item.active {
  background-color: var(--orange);     /* Color del borde, si lo tiene */
  border-color: var(--orange);
}
/* Restaurar bullets y números en listas usando Bootstrap */
.scrollspy-example ul,
.scrollspy-example ol {
    padding-left: 1.5rem !important;
    list-style: initial !important;
}

.scrollspy-example ol {
    list-style: decimal !important; /* Asegura números visibles */
}

.scrollspy-example ul {
    list-style: disc !important; /* Asegura viñetas visibles */
}

.scrollspy-example ul li,
.scrollspy-example ol li {
    display: list-item !important;
    margin-bottom: 10px !important; /* Para mejor legibilidad */
}

/* Evita overflow horizontal por URLs largas */
.scrollspy-example,
.scrollspy-example p,
.scrollspy-example a,
.scrollspy-example small {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.convocatoria-page .convocatoria-sidebar,
.convocatoria-page .convocatoria-content-col {
  padding-top: clamp(3rem, 7vw, 6.5rem);
  padding-bottom: clamp(3rem, 7vw, 6.5rem);
}

.convocatoria-page,
.convocatoria-page .container,
.convocatoria-page .row {
  overflow: visible;
}

.convocatoria-page .convocatoria-sidebar {
  z-index: 5;
  overflow: visible;
}

.convocatoria-page .convocatoria-sticky {
  position: -webkit-sticky;
  position: sticky;
  top: calc(var(--convocatoria-offset, 112px) + 0.5rem);
  width: 100%;
  overflow: visible;
}

.convocatoria-page .convocatoria-cta {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.convocatoria-page .convocatoria-cta::after {
  content: none !important;
}

.convocatoria-page .convocatoria-cta:hover {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  box-shadow: 0 8px 20px rgba(1, 35, 102, 0.22);
  transform: translateY(-1px);
}

.convocatoria-page .convocatoria-cta:active {
  transform: translateY(0);
}

.convocatoria-page .convocatoria-content [id] {
  scroll-margin-top: calc(var(--convocatoria-offset, 112px) + 0.5rem);
}

.convocatoria-page .convocatoria-nav-link {
  transition: background-color 0.2s ease, color 0.2s ease;
}
.img-logo {
  max-width: 100px;   /* puedes ajustar este valor según tu diseño */
  height: auto;
  object-fit: contain;
}
.img-logo-amfem {
  max-width: 200px;   /* puedes ajustar este valor según tu diseño */
  height: auto;
  object-fit: contain;
}

.banner-9grid{
  background:
    url('../img/top-hd.jpg')    top    center no-repeat,
    url('../img/fill-hd.jpg')   top    center repeat-y,
    url('../img/bottom-hd.jpg') bottom center no-repeat;
  background-size:
    100% auto,       /* top: full width, sin distorsión vertical */
    100% 396px,      /* fill: ancho completo, ALTO ENTERO y repetido en Y */
    100% auto;       /* bottom */
  background-color: #f7efe5; /* opcional: color cercano al fill para disimular */

   background-repeat: no-repeat, repeat-y, no-repeat;
  background-position: top center, top center, bottom center;

    padding-top: clamp(120px, 16vw, 240px);     /* aprox. alto visual del top */
  padding-bottom: clamp(120px, 16vw, 240px);  /* aprox. alto visual del bottom */
}

@media (max-width: 767.98px) {
  .img-logo {
    max-height: 40px;   /* puedes ajustar este valor según tu diseño */
    height: auto;
    object-fit: contain;
  }
  .img-logo-amfem {
    max-height: 40px;   /* puedes ajustar este valor según tu diseño */
    height: auto;
    object-fit: contain;
  }
}

@media (max-width: 991.98px) {
  .banner-9grid {
    overflow-x: hidden;
  }

  .banner-9grid.convocatoria-page {
    overflow: visible;
  }

  .banner-9grid #list-example,
  .banner-9grid .list-group,
  .banner-9grid .list-group-item {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
  }

  .convocatoria-page .convocatoria-sidebar,
  .convocatoria-page .convocatoria-content-col {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .convocatoria-page .convocatoria-sticky {
    position: static;
    left: auto;
    width: 100%;
    max-height: none;
    overflow: visible;
  }
}
