body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #333;
}
/* Hero con imagen de fondo */
.hero {
  background-image: url('../diplomaturas/imagenes/portada.jpg'); /* tu imagen en alta calidad */
  background-size: cover;
  background-position: center;
  height: 60vh; /* ocupa más espacio */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;   /* se mantiene fijo */
  top: 0;
  left: 0;
  width: 100%;
  
}

.hero2 {
  background-image: url('../diplomaturas/imagenes/portada2.jpg'); /* tu imagen en alta calidad */
  background-size: cover;
  background-position: center;
  height: 60vh; /* ocupa más espacio */
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  position: relative;   /* se mantiene fijo */
  top: 0;
  left: 0;
  width: 100%;
  
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.1);
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  padding: 1em;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
}


.hero h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
}
.hero p {
  font-size: 1.5em;
}



/* Menú fijo arriba */


p {
  text-align: justify;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #eee; /* color de fondo */
  padding: 10px;
  z-index: 1000;
}

nav2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #eee; /* color de fondo */
  padding: 10px;
  z-index: 1000;
}
/* Para que el contenido no quede escondido */
main {
  margin-top: 80px; /* ajusta según el alto real del nav */
}

/* Ajuste al hacer scroll hacia las secciones */
section {
  scroll-margin-top: 500px; /* mismo valor que el alto del nav */
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1em;
  margin: 0;
  padding: 1em;
}

nav li {
  background: #004080;
  padding: 0.7em 1em;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav li:hover {
  background: #ed7410cb;
  transform: scale(1.05);
}

nav li:hover a {
  color: #003366;
}

nav2 ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1em;
  margin: 0;
  padding: 1em;
}

nav2 li {
  background: #004080;
  padding: 0.7em 1em;
  border-radius: 8px;
  transition: background 0.3s, transform 0.2s;
}

nav2 a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav2 li:hover {
  background: #cdd9dbcb;
  transform: scale(1.05);
}

nav2 li:hover a {
  color: #003366;
}



.card {
  background: white;
  margin: 1em auto;
  padding: 1em;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 1200px;
}

.card1 {
  background: white;
  margin: 1em auto;
  padding: 1em;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  max-width: 1200px;
}

h2 {
  color: #003366;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
}

.objetivo {
  background: #f0f1f2;
  padding: 1em;
  border-radius: 8px;
  text-align: center;
}

.plan-list li {
  margin: 0.5em 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
}

table th, table td {
  border: 1px solid #ccc;
  padding: 0.5em;
  text-align: center;
}

table th {
  background: #003366;
  color: white;
}

footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 1em;
  margin-top: 2em;
}
.icono{
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #0b5ea8;      /* color del círculo */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,.2);
}

.icono i{
    color: #fff;
    font-size: 2rem;
}

.icono img{
    width: 36px;
    height: 36px;
    object-fit: contain;
}