/* =========================
   FONTS
   ========================= */

@font-face {
  font-family: 'Alumni Sans';
  src: url('fonts/AlumniSans-Light.ttf') format('truetype');
  font-weight: 300;
}

@font-face {
  font-family: 'Alumni Sans';
  src: url('fonts/AlumniSans-Bold.ttf') format('truetype');
  font-weight: 700;
}

@font-face {
  font-family: 'Space Mono';
  src: url('fonts/SpaceMono-Regular.ttf') format('truetype');
}

/* =========================
   RESET / BASE
   ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Mono', monospace;
  background: #fff;
  color: #000;
  text-transform: lowercase;
  letter-spacing: 0.3px;
  cursor: url("cursor.jpg") 16 16, crosshair;
}

/* =========================
   HEADER
   ========================= */

header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 1000;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.6);
}

/* LOGO */

.header-left {
  text-decoration: none;
  color: black;
  line-height: 1.05;
}

.header-left .name {
  font-family: 'Alumni Sans', sans-serif;
  font-weight: 300;
  font-size: 28px;
}

.header-left .role {
  font-family: 'Alumni Sans', sans-serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 1px;
}

/* NAV */

.header-nav a {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 18px;
  margin-left: 28px;
  color: black;
  text-decoration: none;
  letter-spacing: 1px;
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: black;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.header-nav a:hover::after {
  transform: scaleX(1);
}

/* =========================
   LAYOUT
   ========================= */

main {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 90px;
}

.section {
  padding: 15px 0;
  scroll-margin-top: 70px;
}

.section h2 {
  font-family: 'Alumni Sans', sans-serif;
  font-weight: 300;
  font-size: 28px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  text-align: center;
}

.divider {
  height: 1px;
  background: #ddd;
  margin-bottom: 20px;
}

/* =========================
   MEDIA
   ========================= */

.video,
.slideshow {
  margin-bottom: 30px;
}

.video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

.media {
  position: relative;
}

/* =========================
   VIDEO THUMBNAILS (PRO)
   ========================= */

.video-thumb {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
}

.video-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* CREDITS HOVER */

.credits {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: white;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.media:hover .credits {
  opacity: 1;
}

/* =========================
   TEXTOS
   ========================= */

.video p,
.slideshow p,
.contacto p {
  margin-top: 6px;
  font-family: 'Alumni Sans', sans-serif;
  font-weight: 300;
  font-size: 19px;
  letter-spacing: 0.9px;
  color: #555;
  text-align: center;
}

a {
  color: #1a0dab;
  text-decoration: underline;
}

/* =========================
   SLIDESHOW
   ========================= */

.slideshow-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.slideshow-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: slideshow 16s infinite;
}

.slideshow-media img:nth-child(1) { animation-delay: 0s; }
.slideshow-media img:nth-child(2) { animation-delay: 4s; }
.slideshow-media img:nth-child(3) { animation-delay: 8s; }
.slideshow-media img:nth-child(4) { animation-delay: 12s; }

@keyframes slideshow {
  0% { opacity: 0; }
  10% { opacity: 1; }
  25% { opacity: 1; }
  35% { opacity: 0; }
  100% { opacity: 0; }
}

/* =========================
   FADE IN
   ========================= */

.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   ABOUT / CONTACT PAGE
   ========================= */

.about {
  max-width: 900px;
  margin: 120px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 0 20px;
  align-items: center;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.about-text p {
  font-family: 'Alumni Sans', sans-serif;
  font-weight: 300;
  font-size: 21px;
  letter-spacing: 0.9px;
  color: #555;
  line-height: 1.45;
  margin-bottom: 36px;
}

.about-links p {
  margin: 0;
  line-height: 1.15;
  font-family: 'Alumni Sans', sans-serif;
  font-weight: 300;
  font-size: 18px;
  letter-spacing: 0.8px;
  color: #555;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

  header {
    height: 64px;
    padding: 0 16px;
  }

  .header-left .name {
    font-size: 22px;
    white-space: nowrap;
  }

  .header-left .role {
    font-size: 14px;
  }

  main {
    padding-top: 65px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .video,
  .slideshow {
    padding-left: 0;
    padding-right: 0;
  }

  /* textos bajo vídeos */
  .video p,
  .slideshow p {
    font-size: 13px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* CONTACTO en HOME más pequeño */
  .contacto p {
    font-size: 16px;
    letter-spacing: 0.6px;
  }

  /* ABOUT */
  .about {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-text p,
  .about-links p {
    text-align: center;
  }

  .section h2 {
    font-size: 18px;
    letter-spacing: 1.2px;
  }

}

/* CONTACT PAGE — subir contenido en móvil */
@media (max-width: 768px) {
  .about {
    margin-top: 60px;
  }
}

/* =========================
   VIDEO PLACEHOLDER (PRO)
   ========================= */

.video-placeholder {
  position: relative;
  cursor: pointer;
}

.video-placeholder img {
  width: 100%;
  display: block;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  border: none;
}

.play-btn::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 18px;
  width: 0;
  height: 0;
  border-left: 18px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

/* más discreto en móvil */
@media (max-width: 768px) {
  .play-btn {
    width: 48px;
    height: 48px;
  }

  .play-btn::before {
    left: 20px;
    top: 14px;
    border-left: 14px solid white;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
  }
}

@media (max-width: 768px) {

  iframe {
    background: black;
  }

  .credits {
    display: none;
  }

}