:root {
  --ink: #17130f;
  --brown: #2b2219;
  --gold: #c9a662;
  --gold-light: #e0c281;
  --cream: #f3eddf;
  --muted: #c9c0af;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; padding: 36px 0; color: var(--cream); font-family: "Source Sans 3", Arial, sans-serif; background-color: #e8dfcd; background-image: radial-gradient(#84745c 1.1px, transparent 1.1px); background-size: 16px 16px; }
a { color: inherit; text-decoration: none; }

/* El sitio se presenta como una pieza editorial compacta, centrada en la ventana. */
.site-header, main, footer { width: min(100% - 48px, 1040px); margin-left: auto; margin-right: auto; box-shadow: 0 0 0 1px rgba(51, 38, 24, .18), 0 16px 34px rgba(46, 36, 20, .16); }
.site-header { margin-bottom: 0; }
main { box-shadow: 0 16px 34px rgba(46, 36, 20, .16); }
footer { margin-top: 0; }

.site-header { min-height: 86px; padding: 12px clamp(24px, 6vw, 92px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(201, 166, 98, .32); background: rgba(23, 19, 15, .97); position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 12px; font-family: Cinzel, Georgia, serif; color: var(--gold-light); font-size: 10px; line-height: 1.35; letter-spacing: .15em; text-transform: uppercase; }
.brand img { width: 52px; height: 62px; object-fit: contain; }
.brand strong { font-size: 11px; font-weight: 700; }
.main-nav { display: flex; gap: clamp(20px, 3vw, 44px); font-size: 14px; letter-spacing: .07em; text-transform: uppercase; }
.main-nav a { color: var(--muted); transition: color .2s ease; }
.main-nav a:hover, .main-nav a:focus { color: var(--gold-light); }
.main-nav a.active { color: var(--gold-light); }
.menu-toggle { display: none; border: 1px solid var(--gold); color: var(--gold-light); padding: 9px 12px; background: transparent; font: 600 12px "Source Sans 3", sans-serif; letter-spacing: .08em; text-transform: uppercase; }

.hero { min-height: 600px; padding: 100px clamp(24px, 12vw, 180px); position: relative; display: flex; align-items: center; overflow: hidden; background: radial-gradient(circle at 82% 48%, #40301f 0, #221b15 24%, var(--ink) 58%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .16; background-image: linear-gradient(90deg, transparent 49.9%, var(--gold) 50%, transparent 50.1%), linear-gradient(0deg, transparent 49.9%, var(--gold) 50%, transparent 50.1%); background-size: 54px 54px; mask-image: linear-gradient(to right, #000, transparent 70%); }
.hero-copy { position: relative; z-index: 1; max-width: 485px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
h1, h2, h3 { font-family: Cinzel, Georgia, serif; }
h1 { margin: 0; font-size: clamp(42px, 5.6vw, 78px); line-height: 1.13; letter-spacing: -.03em; font-weight: 600; }
.hero h1 { font-size: clamp(44px, 5vw, 64px); }
h1 em { color: var(--gold-light); font-style: normal; }
.intro { max-width: 535px; margin: 28px 0 34px; color: var(--muted); font-size: 19px; line-height: 1.6; }
.button { display: inline-block; padding: 14px 23px; border: 1px solid var(--gold); color: var(--ink); background: var(--gold-light); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: background .2s ease, color .2s ease; }
.button:hover { background: transparent; color: var(--gold-light); }
.badge-wrap { position: absolute; right: clamp(32px, 6vw, 70px); width: min(30vw, 300px); aspect-ratio: 1; display: grid; place-items: center; }
.badge-wrap img { width: 83%; position: relative; z-index: 1; filter: drop-shadow(0 12px 25px rgba(0,0,0,.45)); }
.badge-ring { position: absolute; inset: 0; border: 1px solid rgba(201, 166, 98, .38); border-radius: 50%; box-shadow: 0 0 0 25px rgba(201, 166, 98, .055), 0 0 0 50px rgba(201, 166, 98, .035); }

.headquarters { position: relative; min-height: 410px; display: grid; place-items: center; overflow: hidden; background: #241b14; }
.headquarters img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.68) sepia(.18) brightness(.56); }
.headquarters::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18, 14, 10, .9) 0%, rgba(18, 14, 10, .48) 54%, rgba(18, 14, 10, .08) 100%); }
.headquarters-copy { position: relative; z-index: 1; width: min(100% - 64px, 660px); margin-right: auto; padding: 48px 0 48px 8vw; }
.headquarters h2, .fleet h2 { margin: 0 0 17px; color: var(--gold-light); font-size: clamp(30px, 3.4vw, 47px); font-weight: 600; }
.headquarters-copy > p:not(.eyebrow):not(.location) { max-width: 455px; margin: 0; color: var(--cream); font-size: 18px; line-height: 1.6; }
.headquarters-copy .location { margin-top: 22px; color: var(--gold-light); font-size: 14px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }

.page-hero { padding: 110px clamp(24px, 12vw, 180px) 95px; background: linear-gradient(115deg, #17130f, #302519); border-bottom: 1px solid rgba(201, 166, 98, .3); }
.page-hero h1 { margin: 0 0 20px; color: var(--gold-light); }
.page-hero > p:last-child { max-width: 630px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.6; }
.division-list, .press-list { max-width: 1060px; margin: 0 auto; padding: 55px 24px 85px; }
.division-list { background: var(--ink); }
.division-list article { display: grid; grid-template-columns: 70px minmax(0, 1fr) 220px; align-items: center; gap: 20px; padding: 30px 0; border-bottom: 1px solid rgba(201, 166, 98, .25); }
.division-list span { color: var(--gold); font: 600 17px Cinzel, serif; }
.division-list h2, .press-list h2 { margin: 0 0 9px; color: var(--gold-light); font-size: 25px; font-weight: 600; }
.division-list p, .press-list > article > p:last-child { max-width: 680px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.division-list .division-lead { margin-top: 14px; color: var(--gold-light); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.division-placeholder { display: grid; min-height: 128px; place-items: center; border: 1px dashed rgba(224, 194, 129, .72); color: var(--gold); background: repeating-linear-gradient(135deg, rgba(201, 166, 98, .08) 0 9px, transparent 9px 18px); font: 600 10px Cinzel, serif; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.division-image { display: grid; place-items: center; }
.division-image img { display: block; width: 100%; max-height: 190px; object-fit: contain; }
.press-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.press-list article { padding: 32px; background: #221b15; border-top: 2px solid var(--gold); }
.press-list .eyebrow { font-size: 10px; }
.press-open, .press-generate, .press-send, .copy-code { display: inline-block; border: 1px solid var(--gold); background: transparent; color: var(--gold-light); padding: 10px 13px; cursor: pointer; font: 700 11px "Source Sans 3", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.press-open { margin-top: 24px; }
.press-open:hover, .press-generate { background: var(--gold-light); color: var(--ink); }
.press-send { background: #2c2218; }
.press-send:hover, .copy-code:hover { background: var(--gold); color: var(--ink); }
.press-dialog { width: min(calc(100% - 32px), 640px); padding: 0; border: 1px solid rgba(224, 194, 129, .65); color: var(--cream); background: #1c1611; box-shadow: 0 24px 70px rgba(0, 0, 0, .6); }
.press-dialog::backdrop { background: rgba(13, 10, 7, .78); backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 30px 32px 20px; border-bottom: 1px solid rgba(201, 166, 98, .24); }
.dialog-heading h2 { margin: 0; color: var(--gold-light); font-size: 27px; font-weight: 600; }
.dialog-close { width: 34px; height: 34px; border: 1px solid rgba(224, 194, 129, .5); color: var(--gold-light); background: transparent; cursor: pointer; font-size: 25px; line-height: 1; }
#press-request-form { display: grid; gap: 17px; padding: 28px 32px; }
#press-request-form label { display: grid; gap: 7px; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
#press-request-form input, #press-request-form textarea, #press-code { width: 100%; border: 1px solid rgba(201, 166, 98, .35); padding: 11px 12px; resize: vertical; color: var(--cream); background: #100d0a; font: 16px/1.5 "Source Sans 3", sans-serif; }
#press-request-form input:focus, #press-request-form textarea:focus, #press-code:focus { outline: 1px solid var(--gold-light); border-color: var(--gold-light); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 3px; }
.code-output { padding: 0 32px 32px; }
.code-output > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.code-output .eyebrow { margin: 0; font-size: 10px; }
.copy-code { padding: 7px 10px; font-size: 10px; }
#press-code { min-height: 190px; color: var(--muted); font-family: "Courier New", monospace; font-size: 13px; }

.contact-leadership { padding: 68px clamp(24px, 8vw, 100px) 90px; background: var(--ink); }
.section-title { max-width: 680px; margin-bottom: 34px; }
.section-title h2 { margin: 0; color: var(--gold-light); font-size: clamp(29px, 3.5vw, 46px); font-weight: 600; }
.sheriff-profile { display: grid; grid-template-columns: minmax(250px, 34%) 1fr; min-height: 390px; background: #251d16; border: 1px solid rgba(201, 166, 98, .36); }
.sheriff-photo { min-height: 390px; background: linear-gradient(145deg, #4a3824, #17130f); overflow: hidden; }
.sheriff-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; filter: sepia(.12) saturate(.78); }
.sheriff-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 5vw, 68px); }
.sheriff-copy h2 { margin: 0 0 24px; color: var(--cream); font-size: clamp(30px, 3.5vw, 48px); font-weight: 600; }
.sheriff-copy blockquote { max-width: 560px; margin: 0 0 28px; color: var(--muted); font: 500 clamp(18px, 2vw, 23px)/1.55 Cinzel, Georgia, serif; }
.contact-email { color: var(--gold-light); font-size: 14px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.contact-email:hover { color: var(--cream); }
.rank-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.rank-grid article { padding: 17px; border: 1px solid rgba(201, 166, 98, .26); background: #201913; }
.rank-placeholder { min-height: 270px; display: grid; place-items: center; margin-bottom: 21px; border: 1px dashed rgba(224, 194, 129, .64); background: repeating-linear-gradient(135deg, rgba(201, 166, 98, .07) 0 9px, transparent 9px 18px); color: var(--gold); font: 600 10px Cinzel, serif; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.rank-photo { height: 270px; margin-bottom: 21px; overflow: hidden; border: 1px solid rgba(201, 166, 98, .4); background: #17130f; }
.rank-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.rank-grid .eyebrow { margin-bottom: 8px; font-size: 10px; }
.rank-grid h3 { margin: 0 0 6px; color: var(--gold-light); font-size: 19px; font-weight: 600; }
.pending-name { margin: 0; color: var(--muted); font-size: 14px; }

.ranks-section { padding: 68px clamp(24px, 8vw, 100px) 90px; background: var(--ink); }
.rank-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rank-group + .rank-group { margin-top: 48px; }
.rank-group-title { margin: 0 0 17px; padding-bottom: 12px; border-bottom: 1px solid rgba(201, 166, 98, .42); color: var(--gold); font: 600 17px Cinzel, Georgia, serif; letter-spacing: .08em; text-transform: uppercase; }
.rank-card { display: grid; grid-template-columns: 125px 1fr; gap: 23px; align-items: center; min-height: 175px; padding: 21px; background: #211a14; border: 1px solid rgba(201, 166, 98, .28); }
.rank-insignia { display: grid; width: 125px; height: 125px; place-items: center; }
.rank-insignia img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rank-insignia.rank-placeholder { border: 1px dashed rgba(224, 194, 129, .68); background: repeating-linear-gradient(135deg, rgba(201, 166, 98, .07) 0 9px, transparent 9px 18px); color: var(--gold); font: 600 9px Cinzel, serif; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.rank-card h3 { margin: 0 0 10px; color: var(--gold-light); font: 600 21px Cinzel, Georgia, serif; }
.rank-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.52; }

.statement { padding: 105px clamp(24px, 17vw, 260px); text-align: center; background: var(--cream); color: var(--brown); }
.statement .eyebrow { color: #8b682f; }
.statement h2 { max-width: 800px; margin: 0 auto 19px; font-size: clamp(29px, 3.5vw, 47px); line-height: 1.23; font-weight: 600; }
.statement > p:last-child { max-width: 620px; margin: auto; color: #63584b; font-size: 18px; line-height: 1.6; }
.fleet { padding: 78px clamp(24px, 8vw, 100px); background: #17130f; }
.fleet-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.fleet-heading h2 { margin-bottom: 0; text-align: right; }
.fleet-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.fleet figure { position: relative; margin: 0; overflow: hidden; background: var(--brown); border: 1px solid rgba(201, 166, 98, .34); }
.fleet img { display: block; width: 100%; aspect-ratio: 1.95 / 1; object-fit: cover; filter: saturate(.82) sepia(.08); transition: transform .35s ease; }
.fleet figure:hover img { transform: scale(1.035); }
.fleet figcaption { padding: 12px 15px; color: var(--gold-light); font: 600 12px Cinzel, serif; letter-spacing: .07em; text-transform: uppercase; }
.services { padding: 90px clamp(24px, 10vw, 156px); background: #221b15; }
.services h2 { margin: 0 0 42px; font-size: clamp(30px, 3.5vw, 47px); font-weight: 600; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(201, 166, 98, .3); }
.service-grid article { padding: 28px 30px 16px 0; margin-right: 28px; border-right: 1px solid rgba(201, 166, 98, .3); }
.service-grid article:last-child { border: 0; }
.service-grid span { color: var(--gold); font: 600 14px Cinzel, serif; }
.service-grid h3 { margin: 15px 0 12px; color: var(--gold-light); font-size: 20px; font-weight: 600; }
.service-grid p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
footer { min-height: 145px; padding: 28px clamp(24px, 6vw, 92px); display: flex; align-items: center; gap: 18px; justify-content: space-between; background: #100e0b; }
.footer-mark { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font: 700 17px Cinzel, serif; }
.footer-copy { margin: 0; color: var(--muted); }
.emergency { margin-left: auto; color: var(--muted); font-size: 15px; }
.emergency strong { color: var(--gold-light); }

@media (max-width: 760px) {
  body { padding: 0; background: var(--ink); }
  .site-header, main, footer { width: 100%; box-shadow: none; }
  .site-header { min-height: 76px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 18px 24px; flex-direction: column; gap: 16px; background: var(--ink); border-bottom: 1px solid rgba(201, 166, 98, .32); }
  .main-nav.open { display: flex; }
  .hero { min-height: 670px; padding-top: 70px; align-items: flex-start; }
  .badge-wrap { width: min(73vw, 360px); right: 50%; bottom: 34px; transform: translateX(50%); opacity: .6; }
  .hero-copy { z-index: 1; }
  .intro { font-size: 17px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid article { padding: 24px 0; margin: 0; border-right: 0; border-bottom: 1px solid rgba(201, 166, 98, .3); }
  .service-grid article:last-child { border-bottom: 0; }
  footer { flex-wrap: wrap; }
  .emergency { margin-left: 0; width: 100%; }
  .page-hero { padding-top: 75px; padding-bottom: 70px; }
  .press-list { grid-template-columns: 1fr; }
  .dialog-heading, #press-request-form, .code-output { padding-left: 22px; padding-right: 22px; }
  .division-list article { grid-template-columns: 42px 1fr; }
  .division-placeholder { grid-column: 2; min-height: 170px; }
  .division-image { grid-column: 2; }
  .division-image img { max-height: 230px; }
  .sheriff-profile { grid-template-columns: 1fr; }
  .sheriff-photo { min-height: 350px; }
  .rank-grid { grid-template-columns: 1fr; }
  .rank-list { grid-template-columns: 1fr; }
  .rank-card { grid-template-columns: 92px 1fr; gap: 17px; padding: 17px; }
  .rank-insignia { width: 92px; height: 92px; }
  .headquarters { min-height: 390px; }
  .headquarters-copy { width: calc(100% - 48px); padding: 40px 0; }
  .fleet-heading { display: block; }
  .fleet-heading h2 { text-align: left; }
  .fleet-gallery { grid-template-columns: 1fr; }
}

@media (min-width: 761px) and (max-width: 980px) {
  .hero { padding-left: 70px; padding-right: 70px; }
  .hero-copy { max-width: 460px; }
  .badge-wrap { right: 26px; width: 250px; opacity: .45; }
}
