/* ============== 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;
}
.foto-hovercover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 0 !important;
  transition: opacity 0.3s ease;
  backface-visibility: hidden;
  transform: translateZ(0);
}
.hero-container:hover .foto-hovercover {
  opacity: 1;
}

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

/* ============== GET MY GEAR ============== */
.partners-images{
  display:flex; justify-content:center; gap:12px; flex-wrap:wrap;
  margin: 16px auto 32px; padding: 0 16px; max-width: 1400px;
}
.foto-hover{
  position:relative; display:block; text-decoration:none; color:inherit;
  width: clamp(220px, 22vw, 350px); height: clamp(240px, 25vw, 392px);
  overflow:hidden; border-radius:8px; cursor:pointer;
}
.foto-hover img{
  width:100%; height:100%; object-fit:cover; display:block;
  transition: transform .4s ease, filter .4s ease;
  filter:brightness(100%);
}
.foto-hover:hover img{ filter:brightness(40%); transform:scale(1.05); }
.nombre{
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%) scale(.9);
  text-align: center;
  color:#fff; font-weight:600;
  font-size: clamp(16px, 2.2vw, 32px);
  padding: 10px 16px;
  border-radius:2px;
  opacity:0;
  transition: all .35s ease;
  pointer-events:none;
  z-index:2;
}
.foto-hover:hover .nombre{ opacity:1; transform:translate(-50%,-50%) scale(1); }

/* ============== EVENTS SECTION ============== */
.next-events-section {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  max-width: 1400px;
  margin: 48px auto;
  padding: 0;
}
.events-image {
  flex: 0 0 600px;
  margin-left: auto;
}
.events-image img {
  width: 600px;
  height: 650px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}
.cr-cal-wrap {
  flex: 0 0 555px;
  height: 650px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cr-cal-wrap h2 {
  font-size: 24px;
  margin: 0 0 6px 0;
  line-height: 1.2;
}
.cr-cal-year {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  height: 100%;
  overflow: hidden;
}
.cr-cal-month {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cr-cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: #222;
  font-size: 11px;
}
.cr-cal-weekdays, .cr-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cr-cal-weekdays span {
  font-size: 9px;
  color: #777;
  text-align: center;
  padding: 2px 0;
}
.cr-cal-day {
  width: 24px; height: 24px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: #333;
  border-radius: 50%; position: relative;
  user-select: none;
  transition: transform .2s ease, filter .2s ease;
}
.cr-cal-day .day-num { position: relative; z-index: 2; }
.cr-cal-day.muted { color: #ccc; pointer-events: none; }
.cr-cal-day.today { outline: 2px solid #771d95; outline-offset: -2px; }
.cr-cal-day.has-medal {
  background: transparent;
  color: #333; font-weight: 700;
}
.cr-cal-day .medal{
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 25px; line-height: 1;
  pointer-events: none; z-index: 1;
}
.cr-cal-grid .cr-cal-day.has-event {
  background-color: var(--evt, #0a800a);
  color: #fff; font-weight: 700;
}
.cr-cal-grid .cr-cal-day.has-event.has-medal {
  background: transparent; color: #333;
}
.cr-cal-grid .cr-cal-day.has-event:hover {
  filter: brightness(1.15);
  transform: scale(1.08);
  cursor: pointer;
}
.cr-cal-tooltip {
  position: fixed;
  background: #fff;
  border: 2px solid var(--evt,#0a800a);
  color: #222;
  padding: 10px 12px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  font-size: 13px;
  pointer-events: none;
  z-index: 99999;
  max-width: 220px;
  transform: translate(-50%, -120%);
}
.cr-cal-tooltip .t { font-weight: 800; margin-bottom: 4px; }
.cr-cal-tooltip .d { font-size: 12px; color: #666; }

/* ============== CONTACT BAR ============== */
.contact-bar{
  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; }
.social-icons{ display:flex; gap: clamp(16px, 6vw, 80px); }
.social-icons img{ width: clamp(28px, 4vw, 50px); height: clamp(28px, 4vw, 50px); transition: transform .3s ease; }
.social-icons a:hover img{ transform:scale(1.2); }

/* ============== FOOTER ============== */
footer{ background:#222; color:#fff; text-align:center; padding:16px; width:100%; }

/* ============== MEDIA QUERIES ============== */
@media (max-width: 1400px) {
  .next-events-section{ flex-direction: column; align-items: center; }
  .cr-cal-wrap, .events-image{ flex: unset; width: 100%; height: auto; }
  .events-image img{ width: 100%; height: auto; }
  .cr-cal-year{ grid-template-columns: repeat(3, 1fr); height: auto; }
}
@media (max-width: 900px) {
  .cr-cal-year{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  /* GET MY GEAR: 2 por fila y títulos visibles siempre */
  .foto-hover{ width: 45vw; height: 48vw; }
  .nombre{ opacity: 1 !important; transform: translate(-50%,-50%) scale(1); }
}
@media (max-width: 560px) {
  .cr-cal-year{ grid-template-columns: repeat(2, 1fr); }
  .cr-cal-day{ width: 22px; height: 22px; font-size: 8px; }
  .cr-cal-day .medal{ font-size: 14px; }
}
/* ============== COLLAGE (estructura exacta, sin laterales) ============== */
.collage{
  display:grid;
  /* columnas en proporción a tus medidas 646/395/399 */
  grid-template-columns: 646fr 395fr 399fr;
  /* solo las dos filas necesarias (299 + 299) */
  grid-template-rows: 299fr 299fr;
  width:100%; max-width:100%; margin:0; padding:0;
}
.item{ position:relative; overflow:hidden; }
.item img{ width:100%; height:100%; object-fit:cover; display:block; transition: transform .3s ease; }
.item:hover img{ transform:scale(1.08); }
.i1{ grid-column:1; grid-row:1 / span 2; }
.i2{ grid-column:2; grid-row:1; }
.i3{ grid-column:3; grid-row:1 / span 2; }
.i4{ grid-column:2; grid-row:2; }

/* ===== Responsive collage ===== */
@media (max-width: 768px){
  .collage{
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 38vw;           /* alto fluido por pantalla */
    gap: 0;
  }
  .collage .item{
    grid-column: auto !important;
    grid-row: auto !important;
  }
}
@media (max-width: 480px){
  .collage{
    grid-template-columns: 1fr;
    grid-auto-rows: 60vw;
  }
}

