body {
  margin: 0;
  padding-top: 60px;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
  /*background-color: #005baa; */
}

#home {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hidden {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.visible {
  opacity: 1;
  transform: none;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #005baa;
  display: flex;
  justify-content: center;
  z-index: 1000;
}
.navbar a {
  color: #fff;
  padding: 14px 20px;
  text-decoration: none;
}
.navbar a:hover {
  background: #004080;
}

#logo {
width: 240px;
  margin-bottom: 1rem;
  background-color: #005baa;    /* fondo blanco detrás del logo #fff* #005baa/
  padding: 25px;             /* espacio entre logo y fondo */
  border-radius: 60%;        /* lo hace circular */
  box-shadow: 0 4px 40px rgba(0,0,0,1); /* sombra para dar profundidad */
}

h1, h2 {
  text-align: center;
}
h2 {
  color: #005baa;
  margin-top: 40px;
}

#contador {
  display: flex;
  gap: 1rem;
  margin-top: 20px;
}
#contador div {
  background-color: rgba(0,0,0,0.6);
  padding: 15px 20px;
  border-radius: 8px;
  min-width: 70px;
  text-align: center;
}
#contador span {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
}
#contador small {
  display: block;
  font-size: 0.9rem;
  color: #ddd;
}

/* Calendario */
.calendar-container {
  max-width: 400px;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}
.calendar-container header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0f0f0;
  padding: 10px;
}
.calendar-dates,
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  text-align: center;
}
.calendar-weekdays {
  background: #ddd;
  padding: 5px 0;
}
.calendar-dates div {
  padding: 10px;
  cursor: pointer;
}
.calendar-dates div.today {
  background: #005baa;
  color: #fff;
  border-radius: 50%;
}
.calendar-dates div.selected {
  border: 2px dotted #005baa;
  border-radius: 50%;
}
#contacto {
  max-width: 500px;
  margin: 0 auto 50px;
  text-align: center;         /* centra texto e hijos */
  padding: 0 20px;            /* espacio lateral */
}

#contacto p {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 0.8rem;     /* espacio entre párrafos */
}

#contacto a {
  color: #005baa;
  text-decoration: none;
}
#contacto a:hover {
  text-decoration: underline;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px,1fr));
  gap: 10px;
}
.gallery img {
  width: 100%;
  cursor: pointer;
  border-radius: 4px;
  transition: transform .3s;
}
.gallery img:hover {
  transform: scale(1.05);
}

/* Lightbox */
.modal {
  display: none;
  position: fixed; z-index: 1000;
  padding-top: 60px;
  left:0;top:0;
  width:100%;height:100%;
  background-color: rgba(0,0,0,0.8);
}
.modal-content {
  position: relative;
  margin: auto;
  max-width: 1200px;
}
.mySlides { display: none; }
.mySlides img {
  width:100%;
  max-height: 80vh;
  display: block;
  margin: auto;
}
.close, .prev, .next {
  position: absolute;
  color: white;
  cursor: pointer;
  padding: 10px;
  font-size: 30px;
  user-select: none;
}
.close { top: 15px; right: 35px; }
.prev { top: 50%; left: 0; transform: translateY(-50%); }
.next { top: 50%; right: 0; transform: translateY(-50%); }
