/* ============================================================
   CV GROUP — Seguridad Física y Electrónica
   styles.css — Hoja de estilos principal
   ============================================================ */

/* ─── RESET & BASE ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Paleta principal */
  --blue-900: #042c53;
  --blue-800: #0c447c;
  --blue-600: #185fa5;
  --blue-200: #85b7eb;
  --blue-100: #b5d4f4;
  --blue-50: #e6f1fb;

  /* Acento verde tecnológico */
  --green-700: #3b6d11;
  --green-600: #639922;
  --green-400: #97c459;
  --green-100: #c0dd97;
  --green-50: #eaf3de;

  /* Grises */
  --gray-900: #2c2c2a;
  --gray-700: #444441;
  --gray-500: #5f5e5a;
  --gray-400: #888780;
  --gray-100: #d3d1c7;
  --gray-50: #f1efe8;

  /* Semánticos */
  --white: #ffffff;
  --text: #1a1a18;
  --text-muted: #5f5e5a;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(24, 95, 165, 0.35);

  /* Radio */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Sombras sutiles */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);

  /* Transiciones */
  --transition: 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* ─── UTILIDADES ─── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 40px;
}

.centered {
  text-align: center;
}

.centered .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  font-size: 11px;
  color: var(--green-600);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

.section-title {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 48px;
}

/* ─── BOTONES ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition:
    background var(--transition),
    transform var(--transition),
    border-color var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--green-600);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--blue-800);
  color: var(--white);
}
.btn-secondary:hover {
  background: var(--blue-900);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: 0.5px solid rgba(255, 255, 255, 0.25);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border: 0.5px solid var(--blue-200);
}
.btn-outline:hover {
  background: var(--blue-50);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #e8e8e8;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

.nav-logo {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-img {
  height: 60px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.nav-logo .accent {
  color: var(--green-400);
}

.nav-logo .tagline {
  font-size: 12px;
  color: #666;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 400;
  margin-left: 10px;
}

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

.nav-links a {
  color: #333;
  font-size: 13px;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: #000;
}

.nav-links .nav-cta {
  background: var(--green-600);
  color: var(--white);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.nav-links .nav-cta:hover {
  background: var(--green-700);
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-size: 24px;
  padding: 4px;
}

/* Menú móvil */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--blue-900);
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
  gap: 4px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  padding: 10px 0;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
  transition: color var(--transition);
}

.nav-mobile a:last-child {
  border-bottom: none;
  color: var(--green-400);
  font-weight: 500;
}

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

/* ─── HERO ─── */
.hero {
  background: var(--blue-900);
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── HERO CONTENT SECTION ─── */
.hero-content-section {
  background: #555555;
  padding: 80px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(24, 95, 165, 0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(151, 196, 89, 0.12);
  border: 0.5px solid rgba(151, 196, 89, 0.35);
  color: var(--green-400);
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.hero h1,
.hero-content-section h1 {
  font-size: clamp(42px, 6vw, 62px);
  font-weight: 900;
  color: #ffffff !important;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: 2px;
  text-shadow: none;
  -webkit-text-stroke: 0;
}

.hero h1 em,
.hero-content-section h1 em {
  font-style: normal;
  color: #ffffff !important;
}

.hero-sub {
  font-size: 20px;
  color: var(--white);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--blue-800);
  padding: 16px 40px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
}

.trust-item i {
  color: var(--green-400);
  font-size: 18px;
}

/* ─── BRANDS BAR ─── */
.brands-bar {
  background: var(--gray-50);
  padding: 18px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 0.5px solid var(--gray-100);
}

.brands-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.brand-pill {
  background: var(--white);
  border: 0.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-800);
  letter-spacing: 0.5px;
}

/* ─── SECCIONES ─── */
section {
  padding: 80px 40px;
}

/* ─── QUIÉNES SOMOS ─── */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

.about-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-text p strong {
  color: var(--text);
  font-weight: 500;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color var(--transition);
}

.about-card:hover {
  border-color: var(--border-hover);
}

.about-card-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.about-card-icon i {
  font-size: 20px;
  color: var(--blue-600);
}

.about-card h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.about-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── SERVICIOS ─── */
#servicios {
  background: #e8e8e8;
}

.services-wrapper {
  max-width: 1080px;
  margin: 0 auto;
}

/* ─── TABS DE SERVICIOS ─── */
.services-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.tab-btn:hover {
  border-color: var(--blue-200);
  color: var(--blue-600);
  background: var(--blue-50);
}

.tab-btn.active {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}

.tab-btn i {
  font-size: 16px;
}

.tab-content {
  position: relative;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-unit {
  margin-bottom: 56px;
}

.service-unit:last-child {
  margin-bottom: 0;
}

.service-image {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.service-image:hover img {
  transform: scale(1.05);
}

.unit-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 0.5px solid var(--border);
}

.unit-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.unit-icon.blue {
  background: var(--blue-50);
}

.unit-icon i {
  font-size: 22px;
  color: var(--blue-600);
}

.unit-meta h3 {
  font-size: 18px;
  font-weight: 500;
}

.unit-meta p {
  font-size: 13px;
  color: var(--text-muted);
}

.unit-badge {
  margin-left: auto;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.service-card {
  background: #f5f5f5;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition:
    border-color var(--transition),
    transform var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("../assets/img/marco.avif");
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.service-card > i {
  font-size: 22px;
  color: var(--blue-600);
  margin-bottom: 12px;
  display: block;
}

.service-card h5 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.service-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.service-bullets {
  list-style: none;
  margin-top: 10px;
}

.service-bullets li {
  font-size: 12px;
  color: var(--text-muted);
  padding: 3px 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.service-bullets li::before {
  content: "—";
  color: var(--green-400);
  font-size: 10px;
  flex-shrink: 0;
}

/* ─── STATS ─── */
.stats-section {
  background: var(--blue-900);
  padding: 60px 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.stat-item {
  padding: 20px;
  border-right: 0.5px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-size: 40px;
  font-weight: 600;
  color: var(--green-400);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

/* ─── PROYECTOS ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
}

.project-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color var(--transition);
}

.project-card:hover {
  border-color: var(--border-hover);
}

.project-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.project-icon i {
  font-size: 22px;
  color: var(--blue-600);
}

.project-card h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.project-tag {
  display: inline-block;
  margin-top: 12px;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* ─── CONTACTO ─── */
#contacto {
  background: var(--gray-50);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
}

.contact-info > p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--blue-50);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon i {
  font-size: 18px;
  color: var(--blue-600);
}

.contact-detail-text label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

.contact-detail-text a,
.contact-detail-text span {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.contact-detail-text a:hover {
  color: var(--blue-600);
}

/* ─── FORMULARIO ─── */
.contact-form {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-form h4 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--gray-50);
  border: 0.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue-600);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.08);
}

.form-group textarea {
  height: 110px;
  resize: vertical;
}

/* ─── FOOTER ─── */
footer {
  background: var(--gray-900);
  padding: 64px 40px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1080px;
  margin: 0 auto 48px;
}

.footer-brand-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand-name .accent {
  color: var(--green-400);
}

.footer-brand-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.75;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 18px;
  transition:
    background var(--transition),
    color var(--transition);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.footer-social a.whatsapp:hover {
  color: var(--green-400);
}

.footer-col h5 {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

.footer-bottom-brands {
  display: flex;
  gap: 10px;
}

.footer-brand-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.5px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .container,
  section,
  .navbar,
  footer,
  .trust-bar,
  .brands-bar {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 860px) {
  .navbar {
    padding: 0 20px;
  }
  .nav-links {
    display: none;
  }
  .nav-hamburger {
    display: block;
  }

  section {
    padding: 56px 20px;
  }
  .hero {
    padding: 64px 20px 56px;
  }
  .trust-bar {
    gap: 16px;
    padding: 14px 20px;
  }
  .brands-bar {
    padding: 14px 20px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) {
    border-right: none;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .about-cards {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 28px;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
