/* Estilos propios del tema Bonser (se cargan después del CSS del diseño original) */

.bonser-main { display: block; }

.bonser-skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100000;
  background: #fff; color: #000; padding: 10px 16px;
}
.bonser-skip-link:focus { left: 8px; top: 8px; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal;
}

/* ---------- Íconos ---------- */
.bonser-icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; display: block; }

/* ---------- Contacto: LinkedIn + Instagram ---------- */
.u-social-icons-1 {
  width: auto !important;
  gap: 20px;
  justify-content: center;
  margin-left: auto !important;
  margin-right: auto !important;
}
.u-social-icons-1 .u-social-url { display: block; height: 82px; }
.bonser-ig-icon {
  display: flex !important; align-items: center; justify-content: center;
  width: 82px; height: 82px; box-sizing: border-box; padding: 20px;
  border: 2px solid #fff; border-radius: 50%; color: #fff;
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
.bonser-ig-icon .bonser-icon { width: 100%; height: 100%; }

/* ---------- Footer ---------- */
.bonser-footer { padding: 36px 0 18px; text-align: left; color: #fff; }
.bonser-footer__grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 32px;
  padding: 0 20px;
}
.bonser-footer__brand { font-size: 1.5rem; font-weight: 900; letter-spacing: 2px; margin: 0 0 8px; color: #fff; }
.bonser-footer__logo { display: inline-block; margin: 0 0 12px; }
.bonser-footer__logo img { display: block; width: 220px; max-width: 100%; height: auto; }
.bonser-footer__tagline { margin: 0; font-size: .9rem; line-height: 1.5; color: rgba(255,255,255,.9); }
.bonser-footer__title { margin: 0 0 12px; font-size: .85rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; }
.bonser-footer ul { list-style: none; margin: 0; padding: 0; }
.bonser-footer li { margin: 0 0 8px; display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; line-height: 1.4; }
.bonser-footer a { color: #fff; text-decoration: none; }
.bonser-footer a:hover, .bonser-footer a:focus { text-decoration: underline; }
.bonser-footer__social { display: flex; gap: 12px; margin-top: 14px; }
.bonser-footer__social a {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border: 2px solid #fff; border-radius: 50%;
  transition: background .2s, color .2s;
}
.bonser-footer__social a:hover, .bonser-footer__social a:focus { background: #fff; color: #9a4f28; text-decoration: none; }
.bonser-footer__social .bonser-icon { width: 20px; height: 20px; }
.bonser-footer__copy {
  margin: 28px 20px 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.35);
  font-size: .8rem; color: rgba(255,255,255,.85); text-align: center;
}
@media (max-width: 767px) {
  .bonser-footer__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- Plantilla genérica (index.php) ---------- */
.bonser-generic { padding: 60px 0; }
.bonser-generic__title { font-size: 2rem; margin: 0 0 20px; color: #60493b; }
.bonser-generic__content { font-size: 1rem; line-height: 1.7; }
.bonser-generic .u-sheet { padding: 0 20px; }

/* ---------- Home · Nuestros servicios: texto descriptivo bajo cada título ---------- */.u-section-4 .bonser-s4-desc,
.u-section-sv .bonser-s4-desc {
  margin: 10px 20px 0 104px;
  font-size: .95rem; line-height: 1.5; color: #60493b; text-align: left;
}.u-section-4 .u-layout-cell,
.u-section-sv .u-layout-cell { min-height: 0; }
@media (max-width: 575px) {.u-section-4 .bonser-s4-desc,
.u-section-sv .bonser-s4-desc { margin: 14px 20px 0 20px; }
}
/* el título ocupa al menos el alto del ícono, para que el texto de abajo no lo pise */
@media (max-width: 1199px) {.u-section-4 .u-layout-cell h3.u-text,
.u-section-sv .u-layout-cell h3.u-text { min-height: 64px; box-sizing: border-box; }
}
@media (max-width: 991px) {.u-section-4 .u-layout-row,
.u-section-sv .u-layout-row { display: block; }.u-section-4 .u-layout-cell,
.u-section-sv .u-layout-cell,
.u-section-4 .u-layout-wrap-1 .u-size-30,
.u-section-sv .u-layout-wrap-1 .u-size-30 { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }
}

/* ---------- Quienes somos: bloque de presentación (texto + isotipo) ---------- */
.bonser-qs-intro .u-layout-wrap-1 { margin: 40px auto 30px !important; max-width: 1140px; }
.bonser-qs-intro .u-layout-row { display: flex !important; flex-direction: row-reverse; align-items: center; justify-content: center; gap: 48px; padding: 0 30px; }
.bonser-qs-intro .u-layout-cell-1 { flex: 1 1 60%; width: auto !important; min-height: 0 !important; }
.bonser-qs-intro .u-layout-cell-2 { flex: 0 0 280px; width: auto !important; min-height: 0 !important; display: flex; align-items: center; justify-content: center; }
.bonser-qs-intro .u-container-layout-2,
.bonser-qs-intro .u-container-layout-3 { padding: 0 !important; }
.bonser-qs-intro .u-text-2 { font-size: 1.15rem !important; line-height: 1.8 !important; margin: 0 !important; text-align: left; }
.bonser-qs-intro .u-image-2 { width: 260px !important; height: 260px !important; margin: 0 auto !important; background-size: contain !important; background-repeat: no-repeat; }
@media (max-width: 767px) {
  .bonser-qs-intro .u-layout-row { flex-direction: column-reverse; gap: 24px; padding: 0 20px; }
  .bonser-qs-intro .u-layout-cell-1, .bonser-qs-intro .u-layout-cell-2 { flex: 0 0 auto; width: 100% !important; }
  .bonser-qs-intro .u-image-2 { width: 160px !important; height: 160px !important; }
  .bonser-qs-intro .u-text-2 { font-size: 1.05rem !important; }
}
.bonser-qs-intro .u-layout-wrap-1 { width: 100% !important; }
.bonser-qs-intro .u-layout, .bonser-qs-intro .u-layout-row { width: 100%; }
.bonser-qs-intro .u-layout-cell-1 { flex: 0 1 520px !important; }
.bonser-qs-intro .u-text-2 { max-width: 640px; }

/* Quienes somos: línea separadora antes de NUESTROS SERVICIOS */
.bonser-qs-intro .u-layout-wrap-1 { margin-bottom: 40px !important; }
.u-section-sv.u-section-sv--sep::before { content: ""; display: block; width: min(1000px, calc(100% - 40px)); margin: 0 auto; border-top: 1px solid #8a6a5a; }
.bonser-qs-intro .u-layout-cell-2 { width: 280px !important; max-width: 280px !important; min-width: 280px; }
@media (max-width: 767px) { .bonser-qs-intro .u-layout-cell-2 { width: 100% !important; max-width: 100% !important; min-width: 0; } }
.bonser-qs-intro { min-height: 0 !important; padding-bottom: 30px; }
@media (max-width: 767px) { .bonser-qs-intro .u-layout-cell-1, .bonser-qs-intro .u-layout-cell-2 { flex: 0 0 auto !important; } }

/* ---------- Logos de empresas aliadas en celular: legibles y sin recortar ---------- */
section.u-hidden-lg.u-hidden-md.u-hidden-sm.u-hidden-xl img.u-image {
  opacity: .9 !important; object-fit: contain !important;
  display: block; width: auto !important; max-width: 70% !important; height: 56px !important;
  margin: 18px auto !important;
}

/* ---------- Contacto: redes (círculo lleno, mismo trazo que los íconos de dirección y mail) ---------- */
.bonser-social { display: flex; justify-content: center; align-items: center; gap: 24px; width: auto !important; margin: 0 auto !important; }
.bonser-social__btn {
  display: flex; align-items: center; justify-content: center;
  width: 80px; height: 80px; border-radius: 50%; box-sizing: border-box; padding: 21px;
  background: #5d4637; color: #fff; text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.bonser-social__btn:hover, .bonser-social__btn:focus-visible { background: #7a5c4a; transform: translateY(-2px); }
.bonser-social__btn .bonser-icon { width: 100%; height: 100%; display: block; }
.bonser-social-wrap { display: flex !important; align-items: center; justify-content: center; min-height: 100%; }
@media (max-width: 767px) { .bonser-social-wrap { min-height: 220px; } }
.bonser-footer__copy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.bonser-footer__copy a:hover, .bonser-footer__copy a:focus { color: #fff; }

/* ---------- Prensa (listado de entradas y nota individual) ---------- */
.bonser-press-hero { background: #bc9a8a; color: #fff; text-align: center; padding: 56px 20px 48px; }
.bonser-press-hero__title { margin: 0; font-size: 2.4rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #fff; }
.bonser-press-hero__intro { max-width: 760px; margin: 16px auto 0; font-size: 1.1rem; line-height: 1.7; color: #fff; }
.bonser-press-hero__date { display: block; margin-bottom: 10px; font-size: .9rem; letter-spacing: 1.5px; text-transform: uppercase; opacity: .9; }
.bonser-press-hero--single .bonser-press-hero__title { max-width: 900px; margin: 0 auto; font-size: 2rem; text-transform: none; line-height: 1.25; }
.bonser-press { padding: 56px 20px 72px; background: #fff; }
.bonser-press__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.bonser-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e3d9d3; border-radius: 6px; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.bonser-card:hover { box-shadow: 0 10px 28px rgba(93,70,55,.16); transform: translateY(-3px); }
.bonser-card__media { display: block; aspect-ratio: 16 / 10; background: #f1e9e4; overflow: hidden; }
.bonser-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bonser-card__placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.bonser-card__placeholder img { width: 96px; height: 96px; object-fit: contain; opacity: .7; }
.bonser-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 26px; }
.bonser-card__date { font-size: .8rem; letter-spacing: 1.2px; text-transform: uppercase; color: #8a6a5a; }
.bonser-card .bonser-card__title { margin: 8px 0 10px; font-size: 1.05rem !important; line-height: 1.3 !important; font-weight: 500; }
.bonser-card__title a { color: #5d4637; text-decoration: none; }
.bonser-card__title a:hover, .bonser-card__title a:focus { color: #278f8c; }
.bonser-card__excerpt { margin: 0 0 18px; font-size: .95rem; line-height: 1.6; color: #4a4a4a; }
.bonser-card__more { margin-top: auto; align-self: flex-start; font-size: .85rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #278f8c; text-decoration: none; border-bottom: 2px solid transparent; }
.bonser-card__more:hover, .bonser-card__more:focus { border-bottom-color: #278f8c; }
.bonser-press__empty { text-align: center; font-size: 1.1rem; color: #5d4637; padding: 40px 0; }
.bonser-press .navigation.pagination { margin-top: 48px; text-align: center; }
.bonser-press .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.bonser-press .page-numbers { padding: 8px 14px; border: 1px solid #e3d9d3; border-radius: 4px; color: #5d4637; text-decoration: none; }
.bonser-press .page-numbers.current, .bonser-press .page-numbers:hover { background: #5d4637; border-color: #5d4637; color: #fff; }
.bonser-post { max-width: 820px; margin: 0 auto; }
.bonser-post__image { margin: 0 0 32px; }
.bonser-post__image img { display: block; width: 100%; height: auto; border-radius: 6px; }
.bonser-post__content { font-size: 1.05rem; line-height: 1.8; color: #333; }
.bonser-post__content h2, .bonser-post__content h3 { color: #5d4637; margin: 1.6em 0 .6em; }
.bonser-post__content img { max-width: 100%; height: auto; }
.bonser-post__content a { color: #278f8c; }
.bonser-post__back { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid #e3d9d3; }
.bonser-post__back a { color: #5d4637; font-weight: 700; text-decoration: none; }
.bonser-post__back a:hover { color: #278f8c; }
@media (max-width: 991px) { .bonser-press__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) {
  .bonser-press__grid { grid-template-columns: 1fr; gap: 24px; }
  .bonser-press-hero { padding: 40px 20px 34px; }
  .bonser-press-hero__title { font-size: 1.8rem; }
  .bonser-press-hero--single .bonser-press-hero__title { font-size: 1.5rem; }
  .bonser-press { padding: 36px 20px 52px; }
}

.bonser-card .bonser-card__title a { font-size: inherit; line-height: inherit; }

/* ---------- Home · Qué hace Bonser (antes de Propósito) ---------- */
.bonser-what { background: #fff; padding: 64px 20px 56px; }
.bonser-what__sheet { max-width: 980px; margin: 0 auto; text-align: center; }
.bonser-what__title { margin: 0; font-size: 2rem; line-height: 1.25; font-weight: 900 !important; text-transform: uppercase; text-align: center; color: #9a4f28; }
.bonser-what__line { width: 74px; height: 3px; background: #9a4f28; margin: 18px auto 22px; }
.bonser-what__lead { margin: 0 auto; max-width: 860px; font-size: 1.15rem; line-height: 1.7; font-weight: 400; color: #60493b; }
.bonser-what__intro { margin: 28px auto 0; max-width: 860px; font-size: 1rem; line-height: 1.7; color: #60493b; }
.bonser-what__list { list-style: none; margin: 26px auto 0; padding: 0; max-width: 860px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.bonser-what__item { background: #f6efea; border-top: 3px solid #bc9a8a; border-radius: 4px; padding: 20px 20px 22px; font-size: .98rem; line-height: 1.55; color: #60493b; }
.bonser-what__item strong { display: block; margin-bottom: 6px; font-size: 1.05rem; color: #60493b; }
@media (max-width: 767px) {
  .bonser-what { padding: 44px 20px 36px; }
  .bonser-what__title { font-size: 1.5rem; }
  .bonser-what__lead { font-size: 1.05rem; }
  .bonser-what__list { grid-template-columns: 1fr; }
}

/* Home · Propósito: título centrado, en mayúsculas y negrita */
.bonser-purpose-head { text-align: center; padding: 20px 20px 0; }
.bonser-purpose-head__title { margin: 0; font-size: 1.9rem; font-weight: 900 !important; text-transform: uppercase; text-align: center; color: #27908a; }
.bonser-purpose-head__line { width: 74px; height: 3px; background: #27908a; margin: 14px auto 0; }
.u-section-2 .u-layout-wrap-1 { margin-top: 10px; }
.u-section-2 .u-layout-cell-1 .u-text-2 { margin-top: 20px; }
@media (max-width: 767px) {
  .bonser-what__title, .bonser-purpose-head__title { font-size: 1.45rem; }
}

.bonser-what h2.bonser-what__title, .bonser-purpose-head h3.bonser-purpose-head__title { font-weight: 900 !important; }
