

html {
  scroll-behavior: smooth;
}

.custom-slider-section {
    margin-top: 130px; /*  la altura del menú */
}

/*Tipo de letra  */

/* Títulos con DM Sans en negritas */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700; /* Negritas */
}



/* Textos con Inter */
body, p, span, li, a {
    font-family: 'Inter', sans-serif;
    font-weight: 400; /* Peso regular para texto */
}
  /*menu*/



/* Fuente */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

/* ===== Menú ===== */
.custom-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
    font-family: 'DM Sans', sans-serif;
}

.custom-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}

/* Logo ajustable */
.custom-logo .logo-img {
    max-width: 140px;
    height: auto;
    transition: max-width 0.3s ease;
}

/* Menú principal */
.custom-nav {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

.custom-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.custom-menu li a {
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.custom-menu li a:hover {
    color: #CA9E52; 
}

/* Botón hamburguesa */
.custom-menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #333333;
}

/* Menú ajusta*/

.custom-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.custom-menu > li {
    position: relative;
}

.custom-menu li a {
    text-decoration: none;
    padding: 10px;
    display: block;
}

/* Submenú en escritorio */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff; 
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ddd; 
    z-index: 9999; 
}

.submenu li a {
    padding: 8px 12px;
    white-space: nowrap;
}

/* Mostrar submenú en hover (solo escritorio) */
.custom-menu li:hover .submenu {
    display: block;
}

/* ===== Responsivo ===== */
@media screen and (max-width: 768px) {
    .custom-nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        text-align: center;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .custom-nav.active {
        transform: translateY(0);
        opacity: 1;
    }

    .custom-menu {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }

    /* Submenú en móvil */
    .submenu {
        position: relative; 
        top: auto;
        left: auto;
        background: #F2F2F2; 
        border: none;
        padding-left: 15px; 
    }

    .submenu li a {
        display: block;
        padding: 10px;
        text-align: left; 
    }

    .custom-menu-toggle {
        display: block;
    }
}

@media screen and (max-width: 768px) {
    .custom-logo {
        width: 100%;
        text-align: center;
    }
}



  /* Sección de conferencias */
  .conferencia-section {
    background: #f4d35e;
    border-top: 4px solid #d4a017;
    border-bottom: 4px solid #d4a017;
  }



  /* =============================
   SLIDER 1
   ============================= */
.custom-slider-section {
  width: 100%;
  background-color: #fff;
}

.custom-slider-container {
  position: relative;
  max-width: 1301px; 
  margin: 0 auto;
  overflow: hidden;
}

.custom-slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.custom-slider-slide {
  flex: 0 0 100%;
  background-size: cover;
  background-position: center;
  height: 300px; 
  position: relative;
}

.custom-slider-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #F2F2F2;
  text-align: center;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.custom-slider-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.custom-slider-subtitle {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.custom-slider-button {
  background-color: #CA9E52;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
}

.custom-slider-button:hover {
  background-color: #526855;
}

/* Botones de navegación */
.custom-slider-prev,
.custom-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  z-index: 10;
}

.custom-slider-prev {
  left: 15px;
}

.custom-slider-next {
  right: 15px;
}

.custom-slider-prev:hover,
.custom-slider-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .custom-slider-slide {
    height: 280px; 
    position: relative;
    display: flex;
    justify-content: center; 
    align-items: center;      
    text-align: center;
  }

  .custom-slider-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    padding: 10px;
    text-align: center;
  }

  .custom-slider-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .custom-slider-subtitle {
    font-size: 1rem;
    margin-bottom: 12px;
  }

  .custom-slider-button {
    padding: 8px 16px;
    display: inline-block;
  }
}





/* ===== Footer  ===== */
.custom-footer {
    background-color: #F2F2F2;
    color: #344435;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-column {
    flex: 1 1 220px;
    margin: 15px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #344435;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f39c12;
}

/* Logo footer */
.footer-icon {
    max-width: 300px;
    height: auto;
}


/* Redes sociales footer */
.social-icons {
    display: flex;
    flex-direction:row; 
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    padding: 10px 0;
    box-sizing: border-box;
}

.social-icons a {
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-decoration: none;
    color: #526855; 
    font-size: 14px;
    font-weight: 500;
}

.social-icons img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
    cursor: pointer;
    margin-bottom: 5px; 
}

.social-icons img:hover {
    transform: scale(1.1);
}

.social-icons a span {
    display: block;
    text-align: center;
}









/* Derechos de autor */
.footer-bottom {
    text-align: center;
    margin-top: 10px;
}

.footer-bottom img {
    max-width: 210px;
    height: auto;
}

/* ===== Responsivo ===== */
@media screen and (max-width: 100px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        margin: 10px 0;
    }

    .social-icons {
    display: flex;          
    justify-content: center; 
    align-items: center;     
    gap: 10px;     
    }
}


/*Termina Redes sociales footer */


/* ==============================
   SECCIÓN IMAGEN RESPONSIVA  
   ============================== */
.unique-img-section {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 50px 0; 
}

.unique-img-container {
    width: 100%;
    max-width: 900px; 
}

.unique-img {
    width: 100%;
    height: auto; 
    max-height: 300px; 
    object-fit: cover; 
    display: block;
    border-radius: 4px; 
}

/* Movil */
@media (max-width: 768px) {
    .unique-img {
        max-height: 200px; 
    }
}


html {
  scroll-behavior: smooth;
}





.lja-fourgrid-section {
padding: 1.25rem;
background: transparent;
font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}


.lja-fourgrid-container {
display: flex;
justify-content: space-between;
gap: 1rem;
max-width: 1200px;
margin: 0 auto;
}


.lja-card {
flex: 1;
background: white;
border-radius: 12px;
padding: 1.25rem;
text-align: center;
box-shadow: 0 6px 18px rgba(16,24,40,0.06);
transition: transform 220ms cubic-bezier(.2,.9,.3,1), box-shadow 220ms;
cursor: pointer;
display: flex;
flex-direction: column;
gap: 0.75rem;
min-height: 220px;
text-decoration: none;
}


.lja-card:focus,
.lja-card:hover {
transform: translateY(-6px);
box-shadow: 0 10px 30px rgba(16,24,40,0.12);
outline: none;
}


.lja-card__media {
display: flex;
justify-content: center;
align-items: center;
height: 88px;
}


.lja-card__img {
max-width: 72px;
max-height: 72px;
width: auto;
height: auto;
object-fit: contain;
}


.lja-fourgrid-section {
    padding: 1rem;
  }

  .lja-fourgrid-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .lja-card {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .lja-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(16,24,40,0.12);
  }

  .lja-card__media {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 88px;
  }

  .lja-card__img {
    max-width: 72px;
    max-height: 72px;
    object-fit: contain;
  }

  .lja-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
  }

  .lja-card__desc {
    margin: 0;
    font-size: 0.92rem;
    color: #475569;
    line-height: 1.3;
  }

  /*  móvil */
  @media (max-width: 1024px) {
    .lja-fourgrid-container {
      flex-wrap: wrap;
    }
    .lja-card {
      flex: 1 1 calc(50% - 1rem);
    }
  }

  @media (max-width: 520px) {
    .lja-fourgrid-container {
      flex-direction: column;
    }
    .lja-card {
      flex: 1 1 100%;
      padding: 1rem;
    }
    .lja-card__media {
      height: 72px;
    }
    .lja-card__img {
      max-width: 56px;
      max-height: 56px;
    }
  }




/* Contenedor Final */



@media (min-width: 1024px) {
  .custom-card-section {
    margin-top: 0; 
    margin-bottom: 20px; 
    padding-bottom: 0; 
  }
}

.custom-card-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding:0;
  
}

.custom-card {
  position: relative;
  width: 100%;
  max-width: 1303px;
  height: 300px;
  overflow: hidden;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}


/* Imagen */
.custom-card-image {
  width: 90%;
  height: 390px;
  object-fit: contain;
  display: block;
  
}
/* Contenido sobre la imagen */
.custom-card-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #CA9E52;
  padding: 15px;
  background: rgba(0, 0, 0, 0); 
  border-radius: 10px;
}

/* Título */
.custom-card-title {
  font-size: 40px;
  margin-bottom: 8px;
}

/* Subtítulo */
.custom-card-subtitle {
  font-size: 20px;
  margin-bottom: 5px;
}

/* Botón */
.custom-card-button {
  display: inline-block;
  background-color: #CA9E52; 
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.3s ease;
}

.custom-card-button:hover {
  background-color: #526855; 
}

/* Responsivo */
@media (max-width: 768px) {
  .custom-card {
    max-width: 100%;       
    height: 260px;        
    margin-top: -60px;     
  }

  .custom-card-section {
    padding-top: 5px;    
  }

  .custom-card-title {
    font-size: 22px;
  }

  .custom-card-subtitle {
    font-size: 14px;
  }
}




/* ============================
   Sección Itinerario de Foros
   ============================ */
.foro-section {
  background-color: #f2f2f2;
  padding: 3rem 1rem;
  font-family: 'DMS Sans', 'Inter', sans-serif;
}

.foro-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.foro-title {
  font-size: 2rem;
  color: #344435; /* verde fuerte */
  margin-bottom: 0.5rem;
}

.foro-subtitle {
  font-size: 1.1rem;
  color: #526855; /* verde */
  margin-bottom: 2rem;
}

.foro-table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.foro-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.foro-table th {
  background-color: #344435;
  color: #f2f2f2;
  text-transform: uppercase;
  padding: 1rem;
  font-weight: 600;
}

.foro-table td {
  padding: 1rem;
  border-bottom: 1px solid #ddd;
  color: #344435;
  text-align: center;
}

.foro-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.foro-table tbody tr:hover {
  background-color: #ca9e52; /* dorado */
  color: #f2f2f2;
  transition: 0.3s ease;
}

.foro-table td,
.foro-table th {
  border-right: 1px solid #ddd;
}

.foro-table td:last-child,
.foro-table th:last-child {
  border-right: none;
}

/* Responsividad */
@media (max-width: 768px) {
  .foro-title {
    font-size: 1.6rem;
  }
  .foro-subtitle {
    font-size: 1rem;
  }
  .foro-table {
    font-size: 0.9rem;
    min-width: 100%;
  }
}




/* ============================
   Sección Archivos de Consulta
   ============================ */
.foro-archivos {
  background-color: #ffffff;
  padding: 3rem 1rem;
  font-family: 'DMS Sans', 'Inter', sans-serif;
}

.foro-archivos-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.foro-archivos-title {
  font-size: 2rem;
  color: #344435;
  margin-bottom: 0.5rem;
}

.foro-archivos-subtitle {
  font-size: 1.1rem;
  color: #526855;
  margin-bottom: 2rem;
}

/* Grid de archivos */
.foro-archivos-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr); /* escritorio: 3 columnas */
}

/* Ajuste para móviles */
@media (max-width: 600px) {
  .foro-archivos-grid {
    grid-template-columns: repeat(2, 1fr); /* en móvil: 2 columnas */
    gap: 1rem; /* menos espacio entre cards */
  }
}

.foro-archivo-card {
  background-color: #526855;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-decoration: none;
  color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.foro-archivo-card:hover {
  background-color: #ca9e52; /* dorado */
  color: #f2f2f2;
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.foro-archivo-icon {
  width: 55px;
  height: 55px;
  margin-bottom: 0.8rem;
}

.foro-archivo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.foro-archivo-name {
  font-size: 1rem;
  font-weight: 600;
}
