
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  font-family: 'Poppins', sans-serif;   
  color: white;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ================= HEADER ================= */
header {
  background-color: #0a5e2a;
  padding: 20px 40px;
  height: 15%;
  display: flex;
  justify-content: space-between;  /* 🔁 Separación máxima entre los dos elementos */
  align-items: center;             /* 🔁 Centrado vertical */
  flex-wrap: wrap;                 /* 🔁 Adaptable a pantallas pequeñas */
}

.header-left h1 {
  font-size: 1.4em;
  font-weight: bold;
  color: white;
  margin: 0;
}

.header-right input {
  padding: 10px 14px;
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #ccc;
  width: 240px;
}

/* Fondo fijo desenfocado */
body::before {
  content: "";
  background-image: url('slider1.jpg');
  transition: opacity 0.5s ease;
  opacity: 1;
  background-size: cover;
  background-position: center;
  filter: blur(5px) brightness(0.5);
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
} 


header h1 {
  font-size: 24px;
  color: white;
  margin: 0;
}

/* MAIN */
main {
  padding: 40px 20px;
  text-align: center;
  flex-grow: 1; /* Empuja el footer hacia abajo */
}

main h2 {
  font-size: 2.5em;
  color: #00ffa0;
  margin-bottom: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 0.9em;
}

th, td {
  padding: 8px;
  border: 1px solid #00a76f;
  text-align: center;
}

th {
  background-color: rgba(0, 255, 170, 0.2);
}

.volver {
  width: 100%;
  text-align: center;
  margin-top: 40px;
}

.volver a {
  color: #00ffa0;
  font-weight: bold;
  font-size: 1em;
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid #00ffa0;
  border-radius: 8px;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.volver a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  margin-top: 20px;
}

.hero-content h2 {
  font-size: 3em;
  color: #00ffa0;
  margin-bottom: 20px;
}
  

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) brightness(0.5);
  z-index: 0;
}


/* BUSCADOR */
#buscador {
  padding: 10px;
  width: 250px;
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid #ccc;
}


/* TARJETAS */
.tarjetas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.tarjeta {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #00a76f;
  border-radius: 10px;
  padding: 20px;
  width: 250px;
  backdrop-filter: blur(5px);
  transition: transform 0.2s ease;
  overflow: hidden; /* importante para recortar el contenido extra */
}

.tarjeta:hover {
  transform: scale(1.05);
}


.tarjeta h3 {
  margin-bottom: 10px;
  color: #00ffa0;
}

.tarjeta ul {
  list-style: none;
  padding: 0;
  font-size: 0.95em;
  text-align: left;
}

/* ENLACE VOLVER */
a {
  color: #00ffa0;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
}

a:hover {
  text-decoration: underline;
}

/* FOOTER */
footer {
  background: rgba(0, 0, 0, 0.61);
  color: white;
  padding: 30px 20px;
  text-align: center;
  font-size: 0.9em;
  border: none;
}

/* Tarjeta expandida y centrada */
.tarjeta.ampliada {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  text-align: center;
  z-index: 5;
}

/* La tabla deja de ser absoluta */
.tarjeta.ampliada .tabla-oculta {
  position: static;
  display: block;
  margin-top: 20px;
  max-height: unset;
  overflow: auto;
}

/* Estilo dentro de la tabla ya existente */
.tabla-oculta table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 0.95em;
  background-color: rgba(255, 255, 255, 0.05);
}

.tabla-oculta th, .tabla-oculta td {
  padding: 8px;
  border: 1px solid #00ffa0;
  text-align: center;
}

.tabla-oculta th {
  background-color: rgba(0, 255, 170, 0.2);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
