:root {
  --black: #070707;
  --black-2: #101010;
  --black-3: #171717;
  --gold: #f2b51d;
  --gold-2: #ffd86a;
  --gold-dark: #b77900;
  --white: #ffffff;
  --muted: #b9b9b9;
  --line: rgba(242, 181, 29, 0.25);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --max: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(92%, var(--max));
  margin-inline: auto;
}

/* =========================
   HEADER
========================= */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: 1.18rem;
  letter-spacing: 0.05em;
}

.brand-text span {
  margin-top: 6px;
  font-weight: 700;
  letter-spacing: 0.5em;
  font-size: 0.72rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e9e9e9;
  transition: 0.3s ease;
}

.nav a:hover {
  color: var(--gold);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #111 !important;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 8px 25px rgba(242, 181, 29, 0.18);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--gold);
  font-size: 2rem;
  cursor: pointer;
}

/* =========================
   HERO
========================= */

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  align-items: center;
  padding: 140px 0 80px;
  background:
    radial-gradient(circle at 85% 25%, rgba(242, 181, 29, 0.16), transparent 24%),
    linear-gradient(120deg, rgba(0,0,0,0.96), rgba(10,10,10,0.88)),
    url("assets/fondo-seguridad.jpg") center/cover no-repeat;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(242, 181, 29, 0.12);
  transform: rotate(30deg);
  border-radius: 80px;
}

.hero::before {
  top: -210px;
  left: -180px;
}

.hero::after {
  bottom: -220px;
  right: -150px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.25), rgba(0,0,0,0)),
    repeating-linear-gradient(
      60deg,
      transparent 0 48px,
      rgba(242, 181, 29, 0.025) 48px 49px
    );
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 18px;
  max-width: 820px;
  font-size: clamp(3rem, 6vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.hero h1 span {
  display: block;
  color: var(--gold);
}

.hero-copy > p {
  max-width: 680px;
  color: #d0d0d0;
  font-size: 1.05rem;
  margin: 26px 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  color: #111;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  box-shadow: 0 15px 35px rgba(242, 181, 29, 0.18);
}

.btn-outline {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.03);
}

.btn-dark {
  background: #090909;
  border-color: rgba(0,0,0,0.2);
}

.full {
  width: 100%;
}

.hero-stats {
  margin-top: 46px;
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  color: var(--gold);
  font-size: 1.5rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-card {
  position: relative;
  min-height: 600px;
  border-radius: 40px 40px 12px 40px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(242, 181, 29, 0.22);
  background: linear-gradient(160deg, #1d1d1d, #080808);
}

.hero-card > img {
  height: 100%;
  min-height: 600px;
  object-fit: cover;
}

.hero-card-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.9)),
    linear-gradient(135deg, rgba(242,181,29,0.10), transparent);
}

.hero-badge {
  position: absolute;
  z-index: 2;
  left: 26px;
  right: 26px;
  bottom: 26px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(7,7,7,0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(242, 181, 29, 0.35);
  border-radius: 18px;
}

.hero-badge > span {
  color: var(--gold);
  font-size: 1.9rem;
}

.hero-badge strong,
.hero-badge small {
  display: block;
}

.hero-badge small {
  color: var(--muted);
  margin-top: 3px;
}

/* =========================
   VALUES
========================= */

.values-strip {
  position: relative;
  z-index: 4;
  margin-top: -24px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(145deg, #141414, #090909);
  border: 1px solid rgba(242, 181, 29, 0.24);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.values-grid article {
  padding: 34px;
  text-align: center;
  position: relative;
}

.values-grid article:not(:last-child)::after {
  content: "";
  position: absolute;
  width: 1px;
  top: 20%;
  bottom: 20%;
  right: 0;
  background: var(--line);
}

.value-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: rgba(242, 181, 29, 0.08);
  border: 1px solid rgba(242, 181, 29, 0.4);
  color: var(--gold);
  font-weight: 900;
}

.values-grid h3 {
  margin-bottom: 6px;
}

.values-grid p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* =========================
   SECCIONES GENERALES
========================= */

.section {
  padding: 110px 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 84px;
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.contact-info h2 {
  margin: 12px 0 22px;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-copy p,
.section-heading p,
.contact-info p {
  color: var(--muted);
  margin-bottom: 18px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 52px;
}

.section-heading.centered {
  text-align: center;
  margin-inline: auto;
}

/* =========================
   ABOUT
========================= */

.about {
  background:
    radial-gradient(circle at 20% 35%, rgba(242,181,29,0.07), transparent 18%),
    #0a0a0a;
}

.about-images {
  min-height: 620px;
  position: relative;
}

.img-main {
  width: 76%;
  height: 520px;
  overflow: hidden;
  border-radius: 10px 80px 10px 10px;
  border: 1px solid rgba(242,181,29,0.25);
}

.img-main img,
.img-small img {
  height: 100%;
  object-fit: cover;
}

.img-small {
  position: absolute;
  width: 50%;
  height: 280px;
  right: 0;
  bottom: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 7px solid #0a0a0a;
  box-shadow: var(--shadow);
}

.experience-badge {
  position: absolute;
  left: 34px;
  bottom: 35px;
  z-index: 3;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #111;
  padding: 20px 24px;
  border-radius: 14px;
}

.experience-badge strong,
.experience-badge span {
  display: block;
}

.experience-badge span {
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.check-list {
  margin: 28px 0;
  display: grid;
  gap: 12px;
}

.check-list span {
  color: #eee;
}

.check-list span::first-letter {
  color: var(--gold);
}

.text-link {
  display: inline-block;
  color: var(--gold);
  font-weight: 800;
  margin-top: 8px;
}

/* =========================
   MISSION
========================= */

.mission-section {
  padding-top: 30px;
  background: #0a0a0a;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.mission-card {
  position: relative;
  padding: 44px;
  min-height: 320px;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #151515, #0d0d0d);
  border: 1px solid rgba(255,255,255,0.06);
}

.mission-card.featured {
  border-color: rgba(242,181,29,0.35);
  box-shadow: inset 0 0 60px rgba(242,181,29,0.04);
}

.card-number {
  position: absolute;
  top: 20px;
  right: 28px;
  color: rgba(242,181,29,0.18);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
}

.mission-card h3 {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 18px;
}

.mission-card p {
  color: var(--muted);
  max-width: 90%;
}

/* =========================
   SERVICES
========================= */

.services {
  background:
    linear-gradient(rgba(0,0,0,0.93), rgba(0,0,0,0.93)),
    url("assets/fondo-servicios.jpg") center/cover fixed;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  padding: 30px;
  min-height: 300px;
  border-radius: 18px;
  background: linear-gradient(145deg, #151515, #0b0b0b);
  border: 1px solid rgba(255,255,255,0.06);
  transition: 0.35s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(242,181,29,0.42);
  box-shadow: 0 22px 45px rgba(0,0,0,0.38);
}

.service-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 16px;
  font-size: 1.7rem;
  background: rgba(242,181,29,0.08);
  border: 1px solid rgba(242,181,29,0.26);
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

.service-card a {
  display: inline-block;
  color: var(--gold);
  margin-top: 24px;
  font-weight: 700;
  font-size: 0.88rem;
}

/* =========================
   CTA
========================= */

.cta-band {
  padding: 60px 0;
  background:
    linear-gradient(135deg, rgba(255,216,106,0.96), rgba(242,181,29,0.96)),
    url("assets/patron-hexagono.png") center/cover;
  color: #111;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-inner span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.cta-inner h2 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
}

/* =========================
   GALLERY
========================= */

.gallery {
  background: #0c0c0c;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #151515;
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.85));
}

.gallery-item figcaption {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  font-weight: 700;
}

/* =========================
   CONTACT
========================= */

.contact {
  background:
    radial-gradient(circle at 85% 25%, rgba(242,181,29,0.09), transparent 18%),
    #070707;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
}

.contact-items {
  display: grid;
  gap: 16px;
  margin-top: 34px;
}

.contact-items a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  background: #101010;
}

.contact-items a > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(242,181,29,0.10);
  color: var(--gold);
  font-size: 1.4rem;
}

.contact-items small,
.contact-items strong {
  display: block;
}

.contact-items small {
  color: var(--muted);
  margin-bottom: 3px;
}

.contact-form {
  background: linear-gradient(145deg, #151515, #0b0b0b);
  border: 1px solid rgba(242,181,29,0.16);
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.84rem;
  color: #e7e7e7;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: #090909;
  color: #fff;
  padding: 14px 15px;
  border-radius: 12px;
  outline: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: rgba(242,181,29,0.55);
}

.field textarea {
  resize: vertical;
}

/* =========================
   FOOTER
========================= */

.footer {
  background: #030303;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
  padding: 58px 0;
  display: grid;
  grid-template-columns: 1.6fr 0.7fr 1fr;
  gap: 50px;
}

.footer-brand {
  display: inline-flex;
  margin-bottom: 18px;
}

.footer-top p {
  color: var(--muted);
  max-width: 480px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  color: var(--gold);
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #777;
  font-size: 0.8rem;
  text-align: center;
}

/* =========================
   WHATSAPP FLOTANTE
========================= */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  font-size: 1.6rem;
  font-weight: 900;
  z-index: 999;
  box-shadow: 0 12px 34px rgba(0,0,0,0.45);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 82px;
    left: 4%;
    right: 4%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    border-radius: 16px;
    background: #0d0d0d;
    border: 1px solid rgba(242,181,29,0.18);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 13px 12px;
  }

  .nav-cta {
    margin-top: 8px;
    text-align: center;
  }

  .hero-grid,
  .section-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 125px;
  }

  .hero-card {
    max-width: 680px;
    margin-inline: auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .footer-top > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .brand-text strong {
    font-size: 1rem;
  }

  .hero {
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 14vw, 4.6rem);
  }

  .hero-card {
    min-height: 460px;
  }

  .hero-card > img {
    min-height: 460px;
  }

  .hero-stats {
    gap: 24px;
  }

  .values-grid,
  .mission-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .values-grid article:not(:last-child)::after {
    width: auto;
    height: 1px;
    left: 10%;
    right: 10%;
    top: auto;
    bottom: 0;
  }

  .section {
    padding: 80px 0;
  }

  .about-images {
    min-height: 520px;
  }

  .img-main {
    width: 100%;
    height: 430px;
  }

  .img-small {
    width: 58%;
    height: 220px;
  }

  .experience-badge {
    left: 18px;
    bottom: 18px;
  }

  .mission-card {
    padding: 30px;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .gallery-item.large {
    grid-column: auto;
    grid-row: auto;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-top > div:first-child {
    grid-column: auto;
  }

  .contact-items strong {
    font-size: 0.88rem;
    overflow-wrap: anywhere;
  }
}
