:root {
  --bg: #0b0d0c;
  --bg-soft: #111512;
  --card: #171c18;
  --white: #f5f5f2;
  --text: #d7d8d2;
  --muted: #a4aa9b;
  --olive: #8f9870;
  --olive-dark: #66704f;
  --blue: #1f4fa3;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --max: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f3f3ef;
  color: #1b1f1c;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(92%, var(--max));
  margin: 0 auto;
}

.section {
  padding: 90px 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 13, 12, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: 'Oswald', sans-serif;
  color: var(--white);
  letter-spacing: 1px;
  background: linear-gradient(145deg, #0d100e, #1a201c);
}

.logo-text {
  color: var(--white);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.95rem;
  font-weight: 700;
}

.logo-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.3s ease;
}

.menu a:hover {
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 700;
  transition: 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-nav {
  padding: 11px 18px;
  background: var(--olive);
  color: #0f120f !important;
}

.btn-primary {
  background: var(--olive);
  color: #11130f;
}

.btn-primary:hover {
  background: var(--olive-dark);
  color: white;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(7, 9, 8, 0.90), rgba(17, 24, 20, 0.65)),
    url("seguridad.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  background: rgba(143, 152, 112, 0.14);
  transform: skew(-28deg);
}

.hero::before {
  width: 320px;
  height: 100%;
  right: 8%;
  top: -20px;
}

.hero::after {
  width: 180px;
  height: 70%;
  right: 20%;
  top: 0;
  background: rgba(255, 255, 255, 0.04);
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(143, 152, 112, 0.18), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05), transparent 20%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 70px 0;
}

.tag,
.mini-title {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--olive);
  margin-bottom: 18px;
}

.hero h1,
.section-heading h2,
.contact-box h2,
.property-grid h2,
.promo-security-text h2 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.5px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.7rem, 6vw, 5.2rem);
  max-width: 820px;
  margin-bottom: 20px;
}

.hero-text p {
  color: var(--text);
  font-size: 1.1rem;
  max-width: 640px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-card {
  background: rgba(18, 23, 20, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
  color: var(--text);
}

.hero-card h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  color: var(--white);
  font-size: 1.7rem;
  margin-bottom: 14px;
}

.hero-card p {
  margin-bottom: 18px;
}

.hero-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-card li {
  position: relative;
  padding-left: 18px;
}

.hero-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive);
  position: absolute;
  left: 0;
  top: 9px;
}

.stats {
  margin-top: -55px;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.stat-box {
  background: white;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--olive);
}

.stat-box h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.4rem;
  color: var(--olive-dark);
  margin-bottom: 10px;
}

.stat-box p {
  color: #445047;
  font-weight: 500;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  color: #131713;
}

.section-heading.center {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 50px;
}

.section-heading.center p {
  margin-top: 14px;
  color: #586359;
}

.about-text p {
  margin-bottom: 18px;
  color: #475248;
  font-size: 1.05rem;
}

.dark-band {
  background: linear-gradient(180deg, #0d100e, #171c18);
  color: var(--text);
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}

.info-card h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 1.7rem;
  color: var(--white);
  margin-bottom: 14px;
}

.info-card p {
  color: var(--text);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 12px 30px rgba(18, 21, 18, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(18, 21, 18, 0.12);
}

.service-card h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #151914;
}

.service-card p {
  color: #526055;
}

.service-list {
  margin-top: 16px;
  padding-left: 18px;
}

.service-list li {
  margin-bottom: 10px;
  color: #526055;
}

.service-card-k9 {
  border-top: 5px solid var(--blue);
}

.property-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.property-item {
  background: #111512;
  color: var(--white);
  border-radius: 16px;
  padding: 20px;
  border-left: 4px solid var(--olive);
  font-weight: 600;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.process-step {
  background: rgba(255, 255, 255, 0.03);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.step-number {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--olive);
  color: #0f120e;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.process-step h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.process-step p {
  color: var(--text);
}

.training {
  background: #f7f7f3;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.training-item {
  background: white;
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  font-weight: 700;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  border-top: 4px solid var(--olive);
}

.difference-list {
  display: grid;
  gap: 16px;
}

.check-item {
  background: white;
  border-radius: 14px;
  padding: 18px 20px 18px 52px;
  position: relative;
  color: #263128;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.check-item::before {
  content: "✓";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--olive);
  color: #121410;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.values-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 26px;
}

.values-grid span {
  background: #111512;
  color: var(--white);
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 600;
}

.team {
  background: #f7f7f3;
}

.team .container {
  max-width: 1500px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
  align-items: start;
}

.team-card {
  padding: 28px;
}

.team-card-header h3 {
  font-size: 1.45rem;
}

.team-card p {
  font-size: 0.95rem;
}

.team-skills span {
  font-size: 0.82rem;
  padding: 9px 12px;
}

.team-card {
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.07);
  border-top: 5px solid var(--olive);
}

.team-card-header {
  margin-bottom: 18px;
}

.team-card-header h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 1.7rem;
  line-height: 1.1;
  margin-bottom: 8px;
  color: #151914;
}

.team-card-header span {
  display: inline-block;
  font-weight: 700;
  color: var(--olive-dark);
  font-size: 0.98rem;
}

.team-card p {
  color: #4d594f;
  margin-bottom: 16px;
  font-size: 1rem;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.team-skills span {
  background: #111512;
  color: white;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.promo-security {
  padding: 90px 0;
  background: linear-gradient(135deg, #0b1320 0%, #173b7a 100%);
  position: relative;
  overflow: hidden;
}

.promo-security::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  top: -80px;
  right: -80px;
}

.promo-security::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  bottom: -90px;
  left: -70px;
}

.promo-security-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 45px;
  align-items: center;
}

.promo-security-text {
  color: white;
}

.promo-security-text h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  margin-bottom: 18px;
  color: #ffffff;
}

.promo-subtext {
  font-size: 1.08rem;
  color: #e8eefb;
  max-width: 600px;
  margin-bottom: 24px;
}

.promo-list {
  margin-bottom: 28px;
}

.promo-list p {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #ffffff;
  margin-bottom: 10px;
}

.promo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.promo-security-image {
  position: relative;
}

.promo-security-image img {
  width: 100%;
  border-radius: 28px;
  display: block;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  border: 4px solid rgba(255, 255, 255, 0.08);
}

.promo-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: rgba(11, 16, 27, 0.86);
  color: white;
  padding: 14px 18px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

.promo-badge span {
  display: block;
  font-size: 0.78rem;
  color: #b8c6e6;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.promo-badge strong {
  display: block;
  font-size: 1.1rem;
  margin-top: 4px;
}

.promo-phone {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: white;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 2px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.contact-box {
  background: linear-gradient(135deg, #101411, #1b221d);
  border-radius: 28px;
  padding: 48px;
  color: var(--text);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  box-shadow: var(--shadow);
}

.contact-box h2 {
  color: var(--white);
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.contact-info {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-info p {
  color: var(--text);
}

.footer {
  background: #090b0a;
  color: #a4aa9b;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.contact {
   background: linear-gradient(135deg, #0b0d0c, #111512);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(143, 152, 112, 0.08);
  border-radius: 50%;
  top: -80px;
  right: -80px;
}
.contact .section-heading.center h2 {
  color: var(--white);
}

.contact .section-heading.center p {
  color: var(--muted);
}
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.contact-info-card {
  background: #111512;
  color: var(--text);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 0 40px rgba(143, 152, 112, 0.08);
  border-top: 5px solid var(--olive);
}

.contact-info-card h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  color: var(--white);
  font-size: 1.7rem;
  margin-bottom: 20px;
}

.contact-info-card p {
  margin-bottom: 16px;
  color: var(--text);
}

.contact-info-card strong {
  color: var(--olive);
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.map-card {
  min-height: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid rgba(143, 152, 112, 0.25);
  background: #111512;
}
.map-card:hover {
  transform: translateY(-4px);
  transition: 0.3s ease;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 520px;
  border: 0;
  display: block;
  filter: grayscale(0.3) brightness(0.85) contrast(1.05);
}
.contact-layout {
  align-items: stretch;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
@media (max-width: 1024px) {
  .hero-content,
  .two-columns,
  .cards-2,
  .contact-box,
  .process-grid,
  .stats-grid,
  .promo-security-content,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .property-list {
    grid-template-columns: 1fr 1fr;
  }

  .training-grid {
    grid-template-columns: 1fr 1fr;
  }

  .menu {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 50px;
  }

  .stats {
    margin-top: 0;
    padding-top: 26px;
  }
  .contact-layout {
  grid-template-columns: 1fr;
}

.map-card iframe {
  min-height: 360px;
}
}

@media (max-width: 640px) {
  .section {
    padding: 70px 0;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero-text p,
  .promo-subtext {
    font-size: 1rem;
  }

  .hero-card,
  .info-card,
  .service-card,
  .process-step,
  .contact-info,
  .contact-box,
  .team-card {
    padding: 22px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .promo-buttons {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
  }

  .training-grid,
  .property-list {
    grid-template-columns: 1fr;
  }

  .promo-phone {
    position: static;
    transform: none;
    margin-top: 16px;
    display: inline-block;
  }
}
 .hero-title-container {
    display: block;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-logo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: top;
    border-radius: 22px;
    margin-bottom: 25px;
   box-shadow: 
        0 10px 30px rgba(0,0,0,0.6),
        0 0 10px rgba(212, 175, 55, 0.3);
}
.hero-title-container h1 {
    margin: 0;
}
.hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}
.hero-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.hero-text h1 {
    line-height: 1.1;
    letter-spacing: 1px;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.formacion-rafael {
  margin-top: 22px;
  padding: 16px 18px;
  border-left: 4px solid #7d8b5f;
  background: rgba(125, 139, 95, 0.08);
  border-radius: 14px;
}

.formacion-rafael h4 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #4f5d35;
  font-weight: 800;
}

.formacion-rafael ul {
  margin: 0;
  padding-left: 18px;
}

.formacion-rafael li {
  margin-bottom: 6px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #2f3a32;
}