/*
Theme Name: Bacorysund
Theme URI: https://bacorysund.com
Author: EColSi
Description: Sitio corporativo administrable para Bacorysund.
Version: 1.5.0
Text Domain: bacorysund
*/

:root {
  --ink: #161719;
  --steel: #34383d;
  --red: #c90012;
  --red-dark: #8f0010;
  --signal: #f2b705;
  --paper: #f5f6f6;
  --white: #fff;
  --line: #d9dcde;
  --muted: #62686d;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: 0;
}
body.admin-bar .site-header { top: 32px; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--white);
}
.shell,
.page-content > *:not(.alignfull) {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: 76px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(0,0,0,.1);
  backdrop-filter: blur(12px);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: var(--red);
  font-size: 23px;
  font-weight: 850;
  text-decoration: none;
  text-transform: uppercase;
}
.brand img,
.custom-logo {
  width: 235px;
  max-height: 56px;
  object-fit: contain;
}
.site-nav-list {
  display: flex;
  gap: 25px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}
.site-nav .menu-item-has-children { position: relative; }
.site-nav .sub-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 16px);
  left: -18px;
  display: none;
  width: 245px;
  padding: 10px 0;
  margin: 0;
  list-style: none;
  background: var(--white);
  border-top: 4px solid var(--red);
  box-shadow: 0 16px 34px rgba(0,0,0,.16);
}
.site-nav .sub-menu::before {
  position: absolute;
  top: -20px;
  right: 0;
  left: 0;
  height: 20px;
  content: "";
}
.site-nav .sub-menu a {
  display: block;
  padding: 11px 18px;
  line-height: 1.25;
}
.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-menu { display: block; }
.site-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a:focus-visible { color: var(--red); }
.site-nav .nav-cta a {
  padding: 11px 16px;
  color: var(--white);
  background: var(--red);
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}
.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  content: "";
  background: currentColor;
}
.hero {
  min-height: min(760px, calc(100vh - 24px));
  align-items: center;
  color: var(--white);
  background-color: var(--ink);
  border-bottom: 8px solid var(--red);
}
.hero .wp-block-cover__image-background { object-position: center; }
.hero .wp-block-cover__background {
  background: linear-gradient(90deg, rgba(14,15,17,.94) 0%, rgba(14,15,17,.8) 38%, rgba(14,15,17,.22) 67%, rgba(14,15,17,.04) 100%) !important;
  opacity: 1 !important;
}
.hero .wp-block-cover__inner-container { width: 100%; }
.hero-copy-wrap {
  max-width: 700px;
  padding-top: 138px;
  padding-bottom: 72px;
}
.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}
.hero .eyebrow { color: #ff6572; }
.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(50px, 6vw, 82px);
  line-height: 1;
  letter-spacing: 0;
}
.hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #f2f3f3;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.28;
}
.hero-detail {
  max-width: 660px;
  margin: 20px 0 0;
  color: #d7dadc;
}
.hero .wp-block-buttons { margin-top: 32px; }
.hero .wp-block-button__link {
  min-height: 50px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 0;
  font-weight: 800;
}
.hero .is-style-fill .wp-block-button__link { color: var(--white); background: var(--red); }
.hero .is-style-outline .wp-block-button__link {
  color: var(--white);
  background: transparent;
  border-color: rgba(255,255,255,.55);
}
.proof-band {
  position: relative;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(255,255,255,.04) 25%, transparent 25%) 0 0 / 22px 22px,
    var(--steel);
}
.proof-band::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--red);
}
.proof-band .wp-block-columns {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  gap: 0;
}
.proof-band .wp-block-column {
  min-height: 116px;
  padding: 26px 24px;
  border-right: 1px solid rgba(255,255,255,.22);
}
.proof-band .wp-block-column:first-child { border-left: 1px solid rgba(255,255,255,.22); }
.proof-band strong { display: block; color: var(--white); font-size: 20px; }
.proof-band p { margin: 0; color: #dadddf; font-size: 14px; }
.section {
  padding-top: 104px;
  padding-bottom: 104px;
}
.section > :where(
  .section-kicker,
  .section-heading,
  .section-lead,
  .service-grid,
  .about-grid,
  .product-table,
  .process-grid
),
.section > .wp-block-group__inner-container > :where(
  .section-kicker,
  .section-heading,
  .section-lead,
  .service-grid,
  .about-grid,
  .product-table,
  .process-grid
) {
  width: min(calc(100% - 40px), var(--max));
  margin-right: auto !important;
  margin-left: auto !important;
}
.section-paper { background: var(--paper); }
.section-dark { color: var(--white); background: var(--ink); }
.section-dark .section-kicker { color: #ff6572; }
.section-heading {
  max-width: 880px;
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.07;
}
.section-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
}
.section-dark .section-lead { color: #c4c7ca; }
.service-grid {
  margin-top: 56px;
  gap: 18px;
}
.service-card {
  min-height: 330px;
  padding: 28px;
  background: var(--white);
  border-top: 6px solid var(--red);
  box-shadow: 0 12px 30px rgba(22,23,25,.08);
}
.service-card img {
  width: 100%;
  height: 165px;
  object-fit: cover;
}
.service-card h3 { margin: 24px 0 10px; font-size: 23px; line-height: 1.2; }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; }
.about-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.about-grid > .wp-block-column { min-width: 0; }
.about-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 12px solid var(--red);
}
.feature-list { margin-top: 34px; border-top: 1px solid var(--line); }
.feature-row {
  display: block !important;
  position: relative;
  min-height: 72px;
  padding: 20px 0 20px 66px;
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  border-bottom: 1px solid var(--line);
}
.feature-row > p:first-child {
  position: absolute;
  top: 20px;
  left: 0;
  width: 48px;
}
.feature-row > .wp-block-group {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
.feature-row strong { color: var(--red); }
.feature-row h3 { margin: 0 0 6px; font-size: 19px; }
.feature-row p { margin: 0; color: var(--muted); font-size: 15px; }
.product-table {
  margin-top: 48px;
  overflow-x: auto;
}
.product-table table { width: 100%; border-collapse: collapse; }
.product-table th {
  padding: 16px;
  color: var(--white);
  background: var(--red-dark);
  text-align: left;
}
.product-table td {
  padding: 16px;
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.process-grid { margin-top: 52px; gap: 18px; }
.process-step {
  min-height: 220px;
  padding: 28px;
  background: var(--steel);
  border: 1px solid #4d5258;
}
.process-step strong { color: #ff6572; }
.process-step h3 { margin: 38px 0 10px; font-size: 23px; }
.process-step p { margin: 0; color: #d0d3d5; font-size: 15px; }
.contact-band {
  padding-top: 94px;
  padding-bottom: 94px;
  color: var(--white);
  background: var(--red);
}
.contact-band .wp-block-columns { gap: 64px; align-items: end; }
.contact-band > .wp-block-columns,
.contact-band > .wp-block-group__inner-container > .wp-block-columns {
  width: min(calc(100% - 40px), var(--max));
  margin-right: auto !important;
  margin-left: auto !important;
}
.contact-band h2 { margin: 0; font-size: clamp(39px, 6vw, 70px); line-height: 1; }
.contact-band p { color: #ffe8ea; }
.contact-links a {
  display: block;
  margin-top: 8px;
  font-size: clamp(19px, 3vw, 27px);
  font-weight: 800;
  text-underline-offset: 6px;
}
.site-footer { padding: 42px 0; color: #c9ccce; background: var(--ink); }
.footer-grid { display: flex; gap: 30px; justify-content: space-between; }
.footer-grid p { margin: 0; font-size: 14px; }
.entry-page { min-height: 70vh; padding: 150px 0 90px; }
.entry-content { max-width: 820px; }
.entry-featured {
  margin: 0 0 42px;
  overflow: hidden;
  border-bottom: 8px solid var(--red);
}
.entry-featured img {
  width: 100%;
  height: min(52vw, 560px);
  object-fit: cover;
}
.entry-page h1 {
  max-width: 920px;
  margin: 0 0 30px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
}
.entry-content h2 { margin-top: 42px; font-size: clamp(28px, 4vw, 38px); line-height: 1.12; }
.entry-content h3 { margin-top: 30px; font-size: 23px; }
.entry-content li { margin-bottom: 8px; }

.publications-section {
  padding: 104px 0;
  background: var(--paper);
}
.publications-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.publication-card {
  min-height: 420px;
  overflow: hidden;
  background: var(--white);
  border-top: 4px solid var(--red);
}
.publication-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--steel);
}
.publication-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.publication-card:hover .publication-image img { transform: scale(1.025); }
.publication-body { padding: 26px 28px 30px; }
.publication-type {
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.publication-card h3 { margin: 16px 0 14px; font-size: 24px; line-height: 1.2; }
.publication-card h3 a { color: var(--ink); text-decoration: none; }
.publication-card p { color: var(--muted); }
.publication-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--red-dark);
  font-weight: 800;
  text-underline-offset: 5px;
}
.applications-more {
  margin: 38px 0 0;
  text-align: center;
}
.applications-more a {
  display: inline-block;
  padding: 13px 18px;
  color: var(--white);
  background: var(--red);
  font-weight: 800;
  text-decoration: none;
}
.archive-intro {
  padding: 150px 0 54px;
  background: var(--paper);
}
.archive-intro h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
}
.archive-intro p { max-width: 760px; color: var(--muted); }
.archive-applications { padding: 64px 0 100px; }

@media (max-width: 940px) {
  .brand img,
  .custom-logo { width: 190px; }
  .site-nav-list { gap: 17px; }
  .service-grid,
  .process-grid { flex-wrap: wrap !important; }
  .publications-grid { grid-template-columns: 1fr; }
  .service-grid > .wp-block-column,
  .process-grid > .wp-block-column { flex-basis: calc(50% - 12px) !important; }
}

@media (max-width: 760px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header { height: 66px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 66px;
    right: 0;
    left: 0;
    display: none;
    padding: 12px 20px 20px;
    background: var(--white);
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open { display: block; }
  .site-nav-list { width: 100%; gap: 0; align-items: stretch; flex-direction: column; }
  .site-nav a { display: block; padding: 12px 0; }
  .site-nav .nav-cta a { margin-top: 8px; padding-inline: 14px; text-align: center; }
  .site-nav .sub-menu {
    position: static;
    display: block;
    width: 100%;
    padding: 0 0 4px 16px;
    border-top: 0;
    box-shadow: none;
  }
  .site-nav .sub-menu a { padding: 8px 0; color: var(--muted); font-size: 13px; }
  .hero {
    min-height: 720px;
    align-items: flex-end;
  }
  .hero .wp-block-cover__image-background { object-position: 64% center; }
  .hero .wp-block-cover__background {
    background: linear-gradient(180deg, rgba(14,15,17,.15) 0%, rgba(14,15,17,.7) 42%, rgba(14,15,17,.98) 100%) !important;
  }
  .hero-copy-wrap {
    width: calc(100% - 40px) !important;
    max-width: none;
    margin-right: auto !important;
    margin-left: auto !important;
    padding-top: 132px;
    padding-bottom: 58px;
  }
  .hero h1 { max-width: 100%; font-size: clamp(40px, 11vw, 48px); overflow-wrap: normal; }
  .hero-lead,
  .hero-detail { max-width: 100%; }
  .hero .wp-block-buttons { align-items: stretch; flex-direction: column; }
  .hero .wp-block-button,
  .hero .wp-block-button__link { width: 100%; }
  .proof-band .wp-block-columns { flex-wrap: wrap !important; }
  .proof-band .wp-block-column { flex-basis: 50% !important; border-bottom: 1px solid rgba(255,255,255,.22); }
  .section { padding-top: 74px; padding-bottom: 74px; }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .service-grid > .wp-block-column,
  .process-grid > .wp-block-column { flex-basis: 100% !important; }
  .footer-grid { align-items: flex-start; flex-direction: column; }
  .entry-featured { margin-inline: -20px; }
  .entry-featured img { height: 58vw; min-height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
