@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@500&display=swap');

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #1a1a1a;
  color: #FFFFFFDD;
  font-family: "Inter", sans-serif;
}

/* ===== HERO ===== */

#hero-viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ffffff33;
  z-index: 90;
}

.indicator .progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #75AADB;
}

nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 55%, rgba(0, 0, 0, 0) 100%);
  z-index: 80;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #ffffffdd;
}

.links {
  display: flex;
  gap: 40px;
}

.link {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FFFFFFDD;
  text-decoration: none;
  position: relative;
  padding-bottom: 6px;
  cursor: pointer;
}

.link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #75AADB;
  transition: width 0.3s cubic-bezier(0.445, 0.05, 0.55, 0.95);
}

.link.active::after {
  width: 100%;
}

.icons {
  display: flex;
  gap: 16px;
}

.svg-container {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ffffff55;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFFDD;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.svg-container svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFFDD;
  cursor: pointer;
  flex-shrink: 0;
}

.arrow svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  transition: transform 0.25s ease;
}

.arrow:hover {
  color: #75AADB;
}

.arrow.left:hover svg {
  transform: translateX(-3px);
}

.arrow.right:hover svg {
  transform: translateX(3px);
}

.arrow:active svg {
  transform: scale(0.9);
}

#demo {
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* siempre a pantalla completa: la miniatura se logra con clip-path desde JS */
.card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: #1a1a1a;
}

.card-linked {
  cursor: pointer;
}

.card-content {
  position: absolute;
  inset: 0;
  background-image: var(--bg-desktop), url("assets/destinos/placeholder-escritorio.svg");
  background-size: cover;
  background-position: center;
}

/* capa fija en la tarjeta (no en .card-content): no se escala con la imagen */
.card::after {
  content: "";
  pointer-events: none;
  opacity: 0;
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 45%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 35%);
}

.card-dark::after {
  background:
    linear-gradient(115deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 40%);
}

/* solo se ve el degradado a pantalla completa cuando la tarjeta está expandida */
.card.is-expanded::after {
  opacity: 1;
}

/* bloque del tamaño de la miniatura (200x300); JS lo traslada con ella.
   lleva el degradado propio de la miniatura */
.thumb-caption {
  position: absolute;
  top: 0;
  left: 0;
  width: 200px;
  height: 300px;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 45%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 35%);
}

.card-dark .thumb-caption {
  background:
    linear-gradient(115deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 40%);
}

.content-start {
  position: absolute;
  left: 20px;
  bottom: 56px;
  width: 30px;
  height: 5px;
  background: #FFFFFFDD;
  z-index: 2;
}

.content-place {
  position: absolute;
  left: 20px;
  bottom: 34px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #FFFFFFDD;
  z-index: 2;
}

.content-title {
  position: absolute;
  left: 20px;
  bottom: 12px;
  right: 16px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 20px;
  text-transform: uppercase;
  line-height: 1.15;
  color: #FFFFFFDD;
  z-index: 2;
}

.details {
  position: absolute;
  left: 60px;
  top: 50%;
  transform: translateY(-50%);
  max-width: 560px;
  z-index: 30;
}

.place-box,
.title-box-1,
.title-box-2,
.desc {
  overflow: hidden;
}

.place-box .text,
.title-box-1 .text,
.title-box-2 .text {
  display: block;
  transform: translateY(100%);
}

.place-box {
  margin-bottom: 18px;
}

.place-box .text {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 72px;
  line-height: 1.02;
  letter-spacing: normal;
  text-transform: uppercase;
  color: #FFFFFFDD;
}

.place-box .text::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 4px;
  background: #FFFFFFDD;
  flex-shrink: 0;
}

.title-box-1 .text,
.title-box-2 .text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 16.25px;
  line-height: normal;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFFFFFDD;
}

.desc {
  margin-top: 24px;
  max-width: 500px;
}

.desc span {
  display: block;
  white-space: pre-line;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #FFFFFFDD;
}


.project-tag {
  display: inline-block;
  margin-top: 20px;
  padding: 8px 16px;
  border: 1px solid #ffffff55;
  border-radius: 99px;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FFFFFFDD;
}

.project-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  border: 1px solid #FFFFFFDD;
  border-radius: 99px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: #FFFFFFDD;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.project-link:hover,
.project-link:focus-visible {
  background: #FFFFFFDD;
  color: #1a1a1a;
}

.project-tag[hidden],
.project-link[hidden] {
  display: none;
}

.pagination {
  position: absolute;
  left: 50%;
  bottom: 48px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 40;
}

.dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 99px;
  background: rgba(26, 26, 26, 0.55);
  border: 1px solid #ffffff22;
}

.dot {
  width: 20px;
  height: 8px;
  border-radius: 99px;
  background: #ffffff33;
  cursor: pointer;
  transition: width 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}

.dot:hover {
  background: #ffffff66;
}

.dot.active {
  width: 32px;
  background: #FFFFFFDD;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.cover {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 100;
}

/* ===== SHARED SECTION TYPOGRAPHY ===== */

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #FFFFFFDD;
  margin-bottom: 20px;
}

.section-eyebrow::before {
  content: "";
  width: 30px;
  height: 4px;
  background: #FFFFFFDD;
  flex-shrink: 0;
}

#about h2,
#contact h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 60px;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 40px;
  color: #FFFFFFDD;
}

/* ===== ABOUT ===== */

#about {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 60px;
}

.about-grid {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 80px;
}

.about-photo {
  flex-shrink: 0;
}

.about-photo-img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffffff33;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.about-text {
  max-width: 600px;
}

.about-role {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
  color: #75AADB;
  margin-bottom: 16px;
}

.about-text p {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #FFFFFFDD;
  margin: 0 0 20px;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.skill-chip {
  border: 1px solid #ffffff55;
  border-radius: 99px;
  padding: 6px 16px;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #FFFFFFDD;
}

/* ===== CONTACT ===== */

#contact {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 60px;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-line {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  color: #FFFFFFDD;
  margin: 20px 0 40px;
}

#contact .section-eyebrow {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 42px;
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 0;
}

#contact .section-eyebrow::before {
  display: none;
}

.socials {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

.site-footer {
  margin-top: 60px;
  font-size: 12px;
  color: #ffffff99;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {
  nav {
    height: 100px;
    padding: 0 24px;
  }

  .logo-img {
    width: 56px;
    height: 56px;
  }

  .links {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .link {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  /* captura vertical (con placeholder detrás si el .jpg aún no existe), anclada arriba */
  #hero-viewport {
    height: 100vh;
    height: 100svh;
  }

  .card-content {
    background-image: var(--bg-mobile), url("assets/destinos/mobile/placeholder-movil.svg");
    background-position: top center;
  }

  .card::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.75) 35%, rgba(0, 0, 0, 0.3) 65%, rgba(0, 0, 0, 0) 85%);
  }

  .card-dark::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.97) 0%, rgba(0, 0, 0, 0.92) 40%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0) 95%);
  }

  /* acotado entre el nav y la barra de controles, texto pegado abajo */
  .details {
    left: 24px;
    right: 24px;
    top: 116px;
    bottom: 84px;
    max-width: none;
    transform: none;
    /* grid para que title1 y title2 queden en la misma línea ("GUÍA DE" "CUIDADO") */
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 6px;
    align-content: end;
    overflow: hidden;
  }

  .place-box,
  .desc,
  .project-tag,
  .project-link {
    grid-column: 1 / -1;
  }

  .project-tag,
  .project-link {
    justify-self: start;
    margin-top: 12px;
    padding: 6px 12px;
    font-size: 11px;
  }

  .place-box {
    margin-bottom: 10px;
  }

  .place-box .text {
    font-size: clamp(24px, 7.5vw, 34px) !important;
    line-height: 1.1;
    gap: 10px;
    text-wrap: balance;
  }

  .place-box .text::before {
    width: 20px;
    height: 3px;
  }

  .title-box-1 .text,
  .title-box-2 .text {
    font-size: 12px;
    letter-spacing: 1px;
    text-wrap: balance;
  }

  .desc {
    margin-top: 12px;
    max-width: none;
  }

  .desc span {
    font-size: 13.5px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }

  .pagination {
    bottom: 20px;
  }

  #about,
  #contact {
    padding: 90px 24px;
  }

  .about-grid {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .about-photo-img {
    width: 200px;
    height: 200px;
  }

  .about-text {
    max-width: 100%;
  }

  .skills {
    justify-content: center;
  }

  #about h2,
  #contact h2 {
    font-size: 44px;
    margin-bottom: 24px;
  }

  #contact .section-eyebrow {
    font-size: 30px;
  }

  .socials {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  nav {
    height: 84px;
    padding: 0 16px;
  }

  .logo-img {
    width: 44px;
    height: 44px;
  }

  .links {
    gap: 12px;
  }

  .link {
    font-size: 10px;
  }

  .details {
    top: 100px;
    bottom: 76px;
  }

  .about-photo-img {
    width: 160px;
    height: 160px;
  }

  .about-text p {
    font-size: 14.5px;
  }

  #about h2,
  #contact h2 {
    font-size: 36px;
  }

  #contact .section-eyebrow {
    font-size: 26px;
  }
}
