/* ====== Fuentes personalizadas ====== */
@font-face {
  font-family: 'MiFuente1';
  src: url('../fonts/DancingScript-Medium.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'MiFuente2';
  src: url('../fonts/BerkshireSwash-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}


header {
  display: flex;
  align-items: center;   /* centra verticalmente respecto al logo */
  justify-content: flex-start;
  padding: 20px;
  background: #1e3d59;
  color: white;
}

header img {
  height: 100px;
  margin-right: 20px; /* espacio entre logo y texto */
}

.header-text {
  flex: 1;                /* ocupa el resto del espacio */
  display: flex;
  flex-direction: column; /* apila el título y subtítulo */
  align-items: center;    /* centra ambos en horizontal */
  text-align: center;
}

/* Título principal */
#nomBoletin {
  font-family: 'MiFuente2', cursive;
  font-size: 2rem;
  font-weight: bold;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeSlide 2s ease-out forwards;
}

/* Subtítulo */
#infBoletin {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  margin-top: 5px;
  font-weight: normal;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeSlide 2s ease-out forwards;
  animation-delay: 1.5s;
}

/* Animación suave */
@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

nav {
  background: #16324f;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 20px;
}

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #f4d35e;
}

/* Botón hamburguesa */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: white;
  margin: 4px 0;
  border-radius: 3px;
  transition: all 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;   /* ya no empuja el contenido */
    top: 100%;            /* justo debajo de la barra de navegación */
    right: 20px;          /* alineado con la hamburguesa */
    background: #1e3d59;
    width: 200px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 999;         /* se muestra sobre el editorial */
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}


/* ====== Editorial ====== */
.editorial {
  max-width: 900px;
  margin: 30px auto;
  padding: 25px 30px;
  background: rgba(30, 61, 89, 0.85); /* azul translúcido */
  color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-align: justify;
  line-height: 1.6;
  animation: fadeInEditorial 2s ease-in forwards;
  opacity: 0;
}

.editorial h2 {
  text-align: center;
  font-family: 'MiFuente1', cursive;
  font-size: 1.8rem;
  margin-bottom: 15px;
}

@keyframes fadeInEditorial {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Layout general ===== */
main {
  display: grid;
  grid-template-columns: 1fr; /* por defecto, una columna (celular) */
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* Eventos y Aniversarios lado a lado en pantallas grandes */
@media (min-width: 768px) {
  .eventos-aniversarios {
    display: grid;
    grid-template-columns: 2fr 1fr; /* eventos más ancho, aniversarios más angosto */
    gap: 20px;
  }
}

/* ===== Servicio ===== */
.servicio {
  text-align: center;
  padding: 40px 20px;
}

.servicio h2 {
  font-family: 'MiFuente1', cursive;
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #1e3d59;
}

.tarjetas-servicio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.tarjeta {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.tarjeta img {
  height: 60px;
  margin-bottom: 15px;
}

/* Responsive: 3 columnas en pantallas grandes */
@media (min-width: 768px) {
  .tarjetas-servicio {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Avisos ===== */
.avisos {
  background: #f4d35e;
  color: #1e3d59;
  padding: 25px;
  border-radius: 12px;
  margin: 30px auto;
  max-width: 900px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.avisos h2 {
  text-align: center;
  margin-bottom: 15px;
}

.avisos ul {
  list-style: none;
  padding: 0;
}

.avisos li {
  margin: 8px 0;
  font-weight: bold;
}

.contador-visitas {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #555;
}
.contador-visitas span {
  background: #00796b;
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: bold;
}

#imgTit{
  width: 70%;          /* En móviles y pantallas pequeñas */
      /* Limita el tamaño máximo */
  height: auto;        /* Mantiene proporción */
  display: block;
  margin: auto;        /* Centrada */
}

@media (min-width: 768px) {
  #imgTit{
    width: 30%;        /* En pantallas medianas */
    max-width: 350px;
  }
}

@media (min-width: 1200px) {
  #imgTit {
    width: 40%;        /* En pantallas grandes */
    max-width: 300px;
  }
}



