@import "scroll.css";

@font-face {
  font-family: "JAMAICA TS Base";
  src: url("JAMAICATS-Base.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JAMAICA TS Flores";
  src: url("JAMAICATS-Flores.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JAMAICA TS Sombra";
  src: url("JAMAICATS-Sombra.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --rojo: #ec4342;
  --crema: #fdead2;
  --transition-speed: 0.6s;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "config-variable", sans-serif;
  font-variation-settings: "wdth" 100, "wght" 400, "slnt" 0;
  background-color: var(--rojo);
  transition:
    background-color var(--transition-speed) ease,
    color var(--transition-speed) ease;
  padding: 0;
  overflow-x: hidden;
}

body[data-theme="rojo"] {
  background-color: var(--rojo);
  color: #fdead2;
}

body[data-theme="crema"] {
  background-color: var(--crema);
  color: #ec4342;
}

body[data-theme="rojo"] .logo {
  color: #fdead2;
}

body[data-theme="crema"] .logo {
  color: #ec4342;
}

b {
  font-variation-settings: 'wght' 650, 'wdth' 900;
}

i {
  font-variation-settings: 'slnt' 9;
}

video,
img,
#doc-container {
  width: 100%;
  border-radius: 10px;
  max-width: 100%;
  -webkit-clip-path: inset(1px);
  clip-path: inset(1px);
}

/* SCROLL DE LADO */
.layout {
  width: 100%;
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
  flex-direction: row;
}

.sidebar {
  width: 30%;
  min-width: 260px;
  position: fixed;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  padding: 2rem;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.content {
  width: 70%;
  float: right;
  position: absolute;
  right: 0;
}

.logo {
  margin: 0 0 2rem;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

body.nav-visible .nav {
  opacity: 1;
  pointer-events: auto;
}

.nav a {
  font-size: 0.9rem;
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0.25rem 0;
  opacity: 0.8;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.nav a:hover {
  opacity: 1;
  transform: translateX(4px);
}


.small-note {
  font-size: 0.75rem;
  opacity: 0.6;
}

.section {
  padding: 6rem 8vw;
  min-height: 160vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

#intro {
  padding: 0;
}

.section-inner {
  max-width: 900px;
  width: 100%;
  padding-top: 4rem;
}

.section-inner p:first-of-type {
  margin-top: 45vh;
}


.section p {
  line-height: 1.5;
  font-size: 1rem;
}

#intro .section-inner {
  display: block;
}

.intro-text p {
  max-width: 30rem;
}


.jamaica-title {
  font-family: "JAMAICA TS Base", sans-serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  display: block;
  margin-bottom: 6rem;
  font-weight: 100;
}

.title-container {
  position: relative;
  width: 100%;
  text-align: center;
}

.title-container .title {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
}

.title.regular {
  position: relative;
  font-family: "JAMAICA TS Base";
  font-size: clamp(3.5rem, 8vw, 6rem);
}

.title.flores {
  font-family: "JAMAICA TS Flores";
  font-size: clamp(3.5rem, 8vw, 6rem);
}

.title.sombra {
  font-family: "JAMAICA TS Sombra";
  font-size: clamp(3.5rem, 8vw, 6rem);
}

.jamaica-title--rojo {
  color: #fdead2;
}

.jamaica-title--crema {
  color: #ec4342;
}




.logo-icon {
  width: 180px;
  height: 180px;
  background-color: currentColor;
  mask: url("../img/LOGO_JAMAICA.svg") no-repeat center;
  mask-size: contain;
  -webkit-mask: url("../img/LOGO_JAMAICA.svg") no-repeat center;
  -webkit-mask-size: contain;
}

.intro-overlay {
  position: fixed;
  inset: 0;
  background-color: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: hidden;
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease;
  filter: blur(6px);
}

body.video-loaded .intro-video {
  opacity: 1;
}

.intro-logo,
.intro-hint {
  position: relative;
  z-index: 1;
}

.intro-logo .logo-icon {
  width: 260px;
  height: 260px;
}

.intro-hint {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}

body.intro-finished .intro-overlay {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.96);
}


body[data-theme="rojo"] .title.regular {
  color: #fdead2;
}

body[data-theme="rojo"] .title.flores,
body[data-theme="rojo"] .title.sombra {
  color: #efd5bb;
}



body[data-theme="crema"] .title.regular {
  color: #ec4342;
}

body[data-theme="crema"] .title.flores,
body[data-theme="crema"] .title.sombra {
  color: #d32a2a;
}


.entrevista-subtitulo {
  font-family: "config-variable", sans-serif;
  font-variation-settings: "wdth" 100, "wght" 600;

  font-size: 1.25rem;
  line-height: 1.3;

  margin: 2rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* grid columnas */
.grid {
  display: flex;
  gap: 25px;
  margin: 15em 0;
}

.grid .column {
  width: 50%;
  float: left;
}

.grid .left {
  width: 30%;
  float: left;
}

.grid .right {
  width: 70%;
  float: left;
}

.grid .column h3 {
  margin-top: 0px;
  padding-top: 0;
  line-height: 1em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.grid .column p {
  margin: 1em 0;
}

.grid .column p:nth-child(1) {
  margin-top: 0;
}

h3 {
  font-family: "config-variable", sans-serif;
  font-variation-settings: "wdth" 100, "wght" 600;
  font-size: 25px;
  line-height: 1.3;
  text-align: right;
  margin: 2rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


#doc-container {
  position: relative;
}

#doc-container img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
  left: 0;
  top: 0;
  transition: transform 1s ease-in-out;
  cursor: pointer;
}

#doc-container:hover img {
  transform: scale(1.1);
}

#doc-container iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
}

hr.divider {
  width: 95%;
  margin: 3rem auto;
  height: 2px;
  border: none;
}


body[data-theme="rojo"] hr.divider {
  background-color: #fdead2;
  opacity: 0.45;
}


body[data-theme="crema"] hr.divider {
  background-color: #ec4342;
  opacity: 0.45;
}


/* ===========================
   TABLET / PANTALLAS MEDIAS
   =========================== */
@media (max-width: 900px) {

  /* Layout general */
  .layout {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    /* deja de ser fija */
    width: 100%;
    min-width: 0;
    height: auto;
    padding: 1.5rem 1.5rem 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .sidebar-inner {
    height: auto;
  }

  .content {
    position: static;
    /* quita absolute */
    width: 100%;
    float: none;
  }

  /* Secciones */
  .section {
    min-height: auto;
    /* ya no 160vh */
    padding: 4rem 1.5rem;
  }

  #intro {
    padding: 2rem 1.5rem;
  }

  .section-inner {
    max-width: 700px;
    padding-top: 2rem;
  }

  .section-inner p:first-of-type {
    margin-top: 2rem;
    /* sin ese mega espacio */
  }

  /* Títulos Jamaica un poco más chicos */
  .jamaica-title,
  .title.regular,
  .title.flores,
  .title.sombra {
    font-size: clamp(2.4rem, 7vw, 3.4rem);
    margin-bottom: 3.5rem;
  }

  /* GRID de texto / entrevistas y mapa */
  .grid {
    flex-direction: row;
    /* sigue siendo dos columnas en tablet */
    gap: 1.75rem;
    margin: 6rem 0;
  }

  .grid .column,
  .grid .left,
  .grid .right {
    float: none;
    width: 50%;
  }

  /* h3 un poco más pequeños */
  h3 {
    font-size: 20px;
  }

  /* Galería Swiper */
  .mySwiper {
    padding-top: 2.5rem;
    padding-bottom: 3rem;
  }

  .mySwiper .swiper-slide {
    width: 70vw;
    height: 70vw;
    max-width: 420px;
    max-height: 420px;
  }

  /* Documental: poster + video apilan mejor */
  #doc-container {
    margin-top: 2rem;
  }
}



@media (max-width: 900px) {

  body {
    overflow-x: hidden;
  }

  .layout {
    flex-direction: column;
  }

  .sidebar {
    position: relative;      
    width: 100%;
    min-width: auto;
    height: auto;
    padding: 1.5rem 1.5rem 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .sidebar-inner {
    height: auto;
    gap: 1rem;
  }

  .logo {
    margin-bottom: 1rem;
  }

  .nav {
    margin-bottom: 1rem;
  }

  .content {
    position: relative;      
    width: 100%;
    float: none;
  }

  .section {
    min-height: auto;
    padding: 3rem 1.5rem;
  }

  #intro {
    padding: 1.5rem 0 2rem;
  }

  .section-inner {
    padding-top: 2rem;
  }

  .section-inner p:first-of-type {
    margin-top: 1.5rem;
  }

  .jamaica-title,
  .title.regular,
  .title.flores,
  .title.sombra {
    font-size: clamp(2.2rem, 8vw, 3rem);
    margin-bottom: 3rem;
  }

  .grid {
    flex-direction: column;
    gap: 1.5rem;
    margin: 3rem 0;
  }

  .grid .column,
  .grid .left,
  .grid .right {
    width: 100%;
    float: none;
  }

  h3 {
    text-align: left;
    margin-top: 0;
  }

  hr.divider {
    width: 100%;
    margin: 2rem 0;
  }

  .mySwiper {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
  }

  .mySwiper .swiper-slide {
    width: 80vw;
    height: 80vw;
    max-width: 380px;
    max-height: 380px;
    margin: 0 auto;
  }


  #doc-container {
    margin-top: 2rem;
  }

  #doc-container img {
    border-radius: 8px;
  }
}
