body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #032b6b;
  color: #fff;
  overflow: hidden;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  padding: 20px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  background-color: #032b6b;
  width: 100%;
  padding: 10px 0;
  z-index: 10;
}

.logo {
  position: absolute;
  left: 40px;
  top: -30px;
}

.logo img {
  height: 140px;
}

#clock {
  position: absolute;
  right: 40px;
  top: 10px;
  font-size: 2.3rem;
  font-weight: 700;
  color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
}

.header h1 {
   margin: 0;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: white;
  text-align: center;
}

/* TARJETAS */
.cards-wrapper {
  position: relative;
  overflow: hidden;
  height: 80vh;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 40px;
  margin-top: 45px;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  display: flex;
  align-items: flex-start; 
  gap: 28px;
  background: #fff;
  color: #000;
  border-radius: 20px;
  padding: 40px 40px 25px 30px; 
  margin-bottom: 25px;
  width: 1000px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  border-top: 2px solid #032b6b; 
  border-bottom: 2px solid #032b6b; 
  align-content: flex-start; 
  flex-wrap: nowrap; 
  position: relative;
}

.card-number {
  position: absolute;
  top: -20px;        
  left: -20px;       
  width: 52px;       
  height: 52px;
  background-color: #032b6b;
  color: white;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 900;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 5px solid white;   
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  z-index: 20;
}

.card .info {
  flex: 1 1 auto; 
  min-width: 0; 
  overflow: visible; 
}

.card .info h2 {
  margin: 0 0 15px;
  font-size: 1.8rem;
  font-weight: 800;
}

.card .info p {
  margin: 8px 0;
  font-size: 1.2rem;
  line-height: 1.4;
}

/* AULA Y HORARIO */
.card .details {
  flex-shrink: 0;
  align-self: flex-start; 
  background: linear-gradient(to bottom, #364F75 60%, #2C2F55 40%);
  color: white;
  border-radius: 15px;
  text-align: center;
  width: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
  border: 2px solid #032b6b;
  padding: 20px;;  
}

.card .details h3 {
  margin: 0 0 10px 0;
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1;
}

.card .details p {
  margin: 5px 0 0 0;
  font-size: 1.9rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.no-data {
  font-size: 1.5rem;
  color: #ddd;
  text-align: center;
  margin-top: 100px;
}

/* RESPONSIVE – MOBILE */
@media (max-width: 600px) {

  .header {
    flex-direction: column;    /* apila logo + texto */
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
  }
  
  .logo {
    position: static !important;   /* quita el absolute */
    width: 100%;
    display: flex;
    justify-content: center;       /* centra el logo */
    margin: 0;
  }

  .logo img {
    height: 80px;
  }

   #clock {
        display: none !important;
    }

  .header h1 {
    position: relative;
    width: 100%;
    text-align: center;
    margin: 10px 0 20px 0;
    font-size: 1.9rem;
    transform: none;
  }

  /* CONTENEDOR TARJETAS */
  .cards-wrapper {
    height: auto;
    margin-top: 20px;
    padding-top: 10px;
  }

  .cards {
    gap: 25px;
  }

  /* TARJETA */
  .card {
    flex-direction: column;   
    width: 90%;
    padding: 40px 20px 25px 20px;
    margin-top: 15px;
    gap: 15px;
    position: relative;
  }

  /* BURBUJA*/
  .card-number {
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  top: -22px;
  left: 0px;       
  right: auto;       
  position: absolute;
  z-index: 100;
}

  
  .card .info h2 {
    font-size: 1.4rem;
    text-align: left;
  }

  .card .info p {
    font-size: 1rem;
  }

  /*AULA / HORARIO */
  .card .details {
    width: 100%;
    padding: 5px 2px 2px 2px;
    border-radius: 12px;
  }

  .card .details h3 {
    font-size: 2.5rem;
  }

  .card .details p {
    font-size: 1.4rem;
  }
}
