/* ===== Base ===== */
body {
  margin: 0;
  font-family: "Helvetica", sans-serif;
  background-color: #4a4948 !important;
  color: #333;
  overflow-y: auto;
}

a {
  text-decoration: none;
}

/* ===== Navbar ===== */
.custom-navbar {
  background-color: #4a4948 !important;
  padding: 14px 40px;
}
.custom-navbar .navbar-brand {
  color: #ffffff !important;
  font-weight: 600;
  letter-spacing: 1px;
}
.custom-navbar .navbar-brand:hover {
  color: #ffd6cc !important;
}
.custom-navbar .nav-link {
  color: #ffffff !important;
  margin-left: 20px;
  font-family: "Zalando Sans", sans-serif;
  font-weight: 500;
  transition: color 0.3s ease;
}
.custom-navbar .nav-link:hover {
  color: #ffd6cc !important;
}
.custom-navbar .navbar-toggler {
  border-color: #ffffff;
}
.custom-navbar .navbar-toggler-icon {
  filter: invert(1);
}

/* ===== Intro ===== */
.intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  min-height: clamp(520px, 80vh, 760px);
  padding: clamp(24px, 6vw, 72px);
  background: #ffe9e6;
}
.intro .title {
  font-family: "Zalando Sans", sans-serif;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 16px;
  color: #333;
}
.intro p {
  font-size: clamp(14px, 1.9vw, 18px);
  margin: 0 0 10px;
  color: #444;
}
.intro .intro-btn {
  margin-top: 18px;
  background-color: #4a4948;
  color: #fff;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.25s ease;
}
.intro .intro-btn:hover {
  background-color: transparent;
  color: #4a4948;
}

/* Intro image */
.image-container {
  width: 100%;
  max-width: 520px;
  justify-self: center;
}
.image-container img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.08));
}

/* ===== Education & Experience ===== */
.intro-education {
  background-color: #cfc2d3;
  padding: 80px 60px;
  display: flex;
  justify-content: center;
}
.education-container {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
}
.text-container-education,
.text-container-experience {
  background: #fff;
  border: 3px solid #cab7cf;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  font-family: "Zalando Sans", sans-serif;
}
.text-container-education .title,
.text-container-experience .title {
  font-family: "Zalando Sans", sans-serif !important;
  font-size: 2rem;
  color: #4a4948;
  margin-bottom: 20px;
}
.text-container-education p,
.text-container-experience p {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  margin: 6px 0;
}
.image-container-education {
  display: flex;
  justify-content: center;
  align-items: center;
}
.image-container-education img {
  width: 90%;
  max-width: 320px;
  height: auto;
  border-radius: 12px;
}

/* ===== Avatar viajera (columna de texto del globo) ===== */
.travel-avatar {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 15px;
}
.travel-avatar img {
  display: block;
  width: clamp(160px, 22vw, 220px);
  height: auto;
}

/* ===== Globe Section ===== */
.globe-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
  min-height: 80vh;
  padding: clamp(24px, 6vw, 72px);
  background: #fddec4;
}
.globe-text h2 {
  font-family: "Zalando Sans", sans-serif;
  font-size: clamp(22px, 3.2vw, 34px);
  margin: 0 0 12px;
  color: #333;
}
.globe-text p {
  font-size: clamp(14px, 1.9vw, 18px);
  color: #444;
  margin: 0;
}

/* Contenedor del globo: cuadrado y centrado */
.globe-wrap {
  position: relative;
  box-sizing: content-box;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 0;
  border: 0;
}
#globo,
#globo canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ===== Info Me ===== */
.infome {
  background: #f7dcd2;
  color: #333;
  font-family: "Zalando Sans", sans-serif;
  text-align: center;
  padding: 80px 40px;
}
.infome-title {
  font-family: "Zalando Sans", sans-serif;
  font-size: clamp(24px, 4vw, 38px);
  margin-bottom: 40px;
  color: #4a4948;
}
.infome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  justify-items: center;
  align-items: stretch;
  max-width: 1100px;
  margin: 0 auto;
}
.infome .card {
  border: 4px solid #ffd5c7;
  border-radius: 12px;
  background-color: #fff;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.infome .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.infome .card-img-top {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 4px solid #4a4948;
}
.infome .card-body {
  padding: 20px;
}
.infome .card-title {
  font-family: "Zalando Sans", sans-serif;
  font-size: 1.3rem;
  color: #4a4948;
  margin-bottom: 10px;
}
.infome .card-text {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.5;
}

/* ===== Footer ===== */
.footer {
  background-color: #4a4948;
  color: #fff;
  padding: 40px 20px 15px;
  font-family: "Zalando Sans", sans-serif;
  text-align: center;
}
.footer-container {
  display: grid;
  grid-template-columns: 1fr 0.4fr 1fr;
  justify-content: center;
  align-items: start;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 20px;
}
.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-left h4,
.footer-right h4 {
  font-family: "Zalando Sans", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: #ffe9e6;
}
.footer-left p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #f3f3f3;
  max-width: 360px;
  margin: 0;
}
.footer-right ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-right li {
  margin-bottom: 6px;
}
.footer-right a {
  color: #ffe9e6;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}
.footer-right a:hover {
  color: #ffd6cc;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
  font-size: 0.85rem;
  color: #ccc;
  text-align: center;
}

/* ===== Responsive ===== */

/* Edu section a 1 columna */
@media (max-width: 992px) {
  .education-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .image-container-education img {
    max-width: 260px;
    margin: 20px auto;
  }
}

/* Intro + Globe a 1 columna; globo centrado; oculta banderas con JS aparte */
@media (max-width: 992px) {
  .intro {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .image-container {
    order: -1;
  }

  .globe-section {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: start;
    text-align: center;
    padding: 28px 20px 52px;
    gap: 22px;
  }
  .globe-section > * {
    justify-self: center;
    width: 100%;
  }
  .globe-wrap {
    display: grid;
    place-items: center;
    margin-inline: auto;
    width: min(92vw, 600px);
    aspect-ratio: 1 / 1;
  }
  #globo,
  #globo canvas {
    width: 100%;
    height: 100%;
    margin: 0 auto;
  }
}

/* Ajustes menores */
@media (max-width: 768px) {
  .intro {
    min-height: unset;
    padding: 28px 20px;
    gap: 22px;
  }
  .image-container {
    max-width: 360px;
  }
  .infome {
    padding: 60px 20px;
  }
  .infome .card-img-top {
    height: 180px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .footer {
    padding: 25px 16px 12px;
  }
  .footer-left p,
  .footer-right a {
    font-size: 0.85rem;
  }
}

/* Navbar spacing en móviles */
@media (max-width: 768px) {
  .navbar {
    padding-block: 0.35rem;
  }
}
