body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      background: #f4f4f9;
    }
   /* HEADER */
.header-titulo {
  position: relative;
  height: 250px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Capa oscura encima para resaltar el texto */
.header-titulo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 1;
}

/* Carrusel de imágenes */
.header-titulo .imagenes-fondo {
  display: flex;
  width: calc(200%);        /* ancho doble por duplicación */
  height: 100%;
  animation: mover 30s linear infinite; /* velocidad y loop */
}

.header-titulo .imagenes-fondo img {
  flex: 1 0 auto;
  object-fit: cover;
  height: 100%;
  width: 20%;               /* cada imagen ocupa el 20% */
}

/* Animación */
@keyframes mover {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%); /* se mueve la mitad (5 imágenes) */
  }
}

/* Texto fijo en el centro exacto con estilo anterior */
.header-titulo h1 {
  position: absolute;            /* lo sacamos del flujo para centrarlo */
  top: 50%;                      /* centro vertical */
  left: 50%;                     /* centro horizontal */
  transform: translate(-50%, -90%);
  color: #fff;
  font-size: 68px;               /* tamaño grande como pediste */
  font-weight: 900;
  text-align: center;
  z-index: 2;
  text-shadow: 4px 4px 12px rgba(0,0,0,0.9); /* sombra fuerte */
  letter-spacing: 3px;           /* espacio entre letras */
  text-transform: uppercase;     /* mayúsculas */
  white-space: nowrap;           /* siempre en una sola línea */
}



    /* NAVBAR */
nav {
  background: #031C9E;
  color: rgb(75, 75, 75);
  padding: 20px;              /* más alto */
  display: flex;
  justify-content: center;
}

nav a {
  color: white;
  margin: 0 20px;             /* más espacio entre enlaces */
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;            /* letras más grandes */
  transition: color 0.3s, transform 0.2s;
}

nav a:hover {
  text-decoration: underline;
  transform: scale(1.1);      /* efecto ligero al pasar el mouse */
}
/* IMAGEN GRANDE */
.banner-visitas {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #000; /* por si la imagen no cubre totalmente */
}

.banner-visitas img {
  width: 100%;         /* ocupa todo el ancho */
  height: auto;        /* mantiene proporción natural */
  display: block;      /* quita espacios en línea */
}


/* CONTADOR ELEGANTE */
.contador-container {
  position: absolute;
  bottom: 30px;
  right: 30px;
  padding: 18px 28px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  font-family: "Arial", sans-serif;
  animation: aparecer 0.8s ease-in-out;
}

/* Texto "Visitas" */
.contador-container p {
  font-size: 15px;
  margin: 0;
  font-weight: 500;
  color: #eaeaea;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Número claro y serio */
.contador-container span {
  display: block;
  font-size: 40px;
  font-weight: bold;
  color: #ffffff;
  margin-top: 6px;
  letter-spacing: 1px;
}

/* Animación de entrada sobria */
@keyframes aparecer {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}



   

    /* FOOTER */
    footer {
      background: #222;
      color: white;
      padding: 30px 20px 10px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      margin-bottom: 20px;
    }

    .footer-col h3 {
      margin-bottom: 10px;
      font-size: 18px;
      border-bottom: 2px solid #444;
      padding-bottom: 5px;
    }

    .footer-col p, .footer-col a {
      font-size: 14px;
      color: #ddd;
      text-decoration: none;
      margin: 5px 0;
      display: block;
    }

    .footer-col a:hover {
      color: #0dc143;
    }

    /* ICONOS REDES EN HORIZONTAL */
    .social-icons {
      display: flex;
      gap: 10px;
      margin-top: 10px;
    }

    .social-icons img {
      width: 28px;
      height: 28px;
      cursor: pointer;
      transition: transform 0.2s;
    }

    .social-icons img:hover {
      transform: scale(1.2);
    }

    .footer-bottom {
      text-align: center;
      font-size: 13px;
      color: #aaa;
      border-top: 1px solid #444;
      padding-top: 10px;
    }