@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

/* RESET GENERAL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  margin: 0;
  background-color: black;
  overflow-x: hidden;
}

/* ───────────── VIDEO INTRO ───────────── */
#intro-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#intro-video video {
  width: 90vw;
  height: auto;
  max-height: 75vh;
  object-fit: contain;
  z-index: 10000;
}

.skip-intro {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: #003cff;
  color: white !important;
  border: 3px solid white;
  padding: 16px 40px;
  font-weight: bold;
  border-radius: 30px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 60, 255, 0.8);
  z-index: 99999 !important;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  pointer-events: auto;
}

.skip-intro:hover,
.skip-intro:active {
  background: #0052ff;
  transform: translateX(-50%) scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 60, 255, 1);
}

/* ───────────── CONTENIDO PRINCIPAL ───────────── */
#contenido {
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: env(safe-area-inset-bottom);
}

.pantalla-inicio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100vh;
  width: 100vw;
  background-color: black;
  background-image: url('../imagenes/fondometal1.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding-bottom: 60px;
  box-sizing: border-box;
  position: relative;
}

.menu-inferior {
  width: 100%;
  background-color: #0033a0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 12px 0;
  position: absolute;
  bottom: 0;
  left: 0;
  box-shadow: 0 -2px 10px rgba(0, 51, 160, 0.5);
  z-index: 10;
}

.menu-inferior a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s ease-in-out;
}

.menu-inferior a:hover {
  text-decoration: underline;
  transform: scale(1.05);
  color: #ffd60a;
}

/* ───────────── BOTÓN VOLVER UNIVERSAL ───────────── */
.volver {
  display: inline-block;
  margin-top: 30px;
  background-color: #003399;
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 51, 153, 0.4);
}

.volver:hover {
  background-color: #001f66;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 51, 153, 0.6);
}

/* ───────────── RESPONSIVE: SMARTPHONES VERTICAL ───────────── */
@media screen and (max-width: 767px) and (orientation: portrait) {
  .pantalla-inicio {
    background-color: #000 !important;
    background-image: url('../imagenes/fondometal1.jpg') !important;
    background-size: 100% auto !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    height: 100vh !important;
    padding: 0 0 60px 0 !important;
    justify-content: flex-end !important;
  }

  .menu-inferior {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    gap: 0.5rem;
    padding: 10px 5px;
    flex-wrap: nowrap;
    justify-content: space-around;
  }

  .menu-inferior a {
    font-size: 10.5px;
    white-space: nowrap;
    padding: 0 5px;
  }

  .volver {
    font-size: 13px;
    padding: 10px 22px;
  }

  /* VIDEO OPTIMIZADO PARA MÓVIL VERTICAL */
  #intro-video {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
  }

  #intro-video video {
    width: 95vw;
    max-height: 60vh;
    margin-bottom: 100px;
  }

  /* BOTÓN MUY VISIBLE EN MÓVIL */
  .skip-intro {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #003cff !important;
    color: white !important;
    border: 3px solid white !important;
    padding: 18px 50px !important;
    font-size: 20px !important;
    font-weight: bold !important;
    border-radius: 35px !important;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.5), 0 0 0 5px rgba(0, 60, 255, 0.3) !important;
    z-index: 999999 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  .skip-intro:active {
    transform: translateX(-50%) scale(0.95) !important;
    background: #0052ff !important;
  }
}

/* ───────────── RESPONSIVE: SMARTPHONES HORIZONTAL ───────────── */
@media screen and (max-width: 900px) and (orientation: landscape) {
  .pantalla-inicio {
    background-color: #000 !important;
    background-image: url('../imagenes/fondometal1.jpg') !important;
    background-size: auto 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    height: 100vh !important;
    width: 100vw !important;
    padding: 0 0 50px 0 !important;
    justify-content: flex-end !important;
  }

  .menu-inferior {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    gap: 0.8rem;
    padding: 8px 0;
  }

  .menu-inferior a {
    font-size: 11px;
  }

  /* VIDEO EN HORIZONTAL */
  #intro-video video {
    width: 85vw;
    max-height: 60vh;
    margin-bottom: 80px;
  }

  /* BOTÓN EN HORIZONTAL */
  .skip-intro {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 12px 35px !important;
    font-size: 16px !important;
    z-index: 999999 !important;
    border: 3px solid white !important;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4) !important;
  }
}

/* ───────────── RESPONSIVE: TABLETS ───────────── */
@media screen and (min-width: 768px) and (max-width: 1023px) {
  .pantalla-inicio {
    background-size: cover;
    background-position: center center;
    padding-bottom: 70px;
  }

  .menu-inferior {
    gap: 2rem;
    font-size: 14px;
    padding: 13px 0;
  }

  .menu-inferior a {
    font-size: 14px;
  }

  #intro-video video {
    max-height: 70vh;
  }

  .skip-intro {
    position: fixed;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    padding: 14px 35px;
    z-index: 99999;
  }

  .skip-intro:hover {
    transform: translateX(-50%) scale(1.05);
  }

  .volver {
    font-size: 14px;
    padding: 11px 25px;
  }
}

/* ───────────── RESPONSIVE: PC Y PORTÁTILES ───────────── */
@media screen and (min-width: 1024px) {
  .pantalla-inicio {
    background-size: cover;
    background-position: center center;
    padding-bottom: 60px;
  }

  .menu-inferior {
    gap: 3rem;
    font-size: 15px;
    padding: 14px 0;
  }

  .volver {
    font-size: 15px;
    padding: 12px 28px;
  }

  #intro-video video {
    max-height: 80vh;
  }

  .skip-intro {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
  }

  .skip-intro:hover {
    transform: translateX(-50%) scale(1.05);
  }
}

/* ───────────── TRANSICIONES SUAVES ───────────── */
* {
  scroll-behavior: smooth;
}

/* ───────────── SOPORTE PARA PANTALLAS MUY GRANDES ───────────── */
@media screen and (min-width: 1920px) {
  .menu-inferior {
    gap: 4rem;
    font-size: 16px;
    padding: 16px 0;
  }

  .pantalla-inicio {
    background-size: cover;
    background-position: center center;
  }
}
