@font-face {
  font-family: 'Montserrat';
  src: url('../Resources/Fonts/Montserrat-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../Resources/Fonts/Montserrat-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../Resources/Fonts/Montserrat-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&display=swap');

.roman {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: #00594E;
  margin-right: 6px;
}

/* =====================
   ESTILOS GENERALES
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #f4f4f4;
  color: #000000;
  padding: 0;
}

/* =====================
   CONTENEDOR
===================== */
.container {
  max-width: 1100px;
  margin: 20px auto;
  background-color: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.content {
  padding: 40px;
}

/* =====================
   ENCABEZADO
===================== */
.header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 20px;
  margin-bottom: 20px;
  padding-top: 10px;
}

.header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #00594E;
  text-align: center;
  margin: 0;
}

.logo-universidad,
.logo-seminario {
  max-height: 90px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 700px) {
  .header {
    grid-template-columns: 1fr;
    row-gap: 12px;
  }
  .logo-universidad,
  .logo-seminario {
    justify-self: center;
    max-height: 64px;
  }
  .header h1 {
    max-width: 90%;
    justify-self: center;
  }
}

/* =====================
   MENÚ NAVEGACIÓN
===================== */
.menu {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 10;
}

.btn-nav,
.dropbtn {
  background-color: #00594E;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-nav:hover,
.dropbtn:hover {
  background-color: #B5A160;
  transform: scale(1.05);
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 45px;
  left: 0;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  min-width: 180px;
  flex-direction: column;
  animation: fadeInDropdown 0.3s ease-in-out;
}

.dropdown-content li {
  list-style: none;
}

.dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: #00594E;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.dropdown-content a:hover {
  background-color: #B5A160;
  color: white;
  transform: scale(1.02);
}

.dropdown:hover .dropdown-content {
  display: flex;
}

@keyframes fadeInDropdown {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================
   SECCIÓN SEMINARIO
===================== */
.seccion-seminario {
  display: flex;
  align-items: center;
  gap: 25px;
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  border: 2px solid #00594E;
}

.logo-seminario-grande {
  width: 280px;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
}

.texto-seminario {
  flex: 1;
  font-size: 1.25rem;
  line-height: 1.7;
  color: #000;
  text-align: justify;
}

/* =====================
   CONTADOR
===================== */
.contador {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin: 10px 0;
  color: #004a49;
}

.mensaje-motivacional {
  text-align: center;
  font-weight: bold;
  color: #000000;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

/* =====================
   SECCIONES GENERALES
===================== */
section {
  margin-top: 30px;
}

h2 {
  color: #00594E;
  margin-bottom: 10px;
  font-size: 1.8rem;
}

/* =====================
   INFOGRAFÍA
===================== */
.infografia {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 15px;
}

/* =====================
   CONTACTO
===================== */
.contacto a {
  color: #00594E;
  text-decoration: none;
  font-weight: 600;
}

.contacto a:hover {
  text-decoration: underline;
}

/* =====================
   MODAL DE IMAGEN (FULLSCREEN)
===================== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
}

.modal-contenido {
  width: 95%;
  height: 95%;
  object-fit: contain;
  border-radius: 10px;
}

.cerrar {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 50px;
  color: white;
  cursor: pointer;
  z-index: 10000;
}

/* =====================
   FOOTER
===================== */
.footer {
  background-color: #00594E;
  color: white;
  padding: 30px;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 20px;
  text-align: center;
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.footer p {
  margin: 5px 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-container p:first-child {
  font-size: 1rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.footer .logo-universidad,
.footer .logo-seminario {
  max-height: 100px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 700px) {
  .footer {
    grid-template-columns: 1fr;
    row-gap: 12px;
    text-align: center;
  }
  .footer .logo-universidad,
  .footer .logo-seminario {
    justify-self: center;
    max-height: 56px;
  }
}
