/* Fondo y tipografía base */
body {
  background-color: #0A1A2F;
  background-image: url("../assets/mazo-libro.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #FFFFFF;
  font-family: 'Merriweather', serif;
  font-size: 22px;
}

/* Encabezado */
header {
  background-color: transparent;
  padding: 15px 0;
  font-family: 'Cinzel', serif;
  box-shadow: none;
}

/* Menú de navegación */
nav ul {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  color: #FFFFFF;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-bottom 0.3s ease;
}

nav ul li a:hover {
  color: #FFD700;
  border-bottom: 2px solid #0A1A42;
}

nav ul li a.activo {
  color: #FFD700;
  border-bottom: 2px solid #FFD700;
}

/* Contenido principal */
.servicio-detalle {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.servicio-detalle h1 {
  font-family: 'Cinzel', serif;
  font-size: 40px;
  color: #FFD700;
  margin-bottom: 20px;
}

/* Bloques de contenido */
.bloque-cobranza {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 30px;
}

/* Tarjetas de tipo de cobranza */
.tipo-cobranza {
  background-color: #112A45;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px #00000055;
}

.tipo-cobranza img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  float: left;
  margin-right: 20px;
  border-radius: 6px;
}

.tipo-cobranza h2 {
  color: #FFD700;
  margin-top: 0;
  font-family: 'Cinzel', serif;
}

.tipo-cobranza p {
  clear: both;
  line-height: 1.6;
}

/* 📱 Ajustes responsivos */
@media (max-width: 768px) {
  body {
    font-size: 18px;
    padding: 20px;
  }

  nav ul {
    flex-direction: column;
    gap: 15px;
  }

  nav ul li a {
    font-size: 16px;
    text-align: center;
  }

  .servicio-detalle {
    padding: 0 15px;
    margin: 20px auto;
  }

  .servicio-detalle h1 {
    font-size: 28px;
    text-align: center;
  }

  .bloque-cobranza {
    gap: 20px;
  }

  .tipo-cobranza {
    padding: 15px;
  }

  .tipo-cobranza img {
    width: 50px;
    height: 50px;
    margin-right: 15px;
  }

  .tipo-cobranza h2 {
    font-size: 20px;
  }

  .tipo-cobranza p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
    padding: 10px;
  }

  nav ul li a {
    font-size: 14px;
  }

  .servicio-detalle h1 {
    font-size: 22px;
  }

  .tipo-cobranza img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
  }

  .tipo-cobranza h2 {
    font-size: 18px;
  }

  .tipo-cobranza p {
    font-size: 14px;
  }
}