/* ========================================
   1) Vídeo de fondo HTML5
   ======================================== */
.fp-background {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  object-fit: cover;
}

/* ===================================================
   2) Overlay semitransparente (fija al 100% viewport)
   =================================================== */
.overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(58, 0, 65, 0.7);
  z-index: 1;
  overflow: hidden;
}
.overlay-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* =====================
   Reset y estilos base
   ===================== */
* {
  box-sizing: border-box;
  margin: 0; padding: 0;
}
html, body {
  width: 100%; height: 100%;
  font-family: sans-serif;
}

/* ===== Header ===== */
.home-header {
  text-align: center;
  padding: 20px 10px;
  color: #fff;
}
.home-logo {
  width: 256px;
  margin-bottom: 8px;
}
.home-header h1 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.home-header p {
  font-size: 1.2rem;
  opacity: .8;
}

/* ===== Main grid ===== */
.home-main {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  padding: 10px;
  max-width: 700px;
  margin: 0 auto;
}

/* ===== Cards ===== */
.home-card {
  background: rgba(64, 0, 96, 0.8);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  padding: 28px 20px;
  text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,.4);
}
.home-card i {
  font-size: 3.5rem;
  margin-bottom: 12px;
  color: #f39c12;
  display: block;
}
.home-card h2 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.home-card p {
  font-size: 1rem;
  opacity: .9;
}

/* ===== Footer ===== */
.home-footer {
  text-align: center;
  color: #fff;
  padding-bottom: 16px;
}
.home-footer .social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 8px;
}
.home-footer .social-links a {
  color: #fff;
  font-size: 2rem;
  transition: color .2s, transform .2s;
}
.home-footer .social-links a:hover {
  color: #f39c12;
  transform: translateY(-2px);
}
.home-footer small {
  font-size: .9rem;
  opacity: .8;
}

/* =====================================
   Responsive móvil (max-width: 540px)
   ===================================== */
@media (max-width: 540px) {
  .home-header { padding: 16px 8px; }
  .home-logo   { width: 192px; }
  .home-header h1 { font-size: 1.5rem; }
  .home-header p  { font-size: 1.2rem; }

  .home-main {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 8px;
  }
  .home-card { padding: 20px 14px; }
  .home-card i { font-size: 3rem; margin-bottom: 8px; }
  .home-card h2 { font-size: 1.2rem; }
  .home-card p  { font-size: .85rem; }

  .home-footer .social-links { gap: 16px; }
  .home-footer .social-links a { font-size: 1.6rem; }
  .home-footer small { font-size: .8rem; }
}

/* ================================
   Ajustes para pantallas bajas
   (altura ≤ 700px)
   ================================ */
@media screen and (max-height: 700px) {
  .home-header { padding: 10px 8px; }
  .home-logo   { width: 150px; margin-bottom: 6px; }
  .home-header h1 { font-size: 1.4rem; margin-bottom: 2px; }
  .home-header p  { font-size: .85rem; }

  .home-main { gap: 8px; padding: 6px; }
  .home-card { padding: 16px 12px; }
  .home-card i       { font-size: 2.4rem; margin-bottom: 6px; }
  .home-card h2      { font-size: 1.1rem; }
  .home-card p       { font-size: .75rem; }

  .home-footer .social-links a { font-size: 1.4rem; }
  .home-footer small            { font-size: .75rem; }
}
