/* ========================================
   HSEQTECH PREVENSA SpA Chile
   Bootstrap 5 + Font Awesome 6 Free
   ======================================== */

:root {
  --blue-dark:   #182A4E;
  --blue-mid:    #253f75;
  --blue-light:  #e8eef8;
  --yellow:      #F9C921;
  --yellow-dark: #d4a90a;
  --white:       #ffffff;
  --gray-light:  #f4f6fa;
  --gray-mid:    #dde2ed;
  --gray-text:   #5a6478;
  --text-dark:   #1a2332;

  /* Bootstrap overrides */
  --bs-primary:        #182A4E;
  --bs-primary-rgb:    24,42,78;
  --bs-link-color:     #253f75;
  --bs-border-radius:  6px;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--text-dark); }

/* ── NAVBAR ── */
.navbar {
  background: var(--blue-dark) !important;
  padding: 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
.navbar-brand img { height: 46px; width: auto; }

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) ;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 14px !important;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  text-transform: uppercase;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--yellow) !important;
}
.navbar-toggler { border-color: rgba(255,255,255,0.3); }
.navbar-toggler-icon { filter: invert(1); }

.btn-nav-cta {
  background: var(--yellow) !important;
  color: var(--blue-dark) !important;
  font-weight: 700 !important;
  border-radius: 4px;
  border: 2px solid var(--yellow);
}
.btn-nav-cta:hover { background: var(--blue-dark) !important; }
.btn-nav-cta.active { background: var(--blue-dark) !important; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  background: var(--blue-dark);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-image: url(/wp-content/uploads/2026/06/work-constructors-scaled.jpg);
  background-position: center;
  opacity: 0.8;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(24,42,78,0.9) 45%, rgba(24,42,78,0.55));
}
.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
}
.hero-content h1 span { color: var(--yellow); }
.hero-content .lead { color: rgba(255,255,255,0.88); font-size: clamp(1rem, 2vw, 1.18rem); }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  font-weight: 600;
}
.btn-primary:hover { background: var(--blue-mid); border-color: var(--blue-mid); }

.btn-yellow {
  background: var(--yellow);
  color: var(--blue-dark);
  border: none;
  font-weight: 700;
}
.btn-yellow:hover { background: var(--yellow-dark); color: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(249,201,33,0.4); }

.btn-outline-light:hover { color: var(--blue-dark) !important; }

/* ── STATS BAR ── */
.stats-bar { background: var(--blue-dark); }
.stat-item {
  padding: 32px 16px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 2.2rem; font-weight: 900; color: var(--yellow); display: block; line-height: 1; }
.stat-label  { color: rgba(255,255,255,0.7); font-size: 0.83rem; margin-top: 5px; }

/* ── SECTION LABELS ── */
.section-label {
  display: inline-block;
  background: var(--yellow);
  color: var(--blue-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1.2;
}
.section-title-white { color: var(--white); }

/* ── SERVICE CARDS ── */
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 10px;
  padding: 32px 26px;
  height: 100%;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.service-card:hover { box-shadow: 0 12px 36px rgba(24,42,78,0.12); transform: translateY(-4px); border-color: var(--blue-mid); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 54px; height: 54px;
  background: var(--blue-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.4rem;
  color: var(--blue-dark);
}
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--blue-dark); margin-bottom: 10px; }
.service-card p  { color: var(--gray-text); font-size: 0.9rem; line-height: 1.6; }
.service-card .card-link {
  display: inline-block; margin-top: 16px;
  color: var(--blue-mid); font-weight: 600; font-size: 0.88rem;
  text-decoration: none; border-bottom: 2px solid transparent;
  transition: border-color 0.2s;
}
.service-card .card-link:hover { border-color: var(--yellow); }

/* ── ABOUT ── */
.about-img-wrap { position: relative; }
.about-img-wrap img { width: 100%; height: 460px; object-fit: cover; border-radius: 12px; }
.img-badge {
  position: absolute; bottom: -16px; left: -16px;
  background: var(--yellow); color: var(--blue-dark);
  border-radius: 10px; padding: 18px 22px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}
.img-badge strong { font-size: 1.9rem; font-weight: 900; display: block; }
.img-badge span   { font-size: 0.78rem; font-weight: 600; }

.value-box {
  background: var(--blue-light);
  border-radius: 8px; padding: 16px 18px;
}
.value-box h5 { color: var(--blue-dark); font-size: 0.88rem; font-weight: 700; margin-bottom: 4px; }
.value-box p  { color: var(--gray-text); font-size: 0.9rem; margin: 0; }

/* ── CERT CARDS ── */
.cert-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 10px; padding: 28px 20px;
  text-align: center; height: 100%;
  transition: box-shadow 0.2s;
}
.cert-card:hover { box-shadow: 0 8px 28px rgba(24,42,78,0.1); }
.cert-badge {
  width: 60px; height: 60px;
  background: var(--blue-dark); color: var(--yellow);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 800; text-align: center;
  line-height: 1.2; margin: 0 auto 14px;
}
.cert-card h5 { color: var(--blue-dark); font-size: 0.92rem; font-weight: 700; margin-bottom: 6px; }
.cert-card p  { color: var(--gray-text); font-size: 0.82rem; margin: 0; }

/* ── PLATFORM TABLE ── */
.platform-table { border-radius: 10px; overflow: hidden; border: 1px solid var(--gray-mid); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.platform-table thead { background: var(--blue-dark); color: var(--white); }
.platform-table thead th { padding: 14px 18px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; border: none; }
.platform-table tbody tr { border-bottom: 1px solid var(--gray-mid); transition: background 0.15s; }
.platform-table tbody tr:hover { background: var(--blue-light); }
.platform-table tbody td { padding: 14px 18px; font-size: 0.88rem; vertical-align: top; border: none; }
.platform-table tbody td:first-child { font-weight: 700; color: var(--blue-dark); }

/* ── NORM TAGS ── */
.norm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.norm-tag {
  background: var(--blue-light); color: var(--blue-dark);
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 9px; border-radius: 4px;
}

/* ── CTA BAND ── */
.cta-band {
  background: linear-gradient(135deg, rgba(24,42,78,0.80) 0%, rgba(37,63,117,0.88) 100%),
  url(/wp-content/uploads/2026/06/Documento.png) center / cover no-repeat;
  padding: 80px 0;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);
  padding: 140px 0 80px;
  color: var(--white);
}
.page-hero .breadcrumb-item a        { color: var(--yellow); text-decoration: none; }
.page-hero .breadcrumb-item.active   { color: rgba(255,255,255,0.7); }
.page-hero .breadcrumb-item+.breadcrumb-item::before { color: rgba(255,255,255,0.4); }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
.page-hero .lead { opacity: 0.85; max-width: 600px; }

/* ── ACCORDION ── */
.accordion-item   { border: none; border-bottom: 1px solid var(--gray-mid); }
.accordion-item:last-child { border-bottom: none; }
.accordion-button {
  font-weight: 700; color: var(--blue-dark);
  background: var(--white); font-size: 0.97rem;
}
.accordion-button:not(.collapsed) {
  background: var(--blue-light); color: var(--blue-dark);
  box-shadow: none;
}
.accordion-button::after { filter: brightness(0) saturate(100%) invert(14%) sepia(42%) saturate(830%) hue-rotate(190deg) brightness(90%) contrast(95%); }
.accordion-button:focus { box-shadow: none; }
.accordion-body  { color: var(--gray-text); font-size: 0.92rem; line-height: 1.7; padding-top: 8px; }
.accordion-body ul { padding-left: 18px; }
.accordion-body li { margin-bottom: 5px; }
.accordion { border: 1px solid var(--gray-mid); border-radius: 10px; overflow: hidden; }

/* ── CONTACT ── */
.contact-icon {
  width: 42px; height: 42px;
  background: var(--yellow); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-dark); font-size: 1rem;
  flex-shrink: 0;
}
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--gray-mid);
  border-radius: 12px; padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.form-control:focus, .form-select:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(37,63,117,0.12);
}
.form-label { font-size: 0.83rem; font-weight: 600; color: var(--text-dark); }

/* ── MISSION / VISION CARDS ── */
.mission-card {
  background: var(--blue-dark); color: var(--white);
  border-radius: 12px; padding: 44px 36px;
  height: 100%; position: relative; overflow: hidden;
}
.vision-card {
  background: var(--yellow); color: var(--blue-dark);
  border-radius: 12px; padding: 44px 36px;
  height: 100%; position: relative; overflow: hidden;
}
.mv-deco-1, .mv-deco-2 {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.mission-card .mv-deco-1 { width: 120px; height: 120px; background: rgba(249,201,33,0.12); top: -20px; right: -20px; }
.mission-card .mv-deco-2 { width: 160px; height: 160px; background: rgba(249,201,33,0.07); bottom: -40px; left: -40px; }
.vision-card  .mv-deco-1 { width: 120px; height: 120px; background: rgba(24,42,78,0.1);   top: -20px; right: -20px; }
.vision-card  .mv-deco-2 { width: 160px; height: 160px; background: rgba(24,42,78,0.06);  bottom: -40px; left: -40px; }
.mv-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 18px;
}
.mission-card .mv-badge { background: var(--yellow); color: var(--blue-dark); }
.vision-card  .mv-badge { background: var(--blue-dark); color: var(--yellow); }
.vision-card  .highlight { font-weight: 700; }

/* ── POLICY PAGE ── */
.policy-section h4 {
  color: var(--blue-dark); font-size: 1.1rem; font-weight: 700;
  border-left: 4px solid var(--yellow); padding-left: 14px; margin-bottom: 12px;
}
.policy-section p, .policy-section li { color: var(--gray-text); font-size: 0.94rem; line-height: 1.7; }
.policy-section ul { padding-left: 20px; }
.policy-section li { margin-bottom: 5px; }

.policy-tabs .nav-link {
  color: var(--gray-text); font-weight: 600; border: none;
  border-bottom: 3px solid transparent; border-radius: 0; padding: 12px 22px;
}
.policy-tabs .nav-link.active {
  color: var(--blue-dark); font-weight: 700;
  border-bottom-color: var(--blue-dark); background: none;
}
.policy-tabs { border-bottom: 2px solid var(--gray-mid); }

/* ── VALUE PILLARS ── */
.pillar-card {
  text-align: center; padding: 30px 20px;
  border: 1px solid var(--gray-mid); border-radius: 10px;
  height: 100%; transition: box-shadow 0.2s;
}
.pillar-card:hover { box-shadow: 0 8px 28px rgba(24,42,78,0.1); }
.pillar-icon {
  width: 60px; height: 60px;
  background: var(--blue-dark); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--yellow);
  margin: 0 auto 16px;
}
.pillar-card h5 { color: var(--blue-dark); font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.pillar-card p  { color: var(--gray-text); font-size: 0.85rem; margin: 0; }

/* ── VALUE-ADD DARK CARDS ── */
.va-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 26px 22px; height: 100%;
}
.va-card .va-icon { color: var(--yellow); font-size: 1.5rem; margin-bottom: 10px; }
.va-card h5 { color: var(--white); font-size: 0.95rem; font-weight: 700; margin-bottom: 7px; }
.va-card p  { color: rgba(255,255,255,0.68); font-size: 0.85rem; margin: 0; }

/* ── DOC ITEMS ── */
.doc-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--white); border-radius: 8px;
  padding: 14px 16px; border-left: 4px solid var(--yellow);
  margin-bottom: 12px;
}
.doc-item .doc-emoji { font-size: 1.2rem; line-height: 1.4; }
.doc-item strong { color: var(--blue-dark); font-size: 0.9rem; display: block; margin-bottom: 2px; }
.doc-item p { color: var(--gray-text); font-size: 0.82rem; margin: 0; }

/* ── MINERA CARDS ── */
.minera-card {
  background: var(--white); border-radius: 8px;
  padding: 16px 18px; border: 1px solid var(--gray-mid);
  margin-bottom: 12px;
}
.minera-card h6 { color: var(--blue-dark); font-size: 0.9rem; font-weight: 700; margin-bottom: 4px; }
.minera-card p  { color: var(--gray-text); font-size: 0.83rem; margin: 0; }

/* ── GENERIC PAGE (page.php / single.php) ── */
.entry-content {
  max-width: 780px; margin: 0 auto;
  font-size: 1rem; line-height: 1.8; color: var(--gray-text);
}
.entry-content h2, .entry-content h3 { color: var(--blue-dark); font-weight: 700; margin-top: 2rem; }
.entry-content a { color: var(--blue-mid); }
.entry-content a:hover { color: var(--yellow-dark); }

/* ── 404 ── */
.error-404 { min-height: 60vh; display: flex; align-items: center; }
.error-404 .error-number { font-size: clamp(5rem, 14vw, 10rem); font-weight: 900; color: var(--blue-dark); line-height: 1; }

/* ── FOOTER ── */
footer { background: #0e1b30; }
.footer-body { padding: 56px 0 36px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand img { height: 42px; margin-bottom: 14px; }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.85rem; line-height: 1.6; max-width: 270px; }
.footer-tagline { color: var(--yellow); font-size: 0.8rem; font-style: italic; display: block; margin-top: 8px; }

.footer-col h5 { color: var(--white); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a  { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--yellow); }
.footer-col .footer-small { color: rgba(255,255,255,0.4); font-size: 0.82rem; }

.footer-bottom { padding: 18px 0; }
.footer-bottom p, .footer-bottom a { font-size: 0.78rem; color: rgba(255,255,255,0.45); }
.footer-bottom a { text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--yellow); }

/* ── RESPONSIVE TWEAKS ── */
@media (max-width: 768px) {
  .hero { min-height: 95vh; }
  .about-img-wrap img { height: 300px; }
  .img-badge { bottom: 8px; left: 8px; }
  .contact-form-card { padding: 24px 18px; }
  .mission-card, .vision-card { padding: 32px 24px; }
  .stats-inner .col { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}
