/* iPRE · hoja de estilos única
   Colores: azul #2ea3f2 · naranja #dd7d00 · rojo #de4b2c · cian #18adc7 · marino #165c87 · acento #df9e4a */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: 120px;
  font: 400 14px/1.7 "Open Sans", Arial, sans-serif;
  color: #666;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: #2ea3f2; text-decoration: none; }
img, iframe { max-width: 100%; }
strong { font-weight: 700; }
h1, h2, h3, h4 {
  margin: 0;
  padding-bottom: 10px;
  font-family: "Libre Baskerville", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1em;
  color: #333;
}
h1 { font-size: 30px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
p { margin: 0; padding-bottom: 1em; }
p:last-of-type { padding-bottom: 0; }
ul, ol { margin: 0; padding: 0 0 23px 1em; line-height: 26px; }
ul { list-style: disc; }
ol { list-style: decimal; }
blockquote { margin: 20px 0 30px; padding-left: 20px; border-left: 5px solid #df9e4a; }
blockquote p { padding-bottom: 0; }
.wrap { width: 80%; max-width: 1080px; margin: 0 auto; }
.btn-claro {
  display: inline-block;
  padding: 6px 20px;
  font: 400 20px/34px "Libre Baskerville", Georgia, serif;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 3px;
  transition: background .3s;
}
.btn-claro:hover { background: rgba(255, 255, 255, .2); }

/* ---------- Encabezado ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 120px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1);
  transition: height .4s, box-shadow .4s;
}
.site-header .in {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
  padding: 0 32px 0 34px;
}
.logo { position: relative; z-index: 3; display: block; line-height: 0; }
.logo img { display: block; height: 84px; width: auto; transition: height .4s; }
.scrolled .site-header { height: 54px; box-shadow: 0 0 7px rgba(0, 0, 0, .1); }
.scrolled .logo img { height: 38px; }

.acciones { display: flex; align-items: center; }
.nav { display: flex; align-items: center; }
.nav ul { margin: 0; padding: 0; list-style: none; line-height: 14px; }
.nav > ul { display: flex; align-items: center; }
.nav > ul > li { position: relative; padding-right: 26px; }
.nav > ul > li:last-child { padding-right: 22px; }
.nav a {
  display: block;
  font: 600 20px/14px "Libre Baskerville", Georgia, serif;
  letter-spacing: 2px;
  color: rgba(0, 0, 0, .6);
  transition: opacity .3s, color .3s;
}
.nav a:hover { opacity: .7; }
.nav a.activo, .nav li.activo > a { color: #2ea3f2; }
.nav .tiene-sub > a { padding-right: 20px; position: relative; }
.nav .tiene-sub > a::after {
  content: ""; position: absolute; right: 2px; top: 3px;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) scale(.9);
  opacity: .8;
}
.nav .sub {
  position: absolute; top: calc(100% + 1px); left: 0; z-index: 10;
  width: 240px; padding: 20px 0;
  background: #fff;
  border-top: 3px solid #2ea3f2;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.nav .sub li { padding: 0; }
.nav .sub a { padding: 6px 20px; line-height: 28px; color: rgba(0, 0, 0, .7); width: 200px; }
.nav .tiene-sub:hover > .sub, .nav .tiene-sub:focus-within > .sub { opacity: 1; visibility: visible; }
/* el hueco entre el enlace y el submenú no debe cerrarlo */
.nav .tiene-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 40px; }
.scrolled .nav .sub { top: 100%; }

.btn-buscar, .btn-menu {
  display: block; width: 18px; height: 18px; padding: 0; margin: 0;
  border: 0; background: none; cursor: pointer; color: #666;
}
.btn-buscar svg { display: block; width: 18px; height: 18px; }
.btn-menu { display: none; width: 30px; height: 22px; color: #df9e4a; }
.btn-menu span, .btn-menu::before, .btn-menu::after {
  content: ""; display: block; height: 3px; background: currentColor; border-radius: 1px; margin: 4px 0;
}
.btn-menu span { margin: 0; }

.buscador {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 2;
  display: none; align-items: center;
  padding: 0 32px 0 733px;
  background: rgba(255, 255, 255, .98);
}
.busca-abierto .buscador { display: flex; }
.buscador form { flex: 1; }
.buscador input {
  width: 100%; padding: 0; margin: 0;
  font: 400 20px "Libre Baskerville", Georgia, serif; letter-spacing: 2px;
  color: #333; background: none; border: 0; outline: 0;
}
.buscador input::placeholder { color: #666; opacity: 1; }
.buscador .cerrar {
  width: 18px; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; color: #666;
  position: relative;
}
.buscador .cerrar::before, .buscador .cerrar::after {
  content: ""; position: absolute; left: 1px; right: 1px; top: 8px; height: 2px; background: currentColor;
  transform: rotate(45deg);
}
.buscador .cerrar::after { transform: rotate(-45deg); }

/* ---------- Páginas con secciones (inicio, nosotros, servicios) ---------- */
.pagina { padding: 6vw 0; }
.pagina-inicio { padding: 0; }
.seccion { padding: 6vw 0; }
.seccion:last-child { padding-bottom: calc(2vw + 4px); }

/* Inicio */
.hero {
  position: relative; margin: 0;
  min-height: 410px;
  padding: 206px 13.04% 7px;
  text-align: center; color: #fff;
  background:
    linear-gradient(rgba(0,0,0,.3), rgba(0,0,0,.3)),
    linear-gradient(155deg, rgba(221,125,0,.7) 0%, rgba(222,75,44,.7) 36%, rgba(22,92,135,.7) 73%, rgba(22,92,135,.7) 100%),
    url(../img/hero-bienvenidos.jpg) center / cover no-repeat;
}
.hero h2 { color: #fff; font-size: 46px; line-height: 46px; }
.hero h2 a { color: inherit; }
.hero p { font: 400 15px/1.59 "Libre Baskerville", Georgia, serif; padding: 0; }
.hero .btn-claro { margin-top: 20px; }
.hero .btn-claro:hover { background: rgba(255, 255, 255, .2); }

.cta-servicio {
  padding: 40px 60px;
  text-align: center; color: #fff;
  border-radius: 10px;
  background:
    linear-gradient(164deg, rgba(160,83,0,.82) 1%, rgba(155,70,31,.83) 36%, rgba(18,126,150,.75) 65%, rgba(13,49,84,.82) 100%),
    url(../img/logo-ipre.png) center / cover no-repeat;
}
.cta-servicio h2 { color: #fff; }
.cta-servicio p { padding-bottom: 20px; }

.tarjetas { display: flex; gap: 0 5.5%; margin: 0; }
.tarjetas .tarjeta { width: 20.875%; }
.tarjeta .caja {
  display: block; margin-bottom: -2px;
  padding: 0 0 10px; text-align: center;
  border: 5px solid; border-radius: 10px;
}
.tarjeta h1 {
  font-size: 26px; font-variant: small-caps; color: #0a0606;
  margin-bottom: 16px;
}
.tarjeta .boton {
  display: inline-block; padding: 0 14px 4.2px;
  font: 400 14px/23.8px "Libre Baskerville", Georgia, serif; letter-spacing: 1px;
  color: #0a0606; text-decoration: underline;
  border: 5px solid; border-radius: 10px;
  box-shadow: 4px 4px 1px rgba(0, 0, 0, .3);
}
.tarjeta .boton:hover { opacity: .8; }
.tarjeta > p { margin-top: 5px; font-family: "Libre Baskerville", Georgia, serif; }
.t-art .caja { border-color: #dd7d00; } .t-art .boton { border-color: #165c87; }
.t-not .caja { border-color: #de4b2c; } .t-not .boton { border-color: #18adc7; }
.t-gac .caja { border-color: #18adc7; } .t-gac .boton { border-color: #de4b2c; }
.t-pod .caja { border-color: #165c87; } .t-pod .boton { border-color: #dd7d00; }

/* Texto de páginas */
.servicios .intro { padding-top: 24px; }
.servicios .lista { padding-bottom: 14px; }
.nosotros p { padding-bottom: 14px; }
.nosotros .foto-der { float: right; width: 201px; height: auto; margin: 0 0 0 15px; }
.nosotros h1.sep { margin: 38px 0 56px; }
.nosotros blockquote + h1.sep { margin-top: 67px; margin-bottom: 0; }
.nosotros blockquote h2 { padding-bottom: 10px; }
.nosotros .video { padding-bottom: 14px; text-align: center; }
.nosotros .video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; }
.nosotros .centro { display: block; width: 399px; max-width: 100%; height: auto; margin: 68px auto 38px; }

/* ---------- Entradas y listados ---------- */
.contenido { position: relative; padding-top: 58px; }
.contenido .wrap { position: relative; }
.contenido .wrap::before {
  content: ""; position: absolute; top: -58px; bottom: 0; left: 79.125%;
  width: 1px; background: #e2e2e2;
}
.contenido .principal { width: 79.125%; padding-right: 5.5%; padding-bottom: 23px; min-height: 400px; }
.contenido .principal::after { content: ""; display: block; clear: both; }
.entrada { margin-bottom: 60px; }
.entrada .entry-title a { color: inherit; }
.entrada .post-meta { margin: 0 0 6px; padding: 0 0 15px; }
.post-meta a { color: #666; }
.entry-content { padding-top: 30px; }
.entry-content p { text-align: justify; }
.entry-content p.izq { text-align: left; }
.entry-content h1, .entry-content h2, .entry-content h3 { text-align: justify; }
.entry-content iframe { display: block; border: 0; border-radius: 12px; width: 100%; }
.entry-content img.centro { display: block; margin: 0 auto; height: auto; }
.entrada-unica { margin-bottom: 89px; }
.pagination { clear: both; overflow: hidden; }
.pagination .anterior { float: left; }
.pagination .siguiente { float: right; }
.resultados-vacio { padding-top: 0; }

/* ---------- Pie ---------- */
.site-footer { background: #222; color: #666; }
.site-footer .widgets { display: flex; padding: 61.44px 0 0; min-height: 461px; }
.site-footer .widget { flex: 0 0 47.25%; margin-right: 5.5%; }
.site-footer h2 { font-size: 21px; color: #2ea3f2; }
.site-footer ul { list-style: none; padding: 0; margin: 0; line-height: 17.6px; }
.site-footer li { position: relative; margin-bottom: 8px; padding-left: 14px; font-size: 16px; color: #fff; }
.site-footer li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 6px; height: 6px; border-radius: 50%; background: #df9e4a;
}
.site-footer li a { color: #fff; }
.site-footer li a:hover { opacity: .7; }
.footer-bottom { padding: 15px 0 5px; background: rgba(0, 0, 0, .32); }
.footer-bottom .wrap { display: flex; align-items: flex-start; justify-content: space-between; }
.footer-bottom .info { padding-bottom: 10px; font-size: 17px; line-height: 23.8px; color: #666; }
.social { display: flex; margin: 0; padding: 0; list-style: none; }
.social li { margin: 0 0 0 20px; padding: 0; font-size: 0; }
.social li::before { display: none; }
.site-footer .social a { display: block; width: 24px; height: 29px; color: #666; }
.site-footer .social a:hover { color: #999; opacity: 1; }
.social svg { display: block; width: 28px; height: 28px; margin: 0 -2px; }

/* ---------- Gacetas (visor) ---------- */
.visor-pdf { margin: 8px 0 18px; border: 1px solid #e2e2e2; border-radius: 6px; overflow: hidden; background: #f4f4f4; }
.visor-pdf object { display: block; width: 100%; height: 82vh; min-height: 560px; }
.visor-pdf p { padding: 40px 20px; text-align: center; }
.acciones-pdf { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 20px; }
.boton-pdf { display: inline-block; padding: 9px 20px; border: 2px solid #2ea3f2; border-radius: 3px; background: #2ea3f2; color: #fff; font-weight: 600; text-decoration: none; }
.boton-pdf.claro { background: #fff; color: #2ea3f2; }
.boton-pdf:hover { opacity: .85; }
@media (max-width: 767px) { .visor-pdf object { height: 70vh; min-height: 420px; } }

/* ---------- Tablet y móvil ---------- */
@media (max-width: 980px) {
  body { padding-top: 80px; }
  .site-header { height: 80px; }
  .site-header .in { padding: 0 20px; }
  .logo img { height: 43px; }
  .scrolled .site-header { height: 80px; box-shadow: 0 1px 0 rgba(0, 0, 0, .1); }
  .scrolled .logo img { height: 43px; }
  .nav { display: none; }
  .btn-menu { display: block; }
  .acciones { gap: 22px; }
  .buscador { padding: 0 20px 0 140px; }
  .menu-abierto .nav {
    display: block; position: absolute; top: 80px; left: 39px; right: 39px;
    padding: 15.6px; background: #fff;
    border-top: 3px solid #df9e4a;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
  }
  .nav > ul { display: block; }
  .nav > ul > li { padding: 0; }
  .nav a, .nav .sub a {
    width: auto; padding: 10px 14px; line-height: 23px;
    font: 600 16px/23px "Libre Baskerville", Georgia, serif; letter-spacing: 0; color: #666;
    border-bottom: 1px solid rgba(0, 0, 0, .03);
  }
  .nav .tiene-sub > a::after, .nav .tiene-sub::after { display: none; }
  .nav .tiene-sub > a { padding-right: 14px; }
  .nav .sub {
    position: static; width: auto; padding: 0 0 0 22px;
    opacity: 1; visibility: visible; border: 0; box-shadow: none;
  }
  .nav a.activo, .nav li.activo > a { color: #2ea3f2; }
  .hero { padding: 80px 30px 7px; }
  .hero h2 { font-size: 26px; line-height: 26px; }
  .cta-servicio { padding: 30px 20px; }
  .tarjetas { display: block; }
  .tarjetas .tarjeta { width: 100%; margin-bottom: 30px; }
  .tarjeta > p { text-align: left; }
  .contenido .wrap::before { display: none; }
  .contenido .principal { width: 100%; padding-right: 0; }
  .site-footer .widgets { display: block; min-height: 0; padding-bottom: 60px; }
  .site-footer .widget { width: 100%; margin: 0 0 40px; }
  .site-footer h2 { font-size: 26px; }
  .footer-bottom .wrap { flex-direction: column-reverse; align-items: center; }
  .footer-bottom .info { padding: 8px 0 10px; }
  .social { margin-bottom: 0; }
  .nosotros .foto-der { float: none; display: block; margin: 0 auto 20px; }
}
@media (max-width: 767px) {
  h1 { font-size: 26px; }
  .entry-title { font-size: 26px; }
}

/* ---- Detalles de pulido ---- */
html { scroll-behavior: smooth; }
a { transition: color .2s, opacity .2s; }
.nav .sub { box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.nav .sub a:hover { background: rgba(46, 163, 242, .08); opacity: 1; }
.tarjeta .caja { transition: transform .25s ease, box-shadow .25s ease; }
.tarjeta:hover .caja { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(0, 0, 0, .12); }
.tarjeta .boton { transition: opacity .2s, transform .2s; }
.hero .boton, .cta-servicio .boton { transition: background .2s, color .2s; }
.entrada .entry-title a:hover { color: #2ea3f2; }
.entrada + .entrada { padding-top: 34px; border-top: 1px solid #ececec; }
.entry-content img { max-width: 100%; height: auto; border-radius: 4px; }
.entry-content iframe { max-width: 100%; border: 0; border-radius: 6px; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(46, 163, 242, .35); text-underline-offset: 2px; }
.entry-content a:hover { text-decoration-color: currentColor; }
.site-footer a { transition: opacity .2s; }
:focus-visible { outline: 2px solid #2ea3f2; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tarjeta .caja { transition: none; } }
@media (max-width: 980px) { .tarjeta:hover .caja { transform: none; box-shadow: none; } }

/* ================= Tipografía (revisión general) ================= */
body { font-size: 16px; line-height: 1.75; color: #4a4a4a; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.005em; color: #2b2b2b; padding-bottom: 0; }
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { padding-bottom: 1.1em; }
ul, ol { line-height: 1.7; }

/* títulos de entradas y listados */
.entry-title { font-size: 34px; line-height: 1.2; margin-bottom: 4px; }
.entrada h2.entry-title { font-size: 26px; }
.post-meta { font-size: 14px; color: #888; }
.post-meta a { color: #888; }
.post-meta a:hover { color: #2ea3f2; }

/* cuerpo de las entradas */
.entry-content { font-size: 17px; line-height: 1.8; padding-top: 24px; }
.entry-content p { text-align: left; padding-bottom: 1.15em; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { text-align: left; margin: 1.7em 0 .55em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { font-size: 27px; }
.entry-content h3 { font-size: 22px; }
.entry-content h4 { font-size: 18px; }
.entry-content ul, .entry-content ol { padding-bottom: 1em; }
.entry-content li { margin-bottom: .35em; }
.entry-content blockquote { margin: 1.6em 0; font-style: italic; }

/* Servicios */
.servicios .intro h1 { margin-bottom: 14px; }
.servicios .intro p { font-size: 18px; line-height: 1.7; padding-bottom: 0; }
.servicios .serv, .servicios section { margin-top: 38px; }
.servicios .intro { margin-top: 0; }
.servicios h3 { margin-bottom: 8px; }
.servicios .lista { padding-bottom: 0; line-height: 1.7; }
.servicios p + .lista, .servicios p + ul { margin-top: 4px; }
.servicios .lista li { margin-bottom: 4px; }
.servicios .resaltado { margin: 48px 0 0; font-size: 18px; }
.servicios .cierre { margin-top: 40px; padding-top: 28px; border-top: 1px solid #ececec; }
.servicios .cierre h2 { margin-bottom: 6px; }

/* Nosotros */
.nosotros p { font-size: 17px; line-height: 1.8; }
.nosotros h1.sep, .nosotros blockquote + h1.sep { font-size: 30px; margin: 46px 0 22px; }
.nosotros .video { margin-bottom: 8px; }
.nosotros blockquote { padding-left: 24px; }
.nosotros blockquote h2 { font-size: 21px; line-height: 1.6; font-weight: 400; font-style: italic; color: #444; padding-bottom: 0; }

/* Inicio */
.hero h2 { line-height: 1.1; }
.hero p { line-height: 1.65; }
.cta-servicio p { font-size: 17px; line-height: 1.65; }
.tarjeta h1 { line-height: 1.1; }

/* Pie */
.site-footer h2 { font-size: 20px; margin-bottom: 14px; }
.site-footer li { line-height: 1.7; margin-bottom: 6px; }
.site-footer li::before { top: .72em; }
.site-footer li a { font-size: 15px; }

@media (max-width: 980px) {
  h1 { font-size: 30px; }
  h2 { font-size: 24px; }
  .entry-title { font-size: 28px; }
  .entry-content { font-size: 16px; }
  .entry-content h2 { font-size: 24px; }
  .entry-content h3 { font-size: 20px; }
  .nosotros h1.sep { font-size: 26px; }
  .nosotros blockquote h2 { font-size: 18px; }
}
