/* --animaciones-- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* --reset-- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url(ADN.png) space;
  background-size: 380px;
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
}

/* --header-- */
header {
  background: rgb(8, 31, 92);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 102px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.5cm;
}

header a { color: white; }

header div {
  display: flex;
  align-items: center;
  gap: 12px;
}

header div img { width: 100px; }

header nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

header nav a {
  color: white;
  text-decoration: none;
  font-size: 0.4cm;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-bottom-color 0.2s ease;
}

header nav a:hover {
  color: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

/* --banners-- */
.titulo,
.titulo2 {
  background: rgb(8, 31, 92);
  color: white;
  font-family: serif;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.titulo {
  padding: 60px;
  height: 350px;
  width: 100%;
  font-size: 0.5cm;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.titulo .seccion {
  padding: 0;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.7s ease both;
}

.titulo h1,
.titulo2 h1 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
  animation: fadeInUp 0.7s ease both;
}

.titulo h3,
.titulo2 h3 {
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  animation: fadeInUp 0.7s 0.15s ease both;
}

.titulo2 {
  height: 240px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.titulo2 .seccion {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.7s ease both;
}

.titulo::before,
.titulo2::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1.5px solid rgba(112, 150, 209, 0.18);
  pointer-events: none;
  animation: orbitSpin 18s linear infinite;
  transform-origin: center center;
}

.titulo::after,
.titulo2::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(112, 150, 209, 0.12);
  pointer-events: none;
  animation: orbitSpin 24s linear infinite reverse;
  transform-origin: center center;
}

/* --tituloenlace-- */
.tituloenlace {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  width: 170px;
  padding: 10px 0;
  border-radius: 50px;
  margin: 20px auto;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tituloenlace:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tituloenlace a {
  color: rgb(8, 31, 92);
  text-decoration: none;
  font-weight: bold;
  font-style: normal;
}

/* --nav interno-- */
.nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* --seccion-- */
.seccion {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

.seccion h2 {
  text-align: center;
  margin-bottom: 20px;
}

.seccion2 {
  max-width: 1200px;
  margin: auto;
  padding: 0px 20px;
}
/* --grids-- */
.grindgral {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(500px, 100%), 1fr));
  gap: 20px;
}

.grindgral p {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.2rem;
  text-align: justify;
  color: black;
}
.grindgral img{
  height: 20px;
  width: 100%;
  object-fit: flex;
}
.gridarticulos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: 20px;
}

/* --carta-- */
.carta {
  background: white;
  color: black;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carta img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.carta h3 {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  text-align: center;
  color: black;
  font-style: normal;
}

.carta p {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.2rem;
  text-align: justify;
  color: black;
  font-style: normal;
}

.carta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(8, 31, 92, 0.22);
}

.cartagral {
  background: white;
  color: black;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cartagral img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
.cartagral p{
  font-family: 'Times New Roman', Times, serif;
}
.cartagral h3{
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #0b2e59;
  line-height: 1.2;
}
/* --tituloglobo-- */
.tituloglobo {
  display: flex;
  justify-content: center; 
  align-items: center;     
  margin: 0 auto;         
  background: rgb(8, 31, 92);
  border-radius: 50px;
  padding: 6px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.tituloglobo h2 {
  font-family: 'Times New Roman', serif;
  font-size: 0.6cm;
  font-weight: 700;
  letter-spacing: 0.02cm;
  color: white;
  margin: 0;
  text-align: center;
}
/* --asesores-- */
.gridasesores { display: grid; gap: 20px; }

.asesor {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  align-items: center;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.asesor img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
}

.asesor a {
  color: black;
  font-weight: bold;
  font-style: normal;
}

.asesor:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(8, 31, 92, 0.22);
}

/* --flecha-- */
.flecha {
  display: flex;
  justify-content: flex-end;
  padding: 4px 24px 12px;
}

.flecha a {
  background: white;
  color: black;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.flecha a:hover {
  background: rgb(8, 31, 92);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(8, 31, 92, 0.3);
}

/* --auspiciadores-- */
.tituloauspiciadores {
  background: rgb(8, 31, 92);
  color: white;
  text-align: center;
  padding: 20px;
}

.auspiciadores {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: rgb(8, 31, 92);
}

.auspiciadores img {
  width: 150px;
  height: auto;
  object-fit: cover;
  border-radius: 100px;
  margin: 20px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0.85;
}

.auspiciadores img:hover {
  transform: scale(1.08);
  opacity: 1;
}

/* --footer-- */
footer {
  background: rgb(8, 31, 92);
  color: white;
  text-align: center;
  padding: 20px;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

footer a {
  color: white;
  font-weight: bold;
  font-style: normal;
  text-decoration: none;
}

/* --hr-- */
hr {
  border: none;
  border-top: 2px solid rgb(8, 31, 92);
  margin: 20px auto;
}

/* --responsive-- */
@media (max-width: 768px) {
  header {
    padding: 14px 20px;
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
  }

  header nav { gap: 16px; flex-wrap: wrap; }

  .titulo,
  .titulo2 { padding: 60px 20px; }

  .seccion { padding: 40px 16px; }
}

@media (max-width: 600px) {
  .asesor {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .asesor img { margin: auto; }
}

/* --slider-- */
.slider{
  background: white;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,.35);
}

.track{
  display: flex;
  transition: transform 0.8s ease;
}

.slide{
  min-width: 33.333%;
  padding: 10px;
}

.slide img{
  width: 100%;
  aspect-ratio: 210 / 297; 
  object-fit: cover;
  border-radius: 10px;
  display: block;
}