@charset "utf-8";
/* CITEF - hoja de estilos única (responsive) */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

button, input[type="submit"] { -webkit-appearance: none; appearance: none; border-radius: 0; }

body {
  margin: 0;
  background: #fff url(../images/fondo.jpg) repeat-x center top;
  font-family: Corbel, Arial, Verdana, sans-serif;
  font-size: 14px;
  color: #222;
}

img { max-width: 100%; height: auto; border: 0; }

a { font-weight: bold; color: #006EB5; text-decoration: none; }
a:hover { color: #B2C604; }
a:focus-visible, button:focus-visible { outline: 2px solid #B2C604; outline-offset: 2px; }

h2 { margin: 0 0 6px; color: #0796D2; font-size: 20px; }

h4, .titulo-seccion {
  display: block;
  margin: 0;
  padding: 3px 10px;
  background: #017EC1;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

.principal h4 { margin-bottom: 10px; }

hr { height: 1px; border: 0; background: #0796D2; margin: 15px 0; }

/* ---------- Estructura ---------- */
.contenedor { max-width: 850px; margin: 0 auto; }

.logo { height: 177px; padding-left: 10px; }
.logo img { width: 287px; }

/* ---------- Menú ---------- */
.menu { display: flex; justify-content: flex-end; height: 50px; }
.menu ul { display: flex; margin: 0; padding: 0; list-style: none; }
.menu a {
  display: block;
  padding: 23px 10px 0;
  height: 50px;
  font: bold 11px Arial, Helvetica, sans-serif;
  color: #C8E3F6;
  background: no-repeat center 7px;
}
.menu a:hover { color: #fff; background-image: url(../images/hover-menu.png); }
.menu a.actual { color: #fff; background-image: url(../images/current-menu.png); }
.menu-boton { display: none; }
.menu .largo { display: none; }

/* ---------- Contenidos ---------- */
.contenidos { margin: 15px 0 10px; }

.areas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}
.areas img { display: block; width: 100%; }

.caja { background: #CCD6EB; margin-bottom: 10px; }

.columnas { display: flex; gap: 20px; padding: 10px; }
.principal { flex: 1; min-width: 0; }
.lateral { width: 210px; flex-shrink: 0; }
.lateral .areas { grid-template-columns: 1fr; }

.principal p, .acordeon-contenido { line-height: 1.5; }
.img { float: left; margin: 0 10px 5px 0; }
.limpiar { clear: both; }

/* ---------- Noticias ---------- */
.noticias { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 5px; }
.noticia::after { content: ""; display: block; clear: both; }
.foto-noticia { float: left; width: 130px; margin: 4px 10px 4px 0; }
.imag-noticias { border: 2px solid #017EC1; display: block; }
.titulo-noticias a { font-size: 17px; color: #017EC1; }
.titulo-noticias a:hover { color: #9ABD0E; }

.lateral .noticia { margin: 8px 0; }
.lateral .foto-noticia { width: 80px; }
.lateral .titulo-noticias a { font-size: 14px; }
.lateral .separador { border-bottom: 1px dotted #333; margin: 8px 0; }

.novedad { display: flex; gap: 15px; }
.novedad > img { width: 130px; align-self: flex-start; }
.novedad div { flex: 1; min-width: 0; }

/* ---------- Slideshow ---------- */
.slideshow { position: relative; padding: 5px; }
.slideshow a { display: block; }
.slideshow img { display: block; width: 100%; }
.slideshow a { transition: opacity .5s, visibility .5s; }
.slideshow a + a { position: absolute; top: 5px; left: 5px; right: 5px; }
.slideshow a:not(.visible) { opacity: 0; visibility: hidden; }

/* ---------- Acordeón ---------- */
.acordeon-item { background: #fff; margin-bottom: 6px; border-radius: 3px; }
.acordeon-item h3 { margin: 0; }
.acordeon-titulo {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: bold;
  line-height: inherit;
  padding: 12px 15px 12px 50px;
  font-size: 16px;
  letter-spacing: 1px;
  color: #017EC1;
  text-transform: uppercase;
  position: relative;
}
.acordeon-titulo::before {
  content: "+";
  position: absolute;
  left: 18px;
  font-weight: bold;
}
.acordeon-titulo:hover { color: #B2C604; }
.acordeon-titulo[aria-expanded="true"]::before { content: "–"; }
.acordeon-contenido { padding: 0 15px 12px 30px; }

/* ---------- Contacto ---------- */
.datos-contacto { margin-top: 25px; color: #017EC1; line-height: 1.4; }

/* ---------- Verificar certificados ---------- */
.verificar { padding: 10px 10px 20px; }
.verificar form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.verificar input[type="text"] { padding: 5px; font: inherit; border: 1px solid #999; max-width: 100%; }
.verificar input[type="submit"] { padding: 5px 14px; font: inherit; font-weight: bold; color: #fff; background: #017EC1; border: 0; cursor: pointer; }
.verificar .resultado { margin-top: 20px; padding: 10px; background: #fff; line-height: 1.6; }
.verificar input[type="submit"]:hover { background: #0B6EA5; }

/* ---------- Pie ---------- */
.footer {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 100px;
  padding: 8px 20px 8px 10px;
  background: #0B8ECA;
}
.footer .logo-footer img { width: 145px; display: block; }
.datos-footer {
  flex: 1;
  padding-left: 10px;
  border-left: 2px solid #ABDEF4;
  font-size: 11px;
  font-weight: bold;
  color: #ABDEF4;
}
.logo-2mas2 img { width: 50px; display: block; }

/* ---------- Tablet ---------- */
@media (max-width: 760px) {
  .columnas { flex-direction: column; }
  .lateral { width: auto; }
  .lateral .areas { grid-template-columns: repeat(4, 1fr); }
  .noticias { grid-template-columns: 1fr; }
}

/* ---------- Celular ---------- */
@media (max-width: 600px) {
  .logo { padding: 15px 10px 0; }
  .logo img { width: 230px; }

  .menu { position: relative; height: auto; background: #017EC1; }
  .menu-boton {
    display: block;
    margin-left: auto;
    padding: 10px 16px;
    background: none;
    border: 0;
    color: #fff;
    font: bold 14px Arial, sans-serif;
    cursor: pointer;
  }
  .menu ul { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 10; flex-direction: column; background: #017EC1; }
  .menu.abierto ul { display: flex; }
  .menu a { height: auto; padding: 12px 16px; font-size: 13px; border-top: 1px solid #3a9bd0; background: none !important; }
  .menu a.actual { background: #0B6EA5 !important; }
  .menu .corto { display: none; }
  .menu .largo { display: inline; }

  .contenidos { margin-top: 10px; }
  .areas, .lateral .areas { gap: 4px; }
  .novedad { flex-direction: column; }
  .principal .img { float: none; display: block; margin: 0 auto 10px; }

  .footer { flex-wrap: wrap; justify-content: center; text-align: center; }
  .datos-footer { flex-basis: 100%; border-left: 0; padding: 0; }
}

/* Banners de áreas en 2 columnas sólo en pantallas angostas (evita agrandarlos) */
@media (max-width: 480px) {
  .areas, .lateral .areas { grid-template-columns: repeat(2, 1fr); }
}
