/* ==========================================================================
   FHB SEGURIDAD PRIVADA - STYLESHEET MONOCROMÁTICO
   Paleta Exclusiva: Negro (#111111, #0A0A0A), Blanco (#FFFFFF) y Grises (#E5E7EB, #777777, #333333)
   Diseño Corporativo Minimalista, Colores Sólidos, Sin Degradados
   ========================================================================== */

:root {
  /* Fondos Principales */
  --bg-white: #FFFFFF;
  --bg-light: #F4F5F7;
  --bg-light-alt: #EAEBED;
  --bg-dark: #111111;
  --bg-dark-card: #181818;
  --bg-deep: #0A0A0A;

  /* Bordes Sólidos */
  --border-light: #E2E4E8;
  --border-light-hover: #B5B9C2;
  --border-dark: #2A2A2A;
  --border-dark-hover: #444444;

  /* Textos Modo Claro */
  --text-dark-title: #111111;
  --text-dark-body: #333333;
  --text-dark-muted: #666666;

  /* Textos Modo Oscuro */
  --text-light-title: #FFFFFF;
  --text-light-body: #CCCCCC;
  --text-light-muted: #888888;

  /* Acentos Monocromáticos */
  --accent-black: #111111;
  --accent-white: #FFFFFF;
  --accent-gray: #777777;
  --accent-gray-light: #E5E7EB;
  --accent-gray-dark: #222222;

  /* Tipografías */
  --font-headings: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Estructura y Transiciones */
  --header-height: 84px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --max-width: 1240px;

  /* Sombras Sólidas Suaves */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-dark: 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Reset y Normalización */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-white);
  color: var(--text-dark-body);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-white);
  color: var(--text-dark-body);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

/* Tipografía Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin-bottom: 1.2rem;
  font-weight: 400;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   SECCIONES Y FONDOS (NEGRO, BLANCO Y GRIS)
   ========================================================================== */
.section {
  padding-top: 96px;
  padding-bottom: 96px;
  position: relative;
}

/* 1. Sección Blanca */
.section--white {
  background-color: var(--bg-white);
  color: var(--text-dark-body);
}

.section--white h2,
.section--white h3 {
  color: var(--text-dark-title);
}

/* 2. Sección Gris Neutra */
.section--light-gray {
  background-color: var(--bg-light);
  color: var(--text-dark-body);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section--light-gray h2,
.section--light-gray h3 {
  color: var(--text-dark-title);
}

/* 3. Sección Oscura (Negro #111111) */
.section--dark {
  background-color: var(--bg-dark);
  color: var(--text-light-body);
}

.section--dark h2,
.section--dark h3 {
  color: var(--text-light-title);
}

/* Etiquetas de Sección */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section--white .section-tag,
.section--light-gray .section-tag {
  color: var(--text-dark-title);
}

.section--white .section-tag::before,
.section--light-gray .section-tag::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background-color: var(--accent-black);
}

.section--dark .section-tag {
  color: var(--accent-gray-light);
}

.section--dark .section-tag::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background-color: var(--accent-white);
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 1.05rem;
  max-width: 680px;
  line-height: 1.7;
}

.section--white .section-subtitle,
.section--light-gray .section-subtitle {
  color: var(--text-dark-muted);
}

.section--dark .section-subtitle {
  color: var(--text-light-muted);
}

/* Línea decorativa sólida */
.solid-line-dark {
  width: 60px;
  height: 3px;
  background-color: var(--accent-black);
  margin: 18px 0 28px 0;
  border-radius: var(--radius-full);
}

.solid-line-light {
  width: 60px;
  height: 3px;
  background-color: var(--accent-white);
  margin: 18px 0 28px 0;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   BOTONES MONOCROMÁTICOS (SÓLIDOS)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition-fast), 
              color var(--transition-fast), 
              border-color var(--transition-fast),
              transform var(--transition-fast);
  border: 1px solid transparent;
  text-align: center;
}

/* Botón Blanco Sólido (para fondos oscuros) */
.btn--white {
  background-color: #FFFFFF;
  color: #111111;
  border-color: #FFFFFF;
}

.btn--white:hover {
  background-color: #E5E7EB;
  border-color: #E5E7EB;
  color: #000000;
  transform: translateY(-2px);
}

/* Botón Negro Sólido (para fondos claros) */
.btn--dark {
  background-color: #111111;
  color: #FFFFFF;
  border-color: #111111;
}

.btn--dark:hover {
  background-color: #262626;
  border-color: #262626;
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Botón Outline para Fondos Oscuros */
.btn--outline-light {
  background-color: transparent;
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn--outline-light:hover {
  border-color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Botón Outline para Fondos Claros */
.btn--outline-dark {
  background-color: transparent;
  color: #111111;
  border-color: #111111;
}

.btn--outline-dark:hover {
  background-color: #111111;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.775rem;
}

/* ==========================================================================
   HEADER Y NAVEGACIÓN
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background-color var(--transition-base),
              height var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base);
  background-color: transparent;
}

.header.header--scrolled {
  background-color: #111111;
  height: 72px;
  border-bottom: 1px solid #262626;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.brand__logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__title {
  font-family: var(--font-headings);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  line-height: 1.1;
}

.brand__subtitle {
  font-family: var(--font-headings);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #B0B5BD;
  text-transform: uppercase;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav__link {
  font-family: var(--font-headings);
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D1D5DB;
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #FFFFFF;
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
  color: #FFFFFF;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Menú Móvil Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 42px;
  height: 42px;
  position: relative;
  z-index: 1010;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #FFFFFF;
  margin: 5px auto;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base), background-color var(--transition-base);
}

.nav-toggle.open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: #FFFFFF;
}

.nav-toggle.open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: #FFFFFF;
}

/* ==========================================================================
   HERO SECTION (PORTADA CINEMATOGRÁFICA)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height);
  padding-bottom: 60px;
  overflow: hidden;
  background-color: #111111;
}

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

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  filter: grayscale(40%) contrast(110%);
  animation: heroZoom 24s infinite alternate ease-in-out;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.84);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 20px;
}

.hero__logo-wrap {
  margin-bottom: 22px;
  display: inline-block;
}

.hero__logo-emblem {
  width: 96px;
  height: 96px;
  object-fit: contain;
  animation: floatEmblem 6s ease-in-out infinite alternate;
}

.hero__pretitle {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #B5B9C2;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero__pretitle::before,
.hero__pretitle::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background-color: #777777;
}

.hero__title {
  font-size: clamp(2.3rem, 5.2vw, 4.1rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.15;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #E5E7EB;
  font-weight: 500;
  margin-bottom: 12px;
}

.hero__description {
  font-size: 1rem;
  color: #9CA3AF;
  max-width: 660px;
  margin: 0 auto 36px auto;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding-top: 26px;
  border-top: 1px solid #292929;
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #E5E7EB;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-headings);
}

.badge-item svg {
  color: #FFFFFF;
  flex-shrink: 0;
}

/* ==========================================================================
   SECCIÓN 1: QUIÉNES SOMOS (FONDO BLANCO PURO)
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.about__text {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #333333;
  margin-bottom: 20px;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.about-feature {
  background-color: #F8F9FA;
  padding: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent-black);
}

.about-feature__title {
  font-size: 0.95rem;
  color: var(--text-dark-title);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.about-feature__desc {
  font-size: 0.88rem;
  color: var(--text-dark-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Tarjeta Oficial con el Escudo Original */
.about__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about__card {
  background-color: #FFFFFF;
  border: 2px solid #111111;
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 420px;
  position: relative;
}

.about__card-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--accent-black);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.about__emblem-large {
  width: 190px;
  height: 190px;
  object-fit: contain;
  margin-bottom: 24px;
  transition: transform var(--transition-base);
}

.about__card:hover .about__emblem-large {
  transform: scale(1.04);
}

.about__corp-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-dark-title);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.about__corp-sub {
  font-size: 0.8rem;
  font-weight: 700;
  color: #666666;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ==========================================================================
   SECCIÓN 2: SERVICIOS (FONDO GRIS CLARO SUAVE #F4F5F7)
   ========================================================================== */
.services__header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px auto;
}

.services__header .section-tag {
  justify-content: center;
}

.services__header .section-tag::before {
  display: none;
}

.services__notice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent-black);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 0.825rem;
  color: #444444;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

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

.service-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-base),
              border-color var(--transition-base),
              box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: #111111;
  box-shadow: var(--shadow-md);
}

.service-card__thumb-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: #E2E4E8;
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.service-card:hover .service-card__img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.service-card__num {
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  background-color: #111111;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #333333;
}

.service-card__icon-wrap {
  position: absolute;
  bottom: -22px;
  left: 28px;
  width: 50px;
  height: 50px;
  background-color: #111111;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
  z-index: 2;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.service-card:hover .service-card__icon-wrap {
  background-color: #FFFFFF;
  color: #111111;
  border-color: #111111;
}

.service-card__body {
  padding: 38px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card__title {
  font-size: 1.2rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: var(--text-dark-title);
  font-weight: 800;
}

.service-card__desc {
  font-size: 0.92rem;
  color: var(--text-dark-body);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-card__footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-dark-title);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color var(--transition-fast);
}

.service-card__link:hover {
  color: #555555;
}

.service-card__link svg {
  color: #111111;
  transition: transform var(--transition-fast);
}

.service-card:hover .service-card__link svg {
  transform: translateX(4px);
}

/* ==========================================================================
   SECCIÓN 3: DIFERENCIADORES (FONDO NEGRO SÓLIDO #111111)
   ========================================================================== */
.diff__header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 56px auto;
}

.diff__header .section-tag {
  justify-content: center;
}

.diff__header .section-tag::before {
  display: none;
}

.diff__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.diff-card {
  background-color: #1A1A1A;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 36px 24px;
  text-align: center;
  position: relative;
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.diff-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background-color: #FFFFFF;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.diff-card:hover {
  transform: translateY(-6px);
  border-color: #555555;
}

.diff-card:hover::before {
  opacity: 1;
}

.diff-card__icon-box {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px auto;
  border-radius: 50%;
  background-color: #242424;
  border: 1px solid #383838;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.diff-card:hover .diff-card__icon-box {
  background-color: #FFFFFF;
  color: #111111;
}

.diff-card__title {
  font-size: 1.05rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  color: var(--text-light-title);
  letter-spacing: 0.04em;
}

.diff-card__desc {
  font-size: 0.88rem;
  color: var(--text-light-muted);
  line-height: 1.6;
}

/* ==========================================================================
   SECCIÓN 4: GALERÍA VISUAL (FONDO BLANCO)
   ========================================================================== */
.gallery__header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px auto;
}

.gallery__header .section-tag {
  justify-content: center;
}

.gallery__header .section-tag::before {
  display: none;
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background-color: #E2E4E8;
}

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

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

.gallery-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-item:hover .gallery-item__img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.gallery-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 17, 17, 0.76);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0.85;
  transition: opacity var(--transition-fast), background-color var(--transition-fast);
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
  background-color: rgba(17, 17, 17, 0.88);
}

.gallery-item__category {
  font-family: var(--font-headings);
  font-size: 0.72rem;
  font-weight: 700;
  color: #B5B9C2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.gallery-item__title {
  font-size: 1.05rem;
  color: #FFFFFF;
  font-weight: 700;
}

.gallery-item__zoom-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  background-color: #111111;
  border-radius: 50%;
  border: 1px solid #555555;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: all var(--transition-fast);
}

.gallery-item:hover .gallery-item__zoom-icon {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  padding: 30px;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__content {
  position: relative;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 2px solid #FFFFFF;
}

.lightbox__caption {
  margin-top: 16px;
  color: #FFFFFF;
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: -46px;
  right: 0;
  background: transparent;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 8px;
  transition: color var(--transition-fast);
}

.lightbox__close:hover {
  color: #AAAAAA;
}

/* ==========================================================================
   SECCIÓN 5: LLAMADA A LA ACCIÓN (BANNER SÓLIDO NEGRO)
   ========================================================================== */
.cta-banner {
  background-color: #111111 !important;
  border: 2px solid #333333;
  border-radius: var(--radius-lg);
  padding: 60px 44px;
  text-align: center;
  box-shadow: var(--shadow-dark);
}

.cta-banner__content {
  max-width: 760px;
  margin: 0 auto;
}

.cta-banner__title,
.cta-banner__title * {
  font-size: clamp(2rem, 3.8vw, 2.9rem);
  font-weight: 800;
  color: #FFFFFF !important;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.cta-banner__text {
  font-size: 1.12rem;
  color: #E2E4E8 !important;
  margin-bottom: 34px;
  line-height: 1.7;
}

.cta-banner__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Reglas de Compatibilidad y Visibilidad Máxima de Botones y Textos */
.text-gold {
  color: #FFFFFF !important;
}

.btn--gold {
  background-color: #FFFFFF !important;
  color: #111111 !important;
  border-color: #FFFFFF !important;
  font-weight: 800 !important;
}

.btn--gold:hover {
  background-color: #E5E7EB !important;
  color: #000000 !important;
}

.btn--whatsapp {
  background-color: #25D366 !important;
  color: #FFFFFF !important;
  border: 1px solid #25D366 !important;
  font-weight: 700 !important;
}

.btn--whatsapp:hover {
  background-color: #20BA5A !important;
  border-color: #20BA5A !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   SECCIÓN 6: CONTACTO & FORMULARIO (FONDO GRIS CLARO #F4F5F7)
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.contact-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark-title);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group label .required {
  color: #000000;
  font-weight: 900;
}

.form-control {
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: #111111;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.15);
}

.form-control::placeholder {
  color: #888888;
}

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

.honeypot-field {
  display: none !important;
  visibility: hidden !important;
}

.form-feedback {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background-color: #E8F5E9;
  border: 1px solid #81C784;
  color: #1B5E20;
}

.form-feedback.error {
  display: block;
  background-color: #FFEBEE;
  border: 1px solid #E57373;
  color: #B71C1C;
}

/* Columna de Datos de Contacto (Contraste Negro Sólido) */
.info-box {
  background-color: #111111 !important;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: var(--shadow-dark);
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #FFFFFF !important;
}

.info-box .section-tag {
  color: #E5E7EB !important;
}

.info-box .section-tag::before {
  background-color: #FFFFFF !important;
}

.info-box .section-title,
.info-box h2,
.info-box h3 {
  color: #FFFFFF !important;
}

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.info-item:last-child {
  margin-bottom: 0;
}

.info-item__icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background-color: #1A1A1A;
  border: 1px solid #333333;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-item__content {
  flex-grow: 1;
}

.info-item__label {
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #9CA3AF;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.info-item__value {
  font-size: 0.95rem;
  color: #FFFFFF;
  font-weight: 500;
  line-height: 1.5;
}

.info-item__value a:hover {
  color: #D1D5DB;
}

/* Tarjeta Estatus Legal */
.admin-status-badge {
  background-color: #1A1A1A;
  border: 1px solid #333333;
  border-left: 3px solid #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-top: auto;
}

.admin-status-badge__title {
  font-family: var(--font-headings);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-status-badge__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid #262626;
}

.admin-status-badge__item:last-child {
  border-bottom: none;
}

.admin-status-badge__name {
  color: #999999;
}

.admin-status-badge__state {
  color: #111111;
  background-color: #FFFFFF;
  font-weight: 800;
  font-family: var(--font-headings);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 3px;
}

/* ==========================================================================
   WHATSAPP FLOTANTE
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  z-index: 999;
  cursor: pointer;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background-color: #20BA5A;
}

.whatsapp-float__ping {
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: pingPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.whatsapp-float__tooltip {
  position: absolute;
  right: 74px;
  background-color: #111111;
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid #333333;
  pointer-events: none;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition-fast);
}

.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   FOOTER INSTITUCIONAL (FONDO NEGRO SÓLIDO #0A0A0A)
   ========================================================================== */
.footer {
  background-color: var(--bg-deep);
  border-top: 1px solid #222222;
  padding-top: 70px;
  padding-bottom: 30px;
  color: #AAAAAA;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

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

.footer__company-name {
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
}

.footer__company-type {
  font-size: 0.72rem;
  color: #9CA3AF;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__desc {
  font-size: 0.88rem;
  color: #888888;
  line-height: 1.6;
}

.footer__col-title {
  font-family: var(--font-headings);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer__nav-list {
  list-style: none;
}

.footer__nav-item {
  margin-bottom: 10px;
}

.footer__nav-link {
  font-size: 0.88rem;
  color: #888888;
  transition: color var(--transition-fast);
}

.footer__nav-link:hover {
  color: #FFFFFF;
}

.footer__contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: #888888;
}

.footer__contact-item svg {
  color: #FFFFFF;
  flex-shrink: 0;
  margin-top: 3px;
}

.footer__bottom {
  padding-top: 26px;
  border-top: 1px solid #1A1A1A;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #777777;
  flex-wrap: wrap;
  gap: 14px;
}

.footer__legal-links {
  display: flex;
  gap: 20px;
}

.footer__legal-links a:hover {
  color: #FFFFFF;
}

/* Modal Aviso de Privacidad */
.privacy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  padding: 24px;
}

.privacy-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.privacy-modal__card {
  background-color: #FFFFFF;
  border-radius: var(--radius-md);
  max-width: 680px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.privacy-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: #333333;
  cursor: pointer;
  font-size: 1.4rem;
}

.privacy-modal__close:hover {
  color: #000000;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .diff__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 868px) {
  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
  
  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .nav-toggle {
    display: block;
  }

  .nav__list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background-color: #111111;
    border-left: 1px solid #222222;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 24px;
    transition: right var(--transition-base);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.7);
    z-index: 1005;
  }

  .nav__list.open {
    right: 0;
  }

  .header__cta {
    display: none;
  }
}

@media (max-width: 640px) {
  .services__grid {
    grid-template-columns: 1fr;
  }
  .diff__grid {
    grid-template-columns: 1fr;
  }
  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-item--wide {
    grid-column: span 1;
  }
  .gallery-item--tall {
    grid-row: span 1;
  }
  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-card, .info-box {
    padding: 24px;
  }
  .cta-banner {
    padding: 40px 24px;
  }
  .hero__badges {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .about__features {
    grid-template-columns: 1fr;
  }
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-float__tooltip {
    display: none;
  }
}
