/* 🌐 General (PC / Laptop) */
body {
  margin: 0;
  padding: 0;
  background: url("../img/fondo.png") no-repeat center center fixed; /* fondo desktop */
  background-size: cover;
  font-family: Arial, sans-serif;
  color: #f5e0b8;
  min-height: 100vh;
  overflow-y: auto; /* ✅ scroll en PC */
}

/* Contenedor central */
.container.index {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 80%;
}

/* Logo (para desktop; en móvil lo reducimos abajo) */
.logo,
.logo-bottom {
  width: 220px;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Botones */
.btn {
  display: block;
  width: 200px;
  margin: 10px auto;
  padding: 10px;
  text-align: center;
  background: transparent;
  border: 2px solid #f5e0b8;
  border-radius: 6px;
  color: #f5e0b8;
  font-size: 1rem;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: #f5e0b8;
  color: #2c1a08;
}

/* Footer (estilo base; el index fija la posición) */
footer {
  text-align: center;
  font-size: 0.8rem;
  color: #d8c6a5;
  margin: 20px 0;
  opacity: 0.8;
}

/* 📱 Responsive móvil */
@media (max-width: 600px) {
  body {
    background: url("../img/fondocel.jpg") no-repeat center top fixed; /* fondo móvil */
    background-size: cover;
    background-color: #000;
    overflow: hidden;        /* 🚫 sin scroll vertical */
    height: 100svh;          /* alto estable con barra de URL */
  }

  .container.index {
    max-width: 90%;
    top: 54svh !important;             /* posición fija dentro del cilindro */
    transform: translate(-50%, -50%) !important;
  }

  /* Tamaños “mini” */
  h1 {
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .btn {
    width: 150px;             /* compacto */
    font-size: 0.8rem;
    padding: 6px;
    margin: 6px auto;
  }

  .logo,
  .logo-bottom {
    width: 120px;             /* logo pequeño en móvil */
    margin-top: 12px;
  }

  /* Fallback si el navegador no soporta svh */
  @supports not (top: 1svh) {
    .container.index { top: 57% !important; }
  }
}
