/* FUENTE */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@200;300;400;600;700;800;900&display=swap');

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Nunito Sans', sans-serif;
}

body {
  height: 100vh;
  overflow: hidden;
  color: white;
}

/* 🎥 VIDEO FONDO */
.video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* CONTENIDO ENCIMA */
.main-content {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* HERO */
.hero {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.logo {
  display: block;
  margin: -13% auto 0 auto;
  max-width: 650px;
  height: auto;
}

.tagline {
  font-size: 1rem;
  letter-spacing: 0px;
  font-weight: 300;
  opacity: .5;
  margin-top: 17%;
}

.tagline-light {
  font-weight: 200;
}
.tagline-bold {
  font-weight: 700;
}

/* 🧩 GRID */
.panels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 20%;
  gap: 0;
}

/* PANEL */
.panel {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding:0 30px 24px 30px;
}

/* Fondo interno del panel */
.panel-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: all .5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

/* Contenido */
.panel-content {
  position: relative;
  z-index: 2;
  text-align: left;
  /*top: -60px;*/
}

.panel-content h2 {
  font-size: 1.2rem;
  font-weight: 200;
  text-transform: uppercase;
  letter-spacing: 0px;
  transition: transform 1.0s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.5;  /* ← Agrega esto para hacerlo transparente */
}

.panel-content p {
  font-size: 1rem;
  margin-top: 1px;
  opacity: 0;
  max-height: 0;
  line-height: .9rem;
  overflow: hidden;
  transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

/* 🔥 HOVER EFFECT */
.panel:hover .panel-bg {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  mask: linear-gradient(transparent, black, black);
  background: #000;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.3) 5%, rgba(0, 0, 0, 0) 90%);
}

.panel:hover h2 {
  transform: translateY(-5px); /* ← Se mueve hacia arriba */
  opacity: 1; 
}

.panel:hover p {
  opacity: 1;
  max-height: 100px;
}

.panel:not(:last-child) {
  color: white;
  border-right: 1px solid;
  border-image: linear-gradient(to top, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, 0)) 1 100%;
}

.video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: -1;
}


/* Panels responsivos */
/* Pantallas medianas - solo corrige el logo y tagline */
@media (max-width: 1536px) {
  .logo {
    margin: 0 auto !important;
    max-width: 60% !important;
  }

  .hero {
    justify-content: flex-start;
    padding-top: 60px;
  }

  .tagline {
    margin-top: 10%;
    font-size: 0.75rem;
  }
}

/* Panels - breakpoints separados */
@media (max-width: 1024px) {
  .panels {
    grid-template-columns: repeat(2, 1fr);
    height: 40%;
  }
}

@media (max-width: 740px) {
  .panels {
    grid-template-columns: 1fr;
    height: auto;
    overflow-y: auto;
  }

  .panel {
    padding: 20px;
    min-height: 80px;
  }
}



/* Tipografía fluida */
.panel-content h2 {
  font-size: clamp(0.85rem, 1.2vw, 1.2rem);
}

.panel-content p {
  font-size: clamp(0.75rem, 1vw, 1rem);
}


/* ============================================================
   MOBILE MEDIA QUERIES
   Agregar al final de conocenos.css y styles.css según se indica
   ============================================================ */


/* ============================================================
   STYLES.CSS — reemplaza / complementa los @media existentes
   ============================================================ */

@media (max-width: 768px) {

  /* BODY */
  body {
    overflow: auto;
    height: auto;
  }

  /* HERO */
  .hero {
    justify-content: center;
    padding: 40px 20px;
    height: 100svh;
  }

  .logo {
    max-width: 75% !important;
    margin: 0 auto !important;
  }

  .tagline {
    margin-top: 8%;
    font-size: 0.7rem;
    white-space: normal;
    text-align: center;
    padding: 0 10px;
  }

  /* PANELS — apilados verticalmente */
  .panels {
    grid-template-columns: 1fr;
    height: auto;
  }

  .panel {
    min-height: 70px;
    padding: 18px 24px;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .panel:last-child {
    border-bottom: none;
  }

  /* En móvil siempre visible, sin necesidad de hover */
  .panel .panel-bg {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: linear-gradient(0deg, rgba(0,0,0,0.25) 5%, rgba(0,0,0,0) 90%);
  }

  .panel-content h2 {
    opacity: 0.8;
    font-size: 0.9rem;
  }

  .panel-content p {
    display: none; /* se oculta en móvil para no sobrecargar */
  }
}

@media (max-width: 480px) {
  .logo {
    max-width: 85% !important;
  }

  .tagline {
    font-size: 0.65rem;
    margin-top: 6%;
  }

  .panel {
    min-height: 60px;
    padding: 15px 20px;
  }

  .panel-content h2 {
    font-size: 0.8rem;
  }
}