body {
  background-color: #0f0f23;
  overflow-x: hidden;
}

p {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

label {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
}

input,
select {
  font-family: Poppins, sans-serif;
  font-size: 16px;
  background-color: #0f0f2375 !important;
  color: #517cf4 !important;
  padding: 10px 16px;
  border: 1.5px solid #517cf4 !important;
  border-radius: 12px;
  outline: none;
  box-shadow: 0 2px 8px rgba(81, 124, 244, 0.08) !important;
  transition: border 0.3s, box-shadow 0.3s;
}

input:focus,
select:focus {
  border: 2px solid #d4af37 !important;
  box-shadow: 0 0 8px #d4af37, 0 2px 8px rgba(81, 124, 244, 0.15) !important;
  background-color: #0f0f23cc !important;
  color: #ffffff !important;
}

@media (max-width: 768px) {
  p {
    font-size: 16px;
  }

  h1 {
    font-size: 1.8rem !important;
  }

  h2 {
    font-size: 1.5rem !important;
  }
}

.logo {
  transition: all 0.4s ease-in-out;
}

.logo:hover {
  transform: translateX(10px) scale(1.1);
}

.navbar {
  background: linear-gradient(45deg, #1e3a8a, #0f0f23);
  opacity: 0.95;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-link {
  color: #d4af37 !important;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  transition: all 0.3s ease-in-out;
  font-size: 14px;
}

.nav-link:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

@media (max-width: 768px) {
  .nav-link {
    font-size: 12px;
    padding: 0.3rem 0.5rem !important;
  }

  .navbar svg {
    width: 20px;
    height: 20px;
  }
}

#fisico-background {
  position: relative;
  min-height: 400px;
  padding: 2rem 1rem;
}

#fisico-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("imagenes/extras/parque-hotel.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: -1;
}

#fisico-background-2 {
  position: relative;
  min-height: 770px;
  padding: 2rem 1rem;
}

#fisico-background-2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("imagenes/extras/hotel.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: -1;
}

@media (max-width: 768px) {
  #fisico-background {
    min-height: 350px;
    padding: 1rem 0.5rem;
  }

  #fisico-background-2 {
    min-height: auto;
    padding: 2rem 0.5rem;
  }
}

h1 {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: #ffffff;
}

.bi-stars {
  color: #d4af37 !important;
  transition: all 0.4s ease-in-out;
}

.bi-stars:hover {
  transform: scale(1.3);
  filter: drop-shadow(0 0 30px #d4af37);
  color: #ffffff !important;
}

.container {
  box-shadow: inset 0 0 30px #d4af37,
    inset 0 0 20px #0f0f23, 0 8px 32px rgba(53, 104, 244, 0.7);
  border-radius: 25px;
  padding: 30px;
  background: linear-gradient(135deg, #0f0f23, #1e3a8a);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

@media (max-width: 768px) {
  .container {
    margin: 1rem;
    padding: 20px;
    border-radius: 20px;
  }
}

h2 {
  background: linear-gradient(45deg, #1e3a8a, #d4af37, #ffffff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease-in-out infinite;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.start-message {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.3), rgba(212, 175, 55, 0.2));
  border-radius: 20px 20px 20px 5px;
  padding: 20px;
  border-left: 4px solid #1e3a8a;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
  color: #ffffff;
}

.end-message {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(255, 255, 255, 0.2));
  border-radius: 20px 20px 5px 20px;
  padding: 20px;
  border-right: 4px solid #d4af37;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  color: #ffffff;
}

@media (max-width: 768px) {

  .start-message,
  .end-message {
    font-size: 16px;
    padding: 15px;
    margin-bottom: 1rem;
  }
}

.p-chat-message {
  padding: 40px;
  color: #ffffff;
}

@media (max-width: 768px) {
  .p-chat-message {
    padding: 20px;
  }
}

.card {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.08),
      rgba(30, 58, 138, 0.15));
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(15, 15, 35, 0.5),
    inset 0 1px 0 rgba(212, 175, 55, 0.1);
  transition: all 0.3s ease;
  max-width: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(15, 15, 35, 0.6), 0 0 30px rgba(212, 175, 55, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.5);
}

.card-img-top {
  border-radius: 15px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-img-top:hover {
  transform: scale(1.05);
}

.card h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

@media (max-width: 768px) {
  .card {
    width: 95% !important;
    max-width: none;
    margin: 0 auto;
  }

  .card-img-top {
    height: 350px !important;
  }

  .card h2 {
    font-size: 1.2rem;
  }
}

.btn-custom {
  background: linear-gradient(45deg, #517cf4, #d4af37, #ffffff);
  background-size: 200% 200%;
  border: 2px solid #d4af37;
  color: #0f0f23;
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  padding: 12px 30px;
  border-radius: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
  text-decoration: none;
  display: inline-block;
  animation: gradientShift 3s ease-in-out infinite;
}

.btn-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transition: left 0.5s;
}

.btn-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 0px 40px rgba(212, 175, 55, 0.6);
  color: #0f0f23;
  text-decoration: none;
  border: 2px solid #ffffff;
}

.btn-custom:hover::before {
  left: 100%;
}

.btn-custom:active {
  transform: translateY(-1px);
}

.btn-modal-custom {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(45deg, #1e3a8a, #0f0f23);
  border: 1.5px solid #d4af37;
  border-radius: 25px;
  color: #d4af37;
  padding: 5px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-modal-custom svg {
  margin-right: 5px;
}

.btn-modal-custom:hover {
  background: linear-gradient(45deg, #d4af37, #ffffff);
  color: #0f0f23;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
  border-color: #ffffff;
}

.btn-modal-custom:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.btn-modal-custom:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5), 0 4px 15px rgba(212, 175, 55, 0.4);
}

@media (max-width: 768px) {
  .btn-modal-custom {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}

.modal-content {
  background-color: #0f0f23;
  color: #ffffff;
  opacity: 0.90;
  box-shadow: inset 0 0 50px rgba(55, 212, 196, 0.2),
    inset 0 0 20px rgba(15, 15, 35, 0.5);
}

.footer {
  background: linear-gradient(135deg, #0f0f23, #1e3a8a);
  color: #ffffff;
  padding: 3rem 0 1rem 0;
  margin-top: 2rem;
  border-top: 2px solid #d4af37;
}

.footer-content {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.footer-logo:hover {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.7));
}

.footer h3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #d4af37, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer p {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.footer-divider {
  width: 100px;
  height: 3px;
  background: linear-gradient(45deg, #d4af37, #1e3a8a);
  margin: 1rem auto;
  border-radius: 2px;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

@media (max-width: 768px) {
  .footer {
    padding: 2rem 0 1rem 0;
  }

  .footer-logo {
    width: 60px;
    height: 60px;
  }

  .footer h3 {
    font-size: 1.3rem;
  }

  .footer p {
    font-size: 14px;
  }
}

.student-name {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  color: #d4af37;
}

.specialty-badge {
  background: linear-gradient(45deg, #1e3a8a, #0f0f23);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
  color: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.welcome-logo {
  transition: all 0.4s ease-in-out;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.welcome-logo:hover {
  filter: drop-shadow(0 0 0.75rem rgba(212, 175, 55, 0.7));
}

/* General Gallery adjustments for smaller screens */
.gallery {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  overflow: hidden;
  max-width: 1300px;
  margin: auto;
  justify-content: center;
  /* Center items on smaller screens */
  align-items: flex-start;
  /* Align items to the start */
}

/* Remove min-height for gallery__strip by default */
.gallery__strip {
  /* min-height will be set only for large screens */
}

.gallery__strip__wrapper {
  flex: 0 0 100%;
  /* Default to full width on extra small screens */
  justify-content: center;
  /* Center content within each wrapper */
  border-right: none;
  /* Remove border for smaller screens */
  position: relative;
  padding: 1rem 0;
  /* Add some padding */
}

@media (min-width: 500px) {
  .gallery__strip__wrapper {
    flex: 0 0 50%;
    /* Two columns for screens 500px and up */
    border-right: 2px solid #ffd20aba;
    /* Re-add border for two columns */
  }

  .gallery__strip__wrapper:nth-child(even) {
    border-right: none;
    /* No right border for even columns to prevent double borders */
  }
}

@media (min-width: 768px) {
  .gallery__strip__wrapper {
    flex: 0 0 33.33%;
    /* Three columns for screens 768px and up */
  }

  .gallery__strip__wrapper:nth-child(3n) {
    border-right: none;
    /* No right border for every third column */
  }

  .gallery__strip__wrapper:nth-child(odd) {
    border-right: 2px solid #ffd20aba;
    /* Ensure odd columns have borders */
  }
}

/* Keyframes for gallery animations - REINTRODUCED */
@keyframes move-it {
  0% {
    transform: translateY(0%);
  }

  100% {
    transform: translateY(-100%);
  }
}

@keyframes move-it-2 {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0%);
  }
}

@media (min-width: 950px) {
  .gallery {
    height: 100vh;
    /* Restore height for larger screens */
    flex-wrap: nowrap;
    /* Prevent wrapping on large screens for the column effect */
  }

  .gallery__strip {
    min-height: 100vh;
    /* Apply min-height only for large screens where animations are active */
  }

  .gallery__strip__wrapper {
    flex: 0 0 25%;
    /* Four columns for screens 950px and up */
    border-right: 2px solid #ffd20aba;
    /* Restore all borders */
  }

  .gallery__strip__wrapper:last-child {
    border-right: none;
    /* Remove border for the last strip */
  }

  .gallery__strip.one {
    animation: 60s move-it ease alternate infinite 5s;
    transform: translateY(2%);
  }

  .gallery__strip.three {
    animation: 70s move-it ease alternate infinite 6s;
    transform: translateY(2%);
  }

  .gallery__strip.two {
    animation: 58s move-it-2 ease alternate infinite 5s;
    transform: translateY(-50%);
  }

  .gallery__strip.four {
    animation: 65s move-it-2 ease alternate infinite 5.5s;
    transform: translateY(-50%);
  }

  .gallery__strip:hover {
    animation-play-state: paused;
  }
}

.gallery .photo {
  position: relative;
  text-align: center;
  /* Center align text for better readability on small screens */
  padding-bottom: 2rem;
  /* Adjust padding */
  margin: 1rem 0;
  /* Add vertical margin between photos */
}

.gallery .photo__image img {
  width: 90%;
  /* Keep image width consistent */
  transform: translateX(0%);
  /* Remove initial translation for small screens */
  transition: 1s cubic-bezier(0.19, 1, 0.22, 1) 0.2s;
  object-fit: cover;
  /* Ensure images cover their area well */
  height: 250px;
  /* Set a fixed height for consistency */
  display: block;
  /* Remove extra space below image */
  margin: 0 auto;
  /* Center image */
}

@media (min-width: 950px) {
  .gallery .photo__image img {
    transform: translateX(30%);
    /* Restore translation for large screens */
    height: auto;
    /* Revert to auto height for larger screens */
  }
}

.gallery .photo__name {
  text-transform: uppercase;
  font-size: 30px;
  /* Adjust font size for smaller screens */
  letter-spacing: 1px;
  /* Adjust letter spacing */
  color: transparent;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: white;
  margin-top: -20px;
  /* Adjust margin */
  transition: 0.4s ease-in-out 0.4s;
  position: relative;
  width: 100%;
}

@media (min-width: 768px) {
  .gallery .photo__name {
    font-size: 40px;
    /* Restore font size for larger screens */
    letter-spacing: 2px;
    /* Restore letter spacing */
    margin-top: -25px;
    /* Restore margin */
  }
}

.gallery .photo:hover .photo__image img {
  transform: translateX(0%);
}

.gallery .photo:hover .photo__name {
  color: #fff;
}

.ticket-container {
  background-color: #0f0f23;
  color: #e0e0e0;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(81, 124, 244, 0.3);
  max-width: 800px;
  margin: 50px auto;
  border: 2px solid #517cf4;
}

.ticket-header {
  border-bottom: 2px solid #d4af37;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.ticket-section {
  margin-bottom: 25px;
}

.ticket-section h4 {
  color: #d4af37;
  margin-bottom: 15px;
}

.faq-list {
  list-style-type: none;
  padding-left: 0;
}

.faq-list li {
  margin-bottom: 10px;
  background-color: #1a1a3a;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1px solid #2a2a5a;
}

.faq-read-checkbox-container {
  display: flex;
  align-items: center;
  margin-top: 20px;
  padding: 10px;
  background-color: #2a2a5a;
  border-radius: 8px;
}

.faq-read-checkbox-container label {
  margin-left: 10px;
  font-size: 1.1em;
  color: #fff;
}

.faq-read-checkbox-container img {
  margin-left: 15px;
  width: 30px;
  height: 30px;
}

.print-button-container {
  text-align: center;
  margin-top: 30px;
}

.btn-print-ticket {
  background-color: #d4af37 !important;
  color: #0f0f23 !important;
  font-weight: bold;
  padding: 12px 30px;
  border-radius: 10px;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-print-ticket:hover:not(:disabled) {
  background-color: #e0c26b !important;
  transform: translateY(-2px);
}

.btn-print-ticket:disabled {
  background-color: #555 !important;
  cursor: not-allowed;
  opacity: 0.7;
}

@media print {
  body * {
    visibility: hidden;
  }

  #ticketContent,
  #ticketContent * {
    visibility: visible;
  }

  #ticketContent {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    padding: 20px;
    box-shadow: none;
    border: none;
    background-color: white !important;
    color: black !important;
  }

  .ticket-header,
  .ticket-section h4 {
    color: black !important;
  }

  .faq-read-checkbox-container,
  .print-button-container {
    display: none;
  }
}

.toast {
  background: linear-gradient(135deg, #0f0f23, #1e3a8a);
  color: #ffffff;
  border-radius: 12px;
  border: 1px solid #d4af37;
  box-shadow: 0 8px 32px rgba(81, 222, 244, 0.4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.toast-header {
  background-color: rgba(30, 58, 138, 0.5);
  color: #d4af37;
  border-bottom: 1px solid #d4af37;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
}

.toast-body {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
}

.toast .btn-close {
  filter: invert(1) grayscale(1) brightness(2);
  opacity: 0.9;
}

.tooltip.bs-tooltip-bottom .tooltip-inner {
  background-color: #1a1a3a !important;
  color: #fff !important;
  border: 1px solid #517cf4 !important;
  font-family: "Montserrat", "Lato", sans-serif;
  font-size: 1rem;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #1a1a3a !important;
}