/* =========================================================
   BURÓCRATAS TECATE - ESTILOS PRINCIPALES
   Paleta basada en el escudo institucional:
   Guinda #8F1D22 | Dorado #E7A900 | Gris #ECECEC
   ========================================================= */

:root {
  --maroon: #8f1d22;
  --maroon-dark: #691419;
  --gold: #e7a900;
  --gold-light: #f7c63a;
  --gray: #ececec;
  --gray-dark: #555;
  --ink: #222;
  --white: #fff;
  --max: 1180px;
  --shadow: 0 8px 28px rgba(0,0,0,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.skip-link {
  position: fixed; left: 10px; top: -100px; z-index: 1000;
  background: var(--maroon); color: white; padding: 10px 16px;
}
.skip-link:focus { top: 10px; }

.site-header { background: #fff; }
.header-inner {
  min-height: 168px; display: flex; align-items: center;
  justify-content: space-between; gap: 30px; padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 22px; text-decoration: none; min-width: 0; }
.brand img { width: 145px; height: 125px; object-fit: contain; mix-blend-mode: multiply; }
.brand-text { display: flex; flex-direction: column; font-size: 16px; line-height: 1.35; }
.brand-text strong { font-size: 22px; margin-bottom: 8px; }
.brand-text b { color: var(--maroon); }

.header-contact { display: grid; gap: 7px; font-size: 14px; white-space: nowrap; }
.header-contact a { text-decoration: none; color: var(--maroon); font-weight: 700; }
.header-contact a span, .header-contact address span { color: #333; font-weight: 400; }
.header-contact address { font-style: normal; color: var(--maroon); font-weight: 700; }

.main-nav { background: var(--maroon); border-bottom: 5px solid var(--gold); }
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: stretch; justify-content: center; flex-wrap: wrap;
}
.main-nav a {
  display: block; padding: 15px 12px; color: #fff;
  text-decoration: none; text-transform: uppercase; font-weight: 700;
  font-size: 12px; transition: .2s ease;
}
.main-nav a:hover, .main-nav a.active { background: var(--gold); color: #4b2100; }

.menu-toggle {
  display: none; border: 0; background: var(--maroon);
  width: 48px; height: 44px; padding: 9px; border-radius: 4px;
}
.menu-toggle span { display: block; height: 3px; background: #fff; margin: 5px 0; }

.hero { position: relative; overflow: hidden; }
.hero img { width: 100%; height: clamp(260px, 42vw, 520px); object-fit: cover; object-position: center; }

.section { padding: 75px 0; }
.mission { background: #fffaf1; }
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.eyebrow {
  color: var(--maroon); font-size: 13px; letter-spacing: 1.8px;
  font-weight: 800; margin: 0 0 10px;
}
.mission h1 {
  font-size: clamp(32px, 4vw, 54px); line-height: 1.12;
  margin: 0 0 25px; color: var(--maroon);
}
.mission h1 span { color: var(--gold); }
.lead { font-size: 18px; max-width: 650px; margin: 0; }
.mission-art {
  min-height: 310px; display: grid; place-items: center;
  border-left: 2px solid var(--gold);
  background: radial-gradient(circle at center, rgba(231,169,0,.10), transparent 62%);
}
.seal-watermark { font-size: clamp(30px, 5vw, 72px); font-weight: 900; color: rgba(143,29,34,.08); transform: rotate(-8deg); }

.values { background: var(--gold); }
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.values article {
  text-align: center; padding: 24px 14px;
  border-right: 1px solid rgba(255,255,255,.8);
}
.values article:last-child { border-right: 0; }
.value-icon { font-size: 38px; color: var(--maroon); line-height: 1; margin-bottom: 12px; }
.values h2 { font-size: 15px; line-height: 1.25; margin: 0; text-transform: uppercase; }

.reference { background: #fff; }
.section-heading { text-align: center; margin-bottom: 42px; }
.section-heading h2 { color: var(--maroon); text-transform: uppercase; margin: 0 0 8px; font-size: clamp(28px, 3vw, 38px); }
.section-heading p:last-child { max-width: 680px; margin: 0 auto; color: #555; }
.reference-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.reference-card {
  padding: 35px 22px; min-height: 235px; text-align: center;
  background: #fff; border: 1px solid #e3e3e3; border-radius: 10px;
  box-shadow: var(--shadow);
}
.card-icon { color: var(--gold); font-size: 46px; line-height: 1; }
.reference-card h3 { color: #222; text-transform: uppercase; font-size: 18px; margin: 20px 0 8px; }
.reference-card p { margin: 0; color: #666; font-size: 14px; }

.institutional { background: var(--gray); }
.institutional-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.institutional h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.15; color: var(--maroon); margin: 0 0 18px; }
.institutional p { font-size: 17px; }
.institutional-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.institutional-points div {
  background: #fff; border-top: 5px solid var(--gold);
  padding: 24px 12px; text-align: center; border-radius: 5px;
}
.institutional-points strong { display: block; font-size: 24px; color: var(--maroon); }
.institutional-points span { font-size: 12px; color: #666; }

.placeholder-section { padding: 55px 0; text-align: center; background: #fff; }
.placeholder-section h2 { color: var(--maroon); margin: 0 0 5px; }
.placeholder-section p { margin: 0; color: #666; }

.site-footer { background: var(--gray); color: #333; border-top: 4px solid var(--gold); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr .6fr;
  gap: 40px; padding: 45px 0;
}
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-brand img { width: 110px; height: 90px; object-fit: contain; mix-blend-mode: multiply; }
.footer-brand strong { color: var(--maroon); }
.footer-brand p { font-size: 13px; margin: 8px 0 0; max-width: 440px; }
.site-footer h3 { color: var(--maroon); margin: 0 0 12px; text-transform: uppercase; font-size: 15px; }
.site-footer p { margin: 6px 0; font-size: 14px; }
.site-footer a { text-decoration: none; }
.facebook {
  display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: #444; color: #fff;
}
.facebook:hover { background: var(--maroon); }
.facebook svg { width: 23px; height: 23px; fill: currentColor; }
.copyright { text-align: center; background: #d7d7d7; padding: 13px; font-size: 12px; color: #555; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1100px) {
  .header-inner { min-height: 145px; }
  .brand img { width: 115px; height: 100px; }
  .brand-text strong { font-size: 18px; }
  .brand-text { font-size: 13px; }
  .main-nav a { font-size: 10px; padding: 13px 8px; }
}
@media (max-width: 850px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  .header-inner { min-height: 95px; padding: 10px 0; }
  .brand img { width: 78px; height: 70px; }
  .brand-text { font-size: 10px; }
  .brand-text strong { font-size: 13px; margin-bottom: 4px; }
  .header-contact { display: none; }
  .menu-toggle { display: block; flex: 0 0 auto; }
  .main-nav { display: none; border-bottom-width: 3px; }
  .main-nav.open { display: block; }
  .main-nav ul { display: block; }
  .main-nav a { font-size: 12px; padding: 12px 15px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .mission-grid, .institutional-grid { grid-template-columns: 1fr; }
  .mission-art { display: none; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .values article:nth-child(2n) { border-right: 0; }
  .values article:last-child { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.8); }
  .reference-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .social { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .brand-text span:nth-of-type(2), .brand-text span:nth-of-type(3) { display: none; }
  .brand-text strong { font-size: 12px; }
  .hero img { height: 230px; }
  .section { padding: 52px 0; }
  .mission h1 { font-size: 32px; }
  .lead { font-size: 16px; }
  .values-grid, .reference-grid, .footer-grid, .institutional-points { grid-template-columns: 1fr; }
  .values article, .values article:last-child { grid-column: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.75); }
  .values article:last-child { border-bottom: 0; }
  .footer-brand { flex-direction: column; }
  .footer-brand img { width: 95px; height: 75px; }
}


/* Fotografías institucionales */
.photo-frame { position:relative; overflow:hidden; background:#ddd; box-shadow:0 18px 45px rgba(0,0,0,.14); }
.photo-frame::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(135deg,rgba(255,255,255,.16),transparent 35%,rgba(143,29,34,.08)); opacity:.75; }
.photo-frame img { width:100%; height:100%; object-fit:cover; transition:transform 1.1s cubic-bezier(.2,.7,.2,1),filter .6s ease; will-change:transform; }
.photo-frame:hover img { transform:scale(1.045); filter:saturate(1.06) contrast(1.02); }
.photo-office { height:365px; border-radius:2px; border:1px solid rgba(143,29,34,.12); }
.photo-office::before { content:""; position:absolute; left:0; top:0; width:7px; height:100%; background:var(--gold); z-index:2; }
.group-photo-section { padding:26px 0 48px; background:#fff; }
.photo-group { height:auto; border-radius:3px; }
.photo-group img { display:block; width:100%; height:auto; aspect-ratio:1603 / 547; object-fit:cover; }
.photo-group::before { content:""; position:absolute; inset:0; z-index:2; border:1px solid rgba(143,29,34,.14); pointer-events:none; }
.photo-group::after { background:linear-gradient(to bottom,transparent 55%,rgba(0,0,0,.10)); }
@keyframes photoReveal { from { opacity:0; transform:translateY(18px) scale(.985); } to { opacity:1; transform:translateY(0) scale(1); } }
.photo-frame { animation:photoReveal .8s ease both; }
.photo-group { animation-delay:.12s; }
@media (max-width:850px) { .photo-office { height:330px; } .group-photo-section { padding:20px 0 38px; } }
@media (max-width:560px) { .photo-office { height:250px; } .photo-group img { aspect-ratio:16 / 8; object-position:center; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .photo-frame,.photo-frame img { animation:none; transition:none; } }
