:root {
  color-scheme: dark;
  --blue: #073c78;
  --blue-deep: #062c5a;
  --white: #fff;
  font-family: Montserrat, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { min-width: 320px; min-height: 100%; margin: 0; }

body { background: var(--blue-deep); color: var(--white); }

button, a { font: inherit; }

.landing { min-height: 100svh; }

.hero {
  position: relative;
  display: flex;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--blue);
}

.hero__slides, .hero__slide { position: absolute; inset: 0; }

.hero__slide {
  display: flex;
  align-items: center;
  padding: clamp(9rem, 17vh, 12rem) clamp(1.5rem, 10vw, 10rem) 8rem;
  background-image: linear-gradient(90deg, rgba(0, 39, 91, .91) 0%, rgba(0, 57, 121, .72) 50%, rgba(0, 51, 111, .5) 100%), linear-gradient(rgba(0, 61, 133, .25), rgba(0, 48, 108, .5)), var(--slide-image);
  background-position: center;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.025);
  transition: opacity 850ms ease, transform 6s ease, visibility 850ms;
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero__content { position: relative; z-index: 1; width: min(100%, 1050px); margin: 0 auto; }

.hero__eyebrow, .hero__location {
  margin: 0;
  font-size: clamp(.7rem, 1vw, .9rem);
  font-weight: 700;
  letter-spacing: .2em;
}

.hero__eyebrow { margin-bottom: 1.5rem; color: rgba(255,255,255,.82); }

.hero__content h1, .hero__content h2 {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(2.5rem, 6.1vw, 6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 25, 58, .2);
}

.hero__content h2 { font-size: clamp(2.1rem, 5vw, 5rem); }
.hero__location { margin-top: 1.6rem; color: rgba(255,255,255,.85); }

.join {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.7rem;
  padding: .95rem 1.25rem .95rem 1.45rem;
  border: 1px solid rgba(255,255,255,.82);
  background: transparent;
  color: var(--white);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
  cursor: pointer;
}

.join:hover { background: var(--white); color: var(--blue); }
.join__arrow { font-size: 1.4rem; font-weight: 400; line-height: .7; }

.brand {
  position: absolute;
  z-index: 3;
  top: clamp(1.25rem, 4vh, 3rem);
  left: clamp(1.5rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.brand__seals { display: flex; align-items: center; gap: .75rem; height: 54px; }
.brand__seals > img { display: block; width: 44px; height: 44px; object-fit: contain; }
.brand__seals > img:first-child { width: 48px; height: 48px; }
.brand__pj-mark { display: block; width: 52px; height: 56px; overflow: hidden; }
.brand__pj-mark img { display: block; width: 182px; max-width: none; height: auto; }
.brand__divider { width: 1px; height: 35px; background: rgba(255,255,255,.55); }
.brand p { margin: 0; font-size: .61rem; font-weight: 500; line-height: 1.55; letter-spacing: .14em; }
.brand strong { font-size: .68rem; font-weight: 700; }

.hero__controls {
  position: absolute;
  z-index: 3;
  right: clamp(1.5rem, 7vw, 7rem);
  bottom: clamp(2rem, 7vh, 5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.carousel-arrow, .dot { display: grid; place-items: center; border: 0; color: var(--white); background: transparent; cursor: pointer; }
.carousel-arrow { width: 34px; height: 34px; font-size: 2rem; line-height: 1; }
.carousel-arrow--prev { transform: rotate(180deg); }
.carousel-dots { display: flex; align-items: center; gap: .55rem; }
.dot { width: 9px; height: 9px; padding: 0; border: 1px solid rgba(255,255,255,.88); border-radius: 50%; transition: background .2s ease, transform .2s ease; }
.dot.is-active { background: var(--white); transform: scale(1.15); }

.socials {
  position: absolute;
  z-index: 3;
  bottom: clamp(2rem, 7vh, 5rem);
  left: clamp(1.5rem, 5vw, 5rem);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.socials__label { margin-right: .25rem; font-size: .62rem; font-weight: 700; letter-spacing: .17em; }
.socials__icon { display: grid; width: 26px; height: 26px; place-items: center; color: var(--white); opacity: .9; cursor: pointer; transition: opacity .2s ease, transform .2s ease; }
.socials__icon:hover { opacity: 1; transform: translateY(-2px); }
.socials svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.socials__icon:nth-of-type(2) svg, .socials__icon:nth-of-type(3) svg { fill: currentColor; stroke: none; }
.socials svg .fill { fill: currentColor; stroke: none; }
.site-address { position: absolute; z-index: 3; bottom: clamp(1rem, 3vh, 2rem); left: 50%; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; width: max-content; max-width: calc(100% - 3rem); margin: 0; transform: translateX(-50%); color: rgba(255,255,255,.82); font-size: .61rem; font-weight: 600; letter-spacing: .12em; text-align: center; text-decoration: none; }
.site-address:hover { color: var(--white); text-decoration: underline; text-underline-offset: .2em; }
.site-address svg { flex: 0 0 auto; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.hashtag { position: absolute; z-index: 3; top: clamp(1.7rem, 4vh, 3rem); right: clamp(1.5rem, 5vw, 5rem); margin: 0; font-size: clamp(.9rem, 1.3vw, 1.15rem); font-weight: 700; letter-spacing: .04em; }

@media (max-width: 640px) {
  .hero__slide {
    align-items: center;
    padding: 8rem 1.5rem 10rem;
    background-image: linear-gradient(90deg, rgba(0, 39, 91, .83), rgba(0, 57, 121, .61)), linear-gradient(rgba(0, 61, 133, .22), rgba(0, 48, 108, .53)), var(--slide-image);
    background-position: center;
  }
  .hero__content h1, .hero__content h2 { font-size: clamp(2.35rem, 11vw, 3.65rem); }
  .hero__content h2 br { display: none; }
  .hero__eyebrow { margin-bottom: 1.1rem; }
  .hero__location { font-size: .65rem; }
  .join { margin-top: 1.8rem; }
  .brand { gap: .75rem; }
  .brand__seals { gap: .5rem; }
  .brand__seals > img, .brand__seals > img:first-child { width: 36px; height: 40px; }
  .brand__pj-mark { width: 42px; height: 46px; }
  .brand__pj-mark img { width: 150px; }
  .brand p { font-size: .53rem; }
  .brand strong { font-size: .57rem; }
  .hashtag { top: auto; right: 1.5rem; bottom: 6.7rem; font-size: .85rem; }
  .socials { bottom: 4rem; gap: .8rem; }
  .site-address { bottom: 1.15rem; max-width: 70%; font-size: .48rem; line-height: 1.5; letter-spacing: .08em; }
  .site-address svg { width: 13px; height: 13px; }
  .socials__label { font-size: .56rem; }
  .hero__controls { right: 1.25rem; bottom: 4rem; gap: .45rem; }
  .carousel-arrow { width: 26px; }
}

.news { padding: clamp(3.5rem, 8vw, 7rem) clamp(1.5rem, 10vw, 10rem); background: #f3f5f8; color: #142c48; }
.news__inner { width: min(100%, 1200px); margin: 0 auto; }
.news__header { margin-bottom: 2.5rem; }
.news__eyebrow { margin: 0 0 .75rem; color: #56708d; font-size: .7rem; font-weight: 700; letter-spacing: .16em; }
.news__header h2 { margin: 0; color: #073c78; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; }
.news__header > p:last-child { margin: .75rem 0 0; color: #52657a; font-size: 1rem; }
.news__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.news__status { grid-column: 1 / -1; margin: 0; color: #52657a; }
.news-card { min-width: 0; overflow: hidden; background: #fff; box-shadow: 0 8px 28px rgba(14, 43, 77, .08); }
.news-card__image-link { display: block; cursor: pointer; }
.news-card__image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #d9e1ea; cursor: pointer; }
.news-card__body { padding: 1.25rem; }
.news-card__date { margin: 0 0 .65rem; color: #637992; font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.news-card__title { margin: 0; color: #073c78; font-size: 1.1rem; line-height: 1.35; }
.news-card__excerpt { display: -webkit-box; overflow: hidden; margin: .75rem 0 1rem; color: #4d5e70; font-size: .88rem; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.news-card__link { display: inline-flex; align-items: center; gap: .55rem; color: #073c78; font-size: .8rem; font-weight: 700; text-decoration: none; }
.news-card__link:hover, .news__all:hover { text-decoration: underline; }
.news__all { display: inline-flex; align-items: center; gap: .75rem; margin-top: 2rem; color: #073c78; font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; }

.join-modal { width: min(100% - 2rem, 560px); max-width: none; max-height: min(90svh, 900px); padding: 0; overflow: auto; border: 1px solid rgba(255,255,255,.3); background: transparent; color: var(--white); }
.join-modal::backdrop { background: rgba(2, 18, 42, .68); backdrop-filter: blur(4px); }
body.join-modal-open::before { position: fixed; z-index: 999; inset: 0; background: rgba(2, 18, 42, .68); content: ''; }
.join-modal--fallback[open] { position: fixed; z-index: 1000; inset: 50% auto auto 50%; display: block; margin: 0; transform: translate(-50%, -50%); box-shadow: 0 20px 70px rgba(0,0,0,.35); }
.join-modal__panel {
  position: relative;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  background-image:
    linear-gradient(90deg, rgba(0, 39, 91, .91) 0%, rgba(0, 57, 121, .72) 50%, rgba(0, 51, 111, .5) 100%),
    linear-gradient(rgba(0, 61, 133, .25), rgba(0, 48, 108, .5)),
    url('assets/destacado_d.jpg');
  background-position: center;
  background-size: cover;
}
.join-modal__close { position: absolute; top: .75rem; right: .9rem; display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: transparent; color: var(--white); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.join-modal__close:hover { background: var(--white); color: var(--blue); }
.join-modal__eyebrow { margin: 0 3rem .7rem 0; color: rgba(255,255,255,.78); font-size: .62rem; font-weight: 700; letter-spacing: .14em; }
.join-modal h2 { margin: 0; font-size: clamp(2rem, 6vw, 2.7rem); letter-spacing: -.035em; }
.join-modal__intro { margin: .55rem 0 1.5rem; color: rgba(255,255,255,.86); font-size: .9rem; }
.join-form { display: flex; flex-direction: column; }
.join-form > label:not(.join-form__consent) { margin: .75rem 0 .35rem; font-size: .78rem; font-weight: 600; }
.join-form > label span[aria-hidden="true"] { color: #ffd270; }
.join-form__optional { color: rgba(255,255,255,.65); font-size: .72rem; font-weight: 400; }
.join-form > input:not([type="checkbox"]) { width: 100%; min-height: 2.8rem; padding: .65rem .75rem; border: 1px solid rgba(255,255,255,.55); border-radius: 2px; outline: 0; background: rgba(255,255,255,.96); color: #142c48; font: inherit; font-size: .9rem; }
.join-form > input:focus { border-color: #ffd270; box-shadow: 0 0 0 3px rgba(255,210,112,.25); }
.join-form__help { margin: .45rem 0 .4rem; color: rgba(255,255,255,.72); font-size: .7rem; }
.join-form__consent { display: flex; align-items: flex-start; gap: .65rem; margin-top: 1.15rem; color: rgba(255,255,255,.9); font-size: .72rem; line-height: 1.55; cursor: pointer; }
.join-form__consent input { flex: 0 0 auto; width: 1rem; height: 1rem; margin: .1rem 0 0; accent-color: #ffd270; }
.join-form__website { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }
.join-form__status { min-height: 1.1rem; margin: .7rem 0 0; color: #ffd270; font-size: .78rem; }
.join-form__actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: .5rem; }
.join-form__actions button { min-height: 2.8rem; padding: .7rem 1rem; border: 1px solid rgba(255,255,255,.78); background: transparent; color: var(--white); font: inherit; font-size: .78rem; font-weight: 700; letter-spacing: .06em; cursor: pointer; }
.join-form__actions button:hover { background: var(--white); color: var(--blue); }
.join-form__submit { background: var(--white) !important; color: var(--blue) !important; }
.join-form__submit:hover { background: #e9f0f8 !important; }
.join-form__actions button:disabled { opacity: .65; cursor: wait; }
.join-modal[open] { animation: join-modal-in .2s ease-out; }
.join-modal--fallback[open] { animation: none; }
@keyframes join-modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 800px) {
  .news__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .news { padding: 3.5rem 1.25rem; }
  .news__header { margin-bottom: 1.75rem; }
  .news__grid { grid-template-columns: 1fr; gap: 1rem; }
  .news-card__body { padding: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .join-modal[open] { animation: none; }
}
