* {
    margin: 0px;
    padding: 0px;
    font-family: 'Times New Roman', Times, serif;
    text-decoration: none;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: auto;
    background-color: #0b0c10;
}

header {
    background: darkred;
    height: 80px;
    width: 100%;
    display: block;
}

a.Premos img {
    max-width: 73px;
    margin: 5px;
    border-radius: 20%;
    overflow: hidden;
}

.navbar {
    float: right;
    margin-right: 20px;
}

.navbar a {
    display: inline-block;
    line-height: 80px;
    margin: 0 5px;
    color: white;
}

.titulo-funcion {
  color: #fff;
  text-align: center;
  margin-top: 60px;
  font-size: 1.8rem;
  letter-spacing: 1px;
}

.aviso {
  color: #eee;
  font-size: 0.85rem;
  margin-top: 6px;
  opacity: 0.6;
  text-align: center;
}

/* Contenedor de la tarjeta como un bloque clicable */
.boton-funcion {
  display: block;
  position: relative;
  width: 90%;
  max-width: 600px;
  height: 300px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  cursor: pointer;
  perspective: 800px;
}

/* Capa de parallax 3D */
.boton-funcion .capa-parallax {
  position: absolute; top:0; left:0; right:0; bottom:0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 0.1s ease-out;
  will-change: transform;
}

/* Texto Entrada justo debajo de la tarjeta */
.entrada {
  text-align: center;
  margin: 20px 0 40px;
}
.entrada a {
  color: #e74c3c;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: color .2s;
}
.entrada a:hover {
  color: #c0392b;
}
/* === Modal Premium === */
.popup {
  display: none; /* Oculto por defecto */
  position: fixed;
  inset: 0; /* top, right, bottom, left = 0 */
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  animation: fadeIn 0.25s ease forwards;
}

.popup-content {
  background: #1b1b1b;
  color: #fff;
  border-radius: 10px;
  max-width: 420px;
  margin: 12vh auto;
  padding: 2rem;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
  position: relative;
  text-align: center;
  animation: slideDown 0.35s ease forwards;
}

.popup-content h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.popup-content p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #ccc;
}

.popup-content .btn {
  background-color: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.popup-content .btn:hover {
  background-color: #c0392b;
}

.close {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #aaa;
  transition: color 0.2s ease;
}

.close:hover {
  color: #fff;
}

/* Bloque instructivo fijo en esquina superior derecha */
.instructivo-box {
  position: fixed;
  top: 80px; /* justo debajo del navbar */
  right: 20px;
  background: #ffffff;
  border: 2px solid #0077cc;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  width: 250px;
  z-index: 1000;
}

.instructivo-box h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #0077cc;
}

.instructivo-box p {
  font-size: 14px;
  margin-bottom: 10px;
}

/* Modal */
.modal.hidden { display: none; }
.modal {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000;
}
.modal-box {
  background: #fff; padding: 20px; border-radius: 8px; width: 400px;
  max-height: 80vh; overflow-y: auto;
}

.img-funcion {
  width: 100%;
  height: auto;       /* Mantiene proporción original */
  border-radius: 8px;
  object-fit: contain; /* Muestra la imagen completa */
  display: block;
  background-color: #000; /* opcional: relleno si sobra espacio */
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-15px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}