/* =========================
   HERO
========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

/* =========================
   FONDO – 3 IMÁGENES
========================== */
.background {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column; /* Mobile: apiladas verticalmente */
    z-index: -2;
}

.background div {
    flex: 1;
    background-size: cover;
    background-position: center;
}

/* Imágenes de fondo individuales */
.bg1 {
    background-image: url("/assets/images/bg/bg-6.jpg");
}

.bg2 {
    background-image: url("/assets/images/bg/bg-7.JPG");
}

.bg3 {
    background-image: url("/assets/images/bg/bg-3.jpeg");
}

/* =========================
   OVERLAY
========================== */
.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, .7));
    z-index: -1;
}

/* =========================
   CONTENIDO CENTRAL
========================== */
.content {
    max-width: 650px;
    padding: 20px;
    animation: fadeUp 1.2s ease forwards;
}

/* =========================
   BOTONES
========================== */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.buttons a {
    padding: 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
    background: linear-gradient(135deg, #0f9b0f, #38ef7d);
    transition: all .4s ease;
    position: relative;
    overflow: hidden;
}

/* Efecto hover – capa de brillo */
.buttons a::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .2);
    opacity: 0;
    transition: .3s;
}

.buttons a:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 18px 40px rgba(0, 255, 150, 0.45);
}

.buttons a:hover::after {
    opacity: 1;
}


/* =========================
   REDES SOCIALES
   (componente <redes-sociales>)
========================== */
.redes-sociales {
  padding: 90px 20px;
  background: #0f0f0f;
  text-align: center;
  color: #fff;
}

.redes-sociales h2 {
  font-size: 2.6rem;
  margin-bottom: 15px;
}

.redes-sociales p {
  max-width: 650px;
  margin: 0 auto 50px;
  font-size: 1.05rem;
  color: #dcdcdc;
  line-height: 1.6;
}

/* Grid con centrado automático:
   - repeat(auto-fit) adapta las columnas al número de cards
   - justify-content: center centra el grupo sin importar cuántas haya */
.redes-contenedor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 200px));
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
  gap: 30px;
}

.red-card {
  background: #151515;
  border-radius: 25px;
  padding: 40px 20px;
  transition: transform .4s, box-shadow .4s;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .7);
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.red-card:hover {
  transform: translateY(-10px) scale(1.05);
}

.red-logo {
  width: 55px;
  height: 55px;
  margin-bottom: 15px;
  fill: #fff;
}

.red-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.red-card span {
  color: #25D366;
  font-weight: 700;
  font-size: .95rem;
}

/* Responsive redes */
@media (max-width: 600px) {
  .redes-contenedor {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}

/* =========================
   BOTÓN FLOTANTE — VOLVER AL INICIO
========================== */
.btn-home {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px 9px 12px;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.72;
  transition: opacity 0.25s ease, background 0.25s ease, transform 0.2s ease;
}

.btn-home svg {
  width: 16px;
  height: 16px;
  fill: #fff;
  flex-shrink: 0;
}

.btn-home:hover,
.btn-home:focus-visible {
  opacity: 1;
  background: rgba(0, 0, 0, 0.72);
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 480px) {
  /* En móvil solo muestra el ícono para no ocupar espacio */
  .btn-home span {
    display: none;
  }

  .btn-home {
    padding: 10px;
  }
}
