/* ============== RESET / BASE ============== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow-x: hidden; background: #fff; }
/* Inter Regular (400) */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter18pt-Regular.woff2') format('woff2'),
       url('../assets/fonts/Inter18pt-Regular.woff2') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Inter Bold (700) */
@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter24pt-Bold.woff2') format('woff2'),
       url('../assets/fonts/Inter28pt-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

body { font-family: 'Inter', sans-serif; color: #333; line-height: 1.6; background-color: #F5F5F5; }

/* ============== HEADER / NAV ============== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .05);
  display: flex;
  align-items: center;
}

nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 16px;
}

nav .logo {
  width: 84px;
  height: 74px;
  display: block;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  cursor: pointer;
}

nav .logo:hover {
  transform: scale(1.2);
  filter: brightness(1.1);
}

/* Menú normal */
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 250px;
  margin: 0;
  padding: 0;
  padding-right: 40px;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 25px;
}

/* Botón hamburguesa */
.menu-toggle {
  display: none; /* oculto en escritorio */
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #000;
}

/* ============== RESPONSIVE NAV ============== */
@media (max-width: 1024px) {
  .nav-links {
    gap: 60px;
  }
  nav a {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: row;
    justify-content: space-between;
    height: auto;
    padding: 10px 20px;
  }

  /* mostrar hamburguesa */
  .menu-toggle {
    display: block;
  }

  /* ocultar links por defecto */
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 80px; /* debajo del header */
    left: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  /* cuando esté abierto */
  .nav-links.open {
    display: flex;
  }

  nav a {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  nav .logo {
    width: 64px;
    height: 54px;
  }
  nav a {
    font-size: 16px;
  }
}

/* ============== IMAGEN HERO PORTADA ============== */
.hero-image {
  width: 100%;
  margin-top: 80px; /* deja hueco del header fijo */
}
.hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.foto-default {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

/* ============== INTRO (CITA) ============== */
.intro {
  text-align: center;
  padding: 16px 6vw 32px 6vw;
  font-size: clamp(18px, 2.6vw, 40px);
  max-width: 1400px;
  margin: 0 auto;
}
.intro strong { font-weight: 600; }

/* ====== ABOUT SECTION ====== */
.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* ✅ por defecto 2 columnas */
  align-items: stretch;
  gap: 40px;
  margin-top: 15px;
}
.about-image { height: 100%; }
.about-image img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; border-radius: 0; margin-left: 0;
}
.about-text h2 {
  font-size: clamp(28px, 4vw, 37px);
  font-weight: 800;
  margin-bottom: 50px;
  margin-right: 35px;
  color: #111; line-height: 1.1;
}
.about-text p {
  font-size: clamp(18px, 2.5vw, 20px);
  line-height: 1.5;
  margin-right: 35px;
  color: #333;
}

/* ====== ABOUT SECTION 2 ====== */
.text-videos {
  width: 100vw;
  height: calc(100vh - var(--header-h, 0px));
  display: grid;
  grid-template-columns: 1fr 1fr; /* ✅ por defecto 2 columnas */
  margin-top: 5px;
  padding: 0;
  overflow: hidden;
}
.text-column {
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.videos-column {
  display: grid;
  grid-template-columns: 1fr 1fr; /* ✅ dos vídeos lado a lado */
  gap: 0;
  height: 100%;
  overflow: hidden;
}
.video-wrapper {
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
}
.video-wrapper video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ============== IMAGENES SUPERPUESTAS 20/26 ============== */
.superposed-images {
  width: 100%; height: 100vh;
  overflow: hidden; position: relative;
  margin-top: 15px;
}
.image-container { width: 100%; height: 100%; position: relative; --reveal: 50%; }
.image {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  user-select: none; -webkit-user-drag: none;
}
.image.front {
  z-index: 2; transition: clip-path .18s ease, transform .18s ease;
  clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
}
.image-container.is-dragging .image.front { transition: none; }
.image.front:hover { transform: scale(1.01); }
.image.back { z-index: 1; }
.slider-handle {
  position: absolute; top: 0; left: var(--reveal);
  transform: translateX(-50%);
  height: 100%; width: 4px;
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5));
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
  z-index: 3; transition: left .12s ease;
  cursor: ew-resize; outline: none;
}
.image-container.is-dragging .slider-handle { transition: none; }
.slider-handle::after {
  content: ""; position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  border: 2px solid rgba(0,0,0,0.06);
}
.text1 {
  text-align: center;
  font-size: clamp(18px, 2.6vw, 22px);
  margin: 35px;
}

/* ============== CONTACT BAR ============== */
.contact-bar {
  width: 100vw; position: relative;
  left: 50%; right: 50%;
  margin-left: -50vw; margin-right: -50vw;
  margin-top: 20px;

  background-color: #d5d4d4;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap;
  gap: 16px; padding: 18px 24px;
}
.contact-text p {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 34px);
  color: #333; font-weight: 600;
}

/* ============ TWO COLUMNS HOVER ============ */
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr; /* ✅ por defecto dos columnas */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.column { position: relative; height: 100%; }
.hover-card { position: relative; overflow: hidden; cursor: pointer; height: 100%; }
.hover-card img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; transition: filter 0.4s ease;
}
.overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  color: #fff;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center; padding: 20px;
  background: rgba(0,0,0,0);
  transition: background 0.4s ease;
}
.overlay .title {
  font-size: 40px; font-weight: 800; margin: 0;
  transition: font-size 0.4s ease;
}
.overlay .description {
  font-size: 20px; margin-top: 12px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hover-card:hover img { filter: brightness(40%); }
.hover-card:hover .overlay { background: rgba(0,0,0,0.3); }
.hover-card:hover .title { font-size: 28px; }
.hover-card:hover .description { opacity: 1; transform: translateY(0); }

/* ============== FOOTER ============== */
footer {
  background:#222; color:#fff; text-align:center; padding:16px;
  width:100vw; position:relative; left:50%; right:50%;
  margin-left:-50vw; margin-right:-50vw; margin-top:20px;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
  /* INTRO */
  .intro { font-size: clamp(16px, 4vw, 24px); padding: 12px 5vw 24px; }

  /* ABOUT: en móvil pasa a una columna */
  .about-container { grid-template-columns: 1fr; gap: 24px; }
  .about-text h2 { font-size: clamp(18px, 4vw, 24px); line-height: 1.2; margin-bottom: 20px; text-align: center; }
  .about-text p { font-size: clamp(14px, 3.5vw, 16px); text-align: center; }

  /* ABOUT 2 */
  .text-videos { grid-template-columns: 1fr; gap: 24px; }
  .text-column h2 { font-size: clamp(18px, 4vw, 24px); text-align: center; }
  .videos-column { grid-template-columns: 1fr; }

  /* SUPERPOSED */
  .superposed-images { height: 60vh; }

  /* CONTACT */
  .contact-text p { font-size: clamp(14px, 3.5vw, 16px); }

  /* TWO COLUMNS HOVER → stack en móvil */
  .two-columns { grid-template-columns: 1fr; }
  .overlay .title { font-size: clamp(18px, 4vw, 24px); }
  .overlay .description { font-size: clamp(14px, 3.5vw, 16px); }
}
