/* Portada audiovisual y bloque de contexto para la experiencia Costa Rica–Chile. */
.hero {
  position: relative;
  min-height: max(640px, calc(100svh - 74px));
  padding: clamp(28px, 5vh, 64px) clamp(22px, 5vw, 88px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 70% 30%, #24435a 0%, #102e4e 50%, #0d1c32 100%);
}
.hero-video-stage, .hero-shade { position: absolute; inset: 0; z-index: -1; }
.hero-video-stage { overflow: hidden; background: inherit; }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1.2s ease, transform 8s ease;
}
.hero-video.is-active { opacity: 1; transform: scale(1); }
.hero-shade {
  z-index: 0;
  background: linear-gradient(90deg, rgb(2 22 43 / 82%) 0%, rgb(3 27 52 / 64%) 39%, rgb(5 29 49 / 18%) 78%), linear-gradient(0deg, rgb(3 23 44 / 70%) 0%, transparent 66%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-width: 760px;
  margin: 0;
  padding: 0;
  text-align: left;
}
.hero h1 {
  max-width: 16ch;
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.04;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero-description {
  max-width: 54ch;
  margin: 18px 0 24px;
  color: rgb(255 255 255 / 87%);
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.55;
}
.hero .hero-actions { display: flex; align-items: center; gap: 14px; margin: 0; }
.hero .button { width: fit-content; min-height: 46px; padding: 12px 20px; background: rgb(255 255 255 / 17%); border: 1px solid rgb(255 255 255 / 24%); }
.hero .button:hover { background: rgb(255 255 255 / 27%); }
.hero-video-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgb(255 255 255 / 88%);
  font-size: 11px;
}
.hero-video-toggle:hover { border-color: rgb(255 255 255 / 22%); background: rgb(255 255 255 / 9%); }
.hero-video-toggle > span:first-child { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 16%); font-size: 11px; }
.hero-footnote { margin: 12px 0 0; color: rgb(255 255 255 / 67%); font: 10px/1.4 Arial, sans-serif; }


.experience { padding: clamp(48px, 7vw, 88px) clamp(22px, 5vw, 88px); background: #f8f9ff; }
.experience-inner { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 6vw, 84px); align-items: start; }
.experience .eyebrow { margin: 0 0 11px; color: #006a61; }
.experience-story h2 { max-width: 17ch; margin: 0 0 16px; font-size: clamp(27px, 3vw, 38px); line-height: 1.12; }
.experience-story > p:not(.eyebrow) { max-width: 58ch; margin: 0; color: #526071; font-size: 15px; line-height: 1.7; }
.experience-source { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: #173b37; font-size: 13px; font-weight: 700; text-underline-offset: 4px; }
.experience-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.experience-links > div { min-height: 103px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; padding: 14px 16px; border: 1px solid rgb(5 33 64 / 9%); border-radius: 12px; background: rgb(255 255 255 / 73%); color: #0d1c32; }
.experience-links > div > span { color: #537466; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.experience-links strong { font-size: 17px; }
.experience-links small { color: #736f5c; font: 11px/1.35 Arial, sans-serif; }

.internship-records { padding: clamp(48px, 7vw, 88px) clamp(22px, 5vw, 88px); background: #f8f9ff; color: #0d1c32; }
.records-heading { max-width: 760px; margin: 0 auto 28px; text-align: center; }
.records-heading .eyebrow { margin: 0 0 10px; color: #006a61; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.records-heading h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; }
.records-heading > p:last-child { margin: 12px 0 0; color: #526071; line-height: 1.6; }
.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.record-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(18px, 2.4vw, 28px); border: 1px solid rgb(5 33 64 / 11%); border-radius: 16px; background: rgb(255 255 255 / 82%); box-shadow: 0 12px 32px rgb(5 33 64 / 5%); }
.record-card-top { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: #45685d; font-size: 12px; }
.record-direction { font-weight: 700; }
.record-type { margin: 20px 0 7px; color: #537466; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.record-card h2 { margin: 0 0 10px; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; }
.record-card > p:not(.record-type) { margin: 0 0 18px; color: #526071; font-size: 14px; line-height: 1.65; }
.record-card > a { margin-top: auto; color: #173b37; font-size: 13px; font-weight: 700; text-underline-offset: 4px; }

@media (max-width: 767px) {
  .hero { min-height: max(690px, calc(100svh - 68px)); padding: 18px 16px 20px; }
  .hero-shade { background: linear-gradient(0deg, rgb(2 22 43 / 88%) 0%, rgb(3 27 52 / 62%) 57%, rgb(5 29 49 / 12%) 100%); }
  .hero-content { width: 100%; }
  .hero h1 { font-size: clamp(36px, 9vw, 52px); }
  .hero-description { margin: 14px 0 18px; font-size: 14px; }
  .experience-inner { grid-template-columns: 1fr; }
  .record-grid { grid-template-columns: 1fr; }
}
@media (max-width: 390px) {
  .hero { min-height: 700px; }
  .hero h1 { font-size: 35px; }
  .hero .button { padding-inline: 16px; font-size: 12px; }
  .experience-links { grid-template-columns: 1fr 1fr; }
  .experience-links > div { min-height: 96px; padding: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero { background: linear-gradient(140deg, #24435a, #0d1c32 78%); }
  .hero-video { transition: none; }
}

/* Presentación del archivo de pasantías. */
.internship-page { background: #f8f9ff; }
.internship-records { position: relative; overflow: hidden; padding-block: clamp(64px, 8vw, 108px); background: radial-gradient(ellipse at 92% 8%, rgb(190 221 198 / 44%), transparent 34%), linear-gradient(180deg, #f1f0e5 0%, #f8f6ec 54%, #f8f9ff 100%); }
.internship-records::before { position: absolute; top: 155px; right: -90px; width: 300px; height: 300px; border: 1px solid rgb(53 105 83 / 10%); border-radius: 50%; content: ""; pointer-events: none; }
.internship-records > .section-inner { position: relative; z-index: 1; max-width: 1180px; }
.records-heading { max-width: 760px; margin: 0 0 34px; text-align: left; }
.records-heading .eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 7px 11px; border: 1px solid rgb(53 105 83 / 14%); border-radius: 99px; background: rgb(255 255 255 / 65%); }
.records-heading .eyebrow::before { width: 7px; height: 7px; border-radius: 50%; background: #55a47b; content: ""; }
.records-heading h1 { max-width: 16ch; font-size: clamp(36px, 5vw, 58px); letter-spacing: -.035em; }
.records-heading > p:last-child { max-width: 58ch; margin-top: 14px; font-size: 16px; }
.record-grid { align-items: stretch; gap: 18px; }
.record-card { position: relative; overflow: hidden; min-height: 440px; display: flex; flex-direction: column; border: 1px solid rgb(5 33 64 / 9%); border-radius: 20px; background: linear-gradient(150deg, #fff 0%, #fff 70%, #f4f5eb 100%); box-shadow: 0 14px 35px rgb(5 33 64 / 6%); transition: transform .2s ease, box-shadow .2s ease; }
.record-card::before { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, #55a47b, #c4dfc7 62%, transparent); content: ""; }
.record-card:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgb(5 33 64 / 11%); }
.record-image { position: relative; overflow: hidden; width: 100%; aspect-ratio: 2.05; margin: 0; background: #dce6df; }
.record-image::after { position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgb(2 22 43 / 70%)); content: ""; pointer-events: none; }
.record-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.record-card:hover .record-image img { transform: scale(1.035); }
.record-image figcaption { position: absolute; z-index: 1; bottom: 12px; left: 16px; color: white; font-size: 11px; font-weight: 700; }
.record-image.record-image--contain { aspect-ratio: 3 / 1; background: #f3f5f2; }
.record-image--contain::after { display: none; }
.record-image--contain img { object-fit: contain; }
.record-card:hover .record-image--contain img { transform: none; }
.record-image--contain figcaption { bottom: 8px; left: 10px; padding: 4px 8px; border-radius: 999px; background: rgb(2 22 43 / 76%); }
.record-image.record-image--natural { aspect-ratio: auto; background: #f3f5f2; }
.record-image--natural::after { display: none; }
.record-image--natural img { width: auto; max-width: 100%; max-height: 420px; height: auto; margin-inline: auto; object-fit: contain; }
.record-card:hover .record-image--natural img { transform: none; }
.record-image--natural figcaption { bottom: 8px; left: 10px; padding: 4px 8px; border-radius: 999px; background: rgb(2 22 43 / 76%); }
.record-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(20px, 2.6vw, 28px); }
.record-card-top { align-items: center; color: #426759; }
.record-direction { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid rgb(53 105 83 / 14%); border-radius: 999px; background: #edf5ed; font-size: 11px; }
.record-direction > span { color: #438469; font-size: 15px; }
.record-card time { color: #526071; font-size: 11px; }
.record-type { margin-top: 24px; }
.record-card h2 { max-width: 28ch; font-size: clamp(22px, 2.4vw, 29px); letter-spacing: -.02em; }
.record-body > p:not(.record-type) { margin-bottom: 18px; font-size: 14px; }
.record-body > a { display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgb(5 33 64 / 9%); }
.internship-page .community { padding-block: clamp(64px, 8vw, 108px); background: #f8f9ff; }
.internship-page .community-heading { max-width: 760px; margin: 0 0 32px; text-align: left; }
.internship-page .community-heading h2 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.025em; }
.internship-page .community-heading > p:last-child { max-width: 62ch; color: #526071; font-size: 15px; font-weight: 400; }
.internship-page .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0; background: transparent; }
.internship-page .country-card { padding: 16px; border: 1px solid rgb(5 33 64 / 9%); border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgb(5 33 64 / 5%); }
.internship-page .country-heading { min-height: 54px; }
.internship-page .country-code { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgb(53 105 83 / 12%); border-radius: 12px; background: #edf5ed; color: #315d52; font-size: 13px; }
.internship-page .country-photo { border-radius: 11px; aspect-ratio: 1.65; }
.internship-page .country-description { min-height: 42px; color: #526071; }
.internship-page .photo-credits { max-width: 780px; margin-top: 24px; padding: 14px 16px; border: 1px solid rgb(5 33 64 / 9%); border-radius: 12px; background: #fff; }

@media (min-width: 1100px) {
  .internship-page .country-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .internship-records { padding-block: 52px; }
  .records-heading { margin-bottom: 24px; }
  .records-heading h1 { font-size: 38px; }
  .record-grid { gap: 13px; }
  .record-card { min-height: 0; border-radius: 16px; }
  .record-image { aspect-ratio: 1.7; }
  .record-image figcaption { bottom: 10px; left: 13px; }
  .record-body { padding: 20px 18px; }
  .record-card-top { align-items: flex-start; flex-direction: column; }
  .record-type { margin-top: 20px; }
  .internship-page .community { padding-block: 58px; }
  .internship-page .country-grid { grid-template-columns: 1fr; gap: 12px; }
  .internship-page .country-card { padding: 13px; }
}
