/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Tipografía y colores base */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* Contenedor general */
main {
  max-width: 960px;
  margin: 0 auto 40px;
  background: white;
  padding: 25px 30px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Header */
header {
  text-align: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 2.4rem;
  color: #005a87;
  margin-bottom: 8px;
}

header p {
  font-style: italic;
  color: #666;
  font-size: 1.1rem;
}

/* Navegación */
nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin-bottom: 40px;
  gap: 25px;
  flex-wrap: wrap;
}

nav ul li a {
  text-decoration: none;
  color: #005a87;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: #005a87;
  color: white;
}

/* Secciones */
section {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

section.visible {
  display: block;
}

/* Animación simple */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Imágenes en Inicio */
#inicio img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 15px 0 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

/* Citas */
blockquote {
  font-style: italic;
  color: #777;
  border-left: 4px solid #005a87;
  padding-left: 12px;
  margin: 20px 0;
}

/* Trámites - contenedor tarjetas */
.tramites-container {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 20px;
}

/* Tarjetas trámites */
.tarjeta {
  background: #e9f0f7;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  text-decoration: none;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.15);
}

.tarjeta img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.tarjeta h3 {
  margin: 15px 10px 8px;
  color: #005a87;
}

.tarjeta p {
  padding: 0 12px 15px;
  font-size: 0.95rem;
}

/* Select requisitos */
#requisitos select {
  padding: 8px 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 8px;
  cursor: pointer;
}

#requisitos-lista ul {
  margin-top: 15px;
  list-style: disc inside;
  color: #444;
}

#requisitos-lista p {
  color: #777;
}

/* Contacto */
#contacto {
  font-size: 1.1rem;
  color: #222;
  line-height: 1.5;
}

#contacto p {
  margin-bottom: 10px;
}

/* Acerca */
#acerca img {
  max-width: 100%;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

#acerca ul {
  list-style: inside disc;
  margin-top: 12px;
  color: #444;
}

#acerca ul li strong {
  color: #005a87;
}

/* Footer */
footer {
  text-align: center;
  padding: 15px 10px;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #ddd;
}

/* Footer extra link */
footer a {
  color: #005a87;
  font-weight: 600;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
/* TARJETAS DE TRÁMITES */
.tarjetas-tramites {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 30px 0;
}

.tarjeta {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 280px;
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.tarjeta img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.tarjeta h3 {
  margin-bottom: 10px;
  color: #2c3e50;
}

.tarjeta .boton {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 15px;
  background-color: #007BFF;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.tarjeta .boton:hover {
  background-color: #0056b3;
}
.encabezado {
  background-image: url("https://www.registro-civil-mexico.com/images/logo.png");
  background-size: cover;
  background-position: center;
  height: 80px; /* Reducido para que no se vea tan grande */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 1px 1px 4px #000;
  position: relative;
  width: 100%;
}

.contenido-encabezado {
  text-align: center;
  background-color: rgba(0, 0, 0, 0.5); /* Sombra oscura para el texto */
  padding: 15px 30px;
  border-radius: 8px;
  max-width: 90%;
}

.titulo-principal {
  font-size: 1.8em;
  margin-bottom: 8px;
}

.menu-principal ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.menu-principal a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s;
}

.menu-principal a:hover {
  color: #ffd700;
}
