/* Importar tipografía Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Fuente global */
body, h1, h2, h3, p, a, input, textarea, label, button {
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

/* Encabezado */
.encabezado {
  background-color: #ffffff;
  border-bottom: 2px solid #e0e0e0;
  padding: 20px 40px;
}

.contenedor-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo-izquierdo {
  height: 70px;
}

.titulo-centro {
  text-align: center;
  flex-grow: 1;
}

.titulo-centro h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0a0a0a;
}

.logos-derechos {
  display: flex;
  gap: 15px;
}

.logo-sep,
.logo-dgeti {
  height: 60px;
}

/* Menú */
.menu {
  background-color: #0b2a56;
  padding: 10px 0;
  text-align: center;
}

.menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
}

.menu a:hover {
  text-decoration: underline;
}

/* Portada */
.portada {
  position: relative;
  height: 100vh;
  background: url("fotos/portada.png") no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.capa-oscura {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  top: 0;
  left: 0;
  z-index: 1;
}

.contenido-portada {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 20px;
}

.contenido-portada h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.contenido-portada p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.boton-rojo {
  background-color: #e40000;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.boton-rojo:hover {
  background-color: #b30000;
}

/* Contacto */
.seccion-contacto {
  padding: 60px 20px;
  background-color: #f5f5f5;
  text-align: center;
}

.seccion-contacto h2 {
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: 700;
}

.formulario-contacto {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.campo-formulario {
  margin-bottom: 20px;
}

.campo-formulario label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.campo-formulario input,
.campo-formulario textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-size: 16px;
}

.campo-formulario textarea {
  resize: vertical;
  height: 120px;
}

.boton-enviar {
  background-color: #0b2a56;
  color: white;
  padding: 12px 25px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.boton-enviar:hover {
  background-color: #00224c;
}

/* Recursos */
.recursos {
  padding: 60px 20px;
  text-align: center;
}

.recursos h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.boton-descargar {
  display: inline-block;
  background-color: #2e7d32;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.boton-descargar:hover {
  background-color: #1b5e20;
}

/* Footer */
.pie-pagina {
  background-color: #001f3f;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .contenedor-logos {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .titulo-centro h1 {
    font-size: 1.5rem;
  }

  .menu ul {
    flex-direction: column;
    gap: 10px;
  }

  .contenido-portada h2 {
    font-size: 2rem;
  }

  .contenido-portada p {
    font-size: 1rem;
  }

  .boton-rojo {
    width: 100%;
  }
}
.seccion-nosotros {
  background-color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.seccion-nosotros h2 {
  font-size: 2.5em;
  color: #0b2a56;
  margin-bottom: 20px;
}

.seccion-nosotros p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 10px auto;
  line-height: 1.8;
  color: #333333;
}
/* ... tu código anterior permanece igual ... */

/* Sección Oferta Académica */
.seccion-oferta {
  padding: 60px 20px;
  background-color: #f0f4f8;
  text-align: center;
}

.seccion-oferta h2 {
  font-size: 2.5em;
  color: #0b2a56;
  margin-bottom: 30px;
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
  gap: 10px;
}

.tab-btn {
  background-color: #0b2a56;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
  background-color: #e40000;
}

.tab-content {
  display: none;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  animation: fadeIn 0.5s ease-in-out;
}

.tab-content h3 {
  color: #0b2a56;
  margin-bottom: 10px;
  font-size: 1.5em;
}

.tab-content p,
.tab-content li {
  font-size: 1.1em;
  color: #333;
}

.tab-content ul {
  padding-left: 20px;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.cards-lic {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.lic-card {
  width: 300px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.lic-card:hover {
  transform: translateY(-5px);
}

.lic-card h4 {
  margin-bottom: 10px;
  color: #0b2a56;
  font-size: 1.2em;
}

.lic-info {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.lic-card.expandido .lic-info {
  max-height: 300px;
  margin-top: 10px;
}
.seccion-mapa {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.seccion-mapa h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #0b2a56;
}

.seccion-mapa p {
  font-size: 1em;
  margin-bottom: 20px;
}

.contenedor-mapa iframe {
  width: 100%;
  max-width: 800px;
  height: 400px;
  border: none;
  border-radius: 8px;
}
.d-none {
  display: none;
}
/* Mejora visual de los campos del formulario */
.formulario-contacto input,
.formulario-contacto select,
.formulario-contacto textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease-in-out;
  background-color: #fdfdfd;
}

.formulario-contacto input:focus,
.formulario-contacto select:focus,
.formulario-contacto textarea:focus {
  border-color: #0b2a56;
  box-shadow: 0 0 4px rgba(11, 42, 86, 0.3);
  outline: none;
}

.formulario-contacto label {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  color: #0b2a56;
}

.boton-enviar {
  background-color: #0b2a56;
  color: white;
  padding: 12px 30px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}

.boton-enviar:hover {
  background-color: #082141;
}
.contenedor-encabezado {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 20px;
}

.logo-con-titulo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo-ara {
  height: 60px;
}

.titulo-ibero {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0a0a0a;
  margin: 0;
}

.logos-derechos {
  display: flex;
  gap: 15px;
}

.logo-sep,
.logo-dgeti {
  height: 55px;
}

@media (max-width: 768px) {
  .contenedor-encabezado {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .logo-con-titulo {
    justify-content: center;
  }

  .titulo-ibero {
    font-size: 1.4rem;
    margin-top: 10px;
  }

  .logos-derechos {
    justify-content: center;
    margin-top: 10px;
  }
}
/* Estilo general del logo con título */
.logo-con-titulo {
  display: flex;
  align-items: center;
  gap: 15px;
}
.logo-ara {
  height: 70px;
}
.titulo-ibero {
  font-size: 1.8rem;
  font-weight: 700;
  color: #0a0a0a;
}

/* Ajustes responsivos para pantallas pequeñas */
@media (max-width: 768px) {
  .logo-con-titulo {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: left;
    flex-wrap: nowrap;
  }

  .logo-ara {
    height: 50px;
  }

  .titulo-ibero {
    font-size: 1.1rem;
    max-width: 60vw;
  }

  .logos-derechos {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }

  .logo-sep,
  .logo-dgeti {
    height: 40px;
    max-width: 100px;
  }

  .menu ul {
    flex-direction: column;
    padding: 0;
    gap: 10px;
  }

  .menu a {
    font-size: 1.1rem;
  }
}