/* ============================================
   TIPOGRAFÍA GLOBAL Y COLORES BASE
============================================ */
* {
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #ffffff;
  color: #1A1A1A; /* Mejor contraste para fondo blanco */
}

h1, h2, h3, .fw-bold {
  color: #000000;
}

/* ============================================
   NAVBAR & HERO
============================================ */
.navbar-brand img {
  width: 100%;
  max-height: 80px;
}

.brand-text {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 10px;
  vertical-align: middle;
}
.brand-text .magno {
  color: #DF484C;
}
.brand-text .security {
  color: #1A306C;
}

.text-prepara,
.text-ataca,
.text-defiende {
  text-shadow: 1px 1px 2px rgba(0, 0, 0, .05);
}
.text-prepara {
  color: #e5a941;
}
.text-ataca {
  color: #B32025;
}
.text-defiende {
  color: #1A306C;
}

.navbar.bg-white {
  background-color: #F7F7FA !important; /* Gris premium */
}

.navbar-nav .nav-link {
  color: #1A1A1A;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 0.75rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: #DF484C;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #DF484C;
  transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after {
  width: 100%;
}
.navbar.sticky-top {
  position: sticky !important;
  top: 0;
  z-index: 1030;
}

.btn.btn-danger,
.navbar-cta {
  background-color: #DF484C;
  border-color: #DF484C;
  color: #FFFFFF !important;
  font-size: 18px;
  border-radius: 999px;
  padding: 12px 28px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(223,72,76,0.13);
  display: inline-block;
  line-height: 1.2;
}
.btn.btn-danger:hover,
.navbar-cta:hover {
  background-color: #b33639; /* Un rojo más oscuro */
  color: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(179,54,57,0.11);
}

.hero-description {
  margin-top: 100px;
}

.image-container img {
  width: 100%;
}

/* ============================================
   CLIENTES
============================================ */
.clientes-section {
  background: #fafafd;
}
.clientes-logos {
  gap: 3rem;
}
.cliente-logo img {
  max-height: 60px;
  max-width: 120px;
  filter: grayscale(100%) brightness(0.88) contrast(1.1);
  opacity: 0.65;
  transition: filter 0.3s cubic-bezier(.68,-0.55,.27,1.55), opacity 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 0 transparent;
}
.cliente-logo img:hover {
  filter: none;
  opacity: 1;
  box-shadow: 0 8px 28px -8px rgba(50,50,90,0.15);
  background: white;
  border-radius: 10px;
}
.cliente-logo-irp img {
  max-height: 250px;
  max-width: 180px;
}

/* ============================================
   HERO LISTAS Y TYPED
============================================ */
.typed-text {
  font-weight: 600;
  font-size: 1.75rem;
  display: inline-block;
  color: #1A306C !important;
}
ul.lead{
  vertical-align: middle;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.typed-cursor {
  font-size: 1.75rem;
  font-weight: 300;
  color: #1A306C;
}

p, .lead, span, .fw-canvas {
  color: #000000;
}

/* ============================================
   TARJETAS DE SERVICIOS (Magno Security) ¡NUEVO!
============================================ */
#servicios .col-lg-3 {
  min-width: 320px;
  max-width: 380px;
  flex: 0 0 20%;
}

.servicio-card {
  display: block;
  height: 100%;
  border-radius: 28px;
  margin-bottom: 0 !important;
}

.servicio-card-inner {
  background: #fff;
  border-radius: 28px;
  padding: 40px 30px 34px 30px;
  min-height: 340px;
  height: 100%;
  box-shadow: 0 6px 32px -8px rgba(25,26,21,0.13);
  border: 1.5px solid #f3f3f7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  user-select: none;
  cursor: pointer;
  transition: box-shadow 0.18s, border 0.18s, transform 0.16s cubic-bezier(.3,1.5,.5,1);
}

.servicio-card-inner:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 12px 48px -14px #DF484C33;
}

.servicio-card-inner i {
  font-size: 3.1rem !important;
  margin-bottom: 14px;
  transition: color 0.2s;
}

/* Colores hover por tipo */
.card-ofensiva .servicio-card-inner:hover {
  box-shadow: 0 8px 40px -10px #DF484C55;
  border: 2px solid #DF484C;
}
.card-defensiva .servicio-card-inner:hover {
  box-shadow: 0 8px 40px -10px #1A306C55;
  border: 2px solid #1A306C;
}
.card-cumplimiento .servicio-card-inner:hover {
  box-shadow: 0 8px 40px -10px #F2C06C99;
  border: 2px solid #F2C06C;
}
.card-capacitacion .servicio-card-inner:hover {
  box-shadow: 0 8px 40px -10px #F2C06C99;
  border: 2px solid #F2C06C;
}
.card-expertos .servicio-card-inner:hover {
  box-shadow: 0 8px 40px -10px #1A306C55;
  border: 2px solid #1A306C;
}
.card-ofensiva .bi { color: #DF484C; }
.card-defensiva .bi { color: #1A306C; }
.card-cumplimiento .bi { color: #F2C06C; }
.card-capacitacion .bi { color: #F2C06C; }
.card-expertos .bi { color: #1A306C; }

.servicios-lista-row {
  width: 100%;
  margin: 0 auto;
  max-width: 340px;
}

.servicios-lista {
  padding-left: 0;
}

.servicios-lista li {
  font-size: 1.03rem;
  color: #222;
  padding-left: 1.15em;
  margin-bottom: 7px;
  position: relative;
  line-height: 1.3;
}

.servicios-lista li:before {
  content: '•';
  color: #DF484C;
  position: absolute;
  left: 0;
  font-size: 1.2em;
  top: 0;
}

.servicios-lista li:last-child {
  color: #999 !important;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Responsive TARJETAS */
@media (max-width: 1200px) {
  #servicios .col-lg-3 {
    min-width: 340px;
    max-width: 98%;
    flex: 0 0 45%;
  }
}

@media (max-width: 991px) {
  #servicios .col-lg-3 {
    min-width: 80vw;
    max-width: 100vw;
    flex: 0 0 90%;
    margin-bottom: 1.5rem;
  }
  .servicio-card-inner {
    min-height: 0;
    padding: 24px 10px;
  }
}

@media (max-width: 767px) {
  #servicios .col-lg-3 {
    min-width: 97vw;
    max-width: 100vw;
    flex: 0 0 98%;
  }
  .servicios-lista-row .col-6 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
}

/* ============================================
   FORMULARIO CONTACTO & FOOTER
============================================ */
.forms-card {
  height: 500px;
  min-height: 0;
  border: none;
  box-shadow: 0 6px 36px -8px rgba(25,26,21,0.08);
  padding-bottom: 24px;
}

.form-label {
  font-weight: 500;
  color: #1A306C;
}
.form-control {
  border-radius: 16px;
  border: 1.5px solid #e0e4ec;
  padding: 12px 16px;
  transition: border 0.18s, box-shadow 0.18s;
  font-size: 1rem;
}
.form-control:focus {
  border-color: #1A306C;
  box-shadow: 0 0 0 2px #DF484C33;
}
.form-check-input:focus {
  border-color: #1A306C;
  box-shadow: 0 0 0 2px #F2C06C44;
}
textarea {
  resize: none;
}
#contacto {
  padding-bottom: 56px !important;
  margin-bottom: 0 !important;
  background: #f7f8fa;
  scroll-margin-top: 120px;
}

/* ============================================
   FOOTER
============================================ */
footer.bg-white {
  background-color: #fff !important;
  margin-top: 0;
  border-top: 1px solid #ededed;
  font-size: 1rem;
  padding-top: 14px;
  padding-bottom: 14px;
}
footer a, footer small {
  color: #191A15 !important;
  font-size: 1rem;
  transition: color 0.2s;
}
footer a:hover,
footer a:focus {
  color: #F2C06C !important;
  text-decoration: underline;
}
footer .container {
  padding-top: 0;
  padding-bottom: 0;
}

@media (max-width: 767px) {
  footer .container {
    flex-direction: column !important;
    text-align: center;
    gap: 12px;
  }
  footer .mt-2.mt-md-0 {
    margin-top: 8px !important;
  }
}

html {
  scroll-behavior: smooth;
}

#servicios .row {
  justify-content: center;
  align-items: stretch;
}

#servicios {
  scroll-margin-top: 90px;
}

[id^="cumplimiento"],
[id^="seguridad"],
[id^="capacitacion"],
[id^="expertos"] {
  scroll-margin-top: 160px;
}
#home {
  scroll-margin-top: 110px;
}
#servicios .row.g-4 {
  gap: 0.8rem 2.2rem;
  justify-content: center;
  align-items: stretch;
}
#servicios .col-lg-3 {
  min-width: 300px;
  max-width: 340px;
  flex: 0 0 19.5%;
  margin-bottom: 0;
}
.servicio-card-inner {
  min-height: 355px;
  padding: 40px 18px 38px 18px;
}
.servicios-lista {
  margin-bottom: 0;
  padding-left: 0;
}
.servicios-lista li {
  font-size: 1.09rem;
  color: #181818;
  font-weight: 500;
  margin-bottom: 7px;
  padding-left: 1.05em;
  position: relative;
}
.servicios-lista li:last-child {
  color: #DF484C !important;
  font-style: normal;
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: 0.01em;
}
.servicios-lista li.italica {
  color: #b9b9bc !important;
  font-style: italic;
  font-weight: 400;
  font-size: 1.01rem;
}
.servicios-lista li:before {
  content: '•';
  color: #DF484C;
  position: absolute;
  left: 0;
  font-size: 1.12em;
  top: 0.01em;
}
@media (max-width: 1200px) {
  #servicios .col-lg-3 {
    min-width: 340px;
    max-width: 98%;
    flex: 0 0 45%;
  }
}
@media (max-width: 991px) {
  #servicios .col-lg-3 {
    min-width: 92vw;
    max-width: 100vw;
    flex: 0 0 100%;
    margin-bottom: 1.5rem;
  }
}
@media (max-width: 767px) {
  .servicio-card-inner {
    min-height: 0;
    padding: 24px 10px;
  }
  .servicios-lista-row .col-6 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
}


.descripcion-bloque {
  max-width: 680px;
  margin-bottom: 1.5rem;
}

.descripcion-titulo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #161616;
  letter-spacing: 0.01em;
  display: block;
  margin-bottom: 0.1rem;
}

.descripcion-subtitulo {
  font-size: 1.07rem;
  color: #6c757d;
  display: block;
  margin-bottom: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.descripcion-headline {
  font-size: 2.5rem;
  line-height: 1.14;
  font-weight: 800;
  margin-bottom: 1.2rem;
  margin-top: 0.1rem;
}

.descripcion-headline span {
  font-weight: 700;
}

.descripcion-texto {
  font-size: 1.13rem;
  color: #222;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 0;
  max-width: 680px;
}


/* ================================
   PILARES DE SERVICIO (DESCRIPCIÓN LARGA)
   ================================ */

.pillar-content {
  max-width: 720px;
  margin-bottom: 1.6rem;
}

.pillar-content h2 {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.14;
  margin-bottom: 1.1rem;
}

.pillar-content h5 {
  font-size: 1.13rem;
  font-weight: 700;
  color: #161616;
  letter-spacing: 0.01em;
  margin-bottom: .2rem;
  text-transform: uppercase;
}

.pillar-content .pillar-lead {
  font-size: 1.13rem;
  color: #2d2d2d;
  font-weight: 400;
  line-height: 1.54;
  margin-bottom: 1rem;
}

.pillar-list {
  font-size: 1.10rem;
  color: #181818;
  font-weight: 500;
  margin-bottom: 0.7rem;
  padding-left: 1.4em;
  letter-spacing: 0.01em;
}

.pillar-list li {
  margin-bottom: 0.38em;
  line-height: 1.45;
  position: relative;
  padding-left: 0.25em;
}


@media (max-width: 991px) {
  .pillar-content h2 {
    font-size: 2.0rem;
  }
  .pillar-content {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .pillar-content h2 {
    font-size: 1.36rem;
    margin-bottom: 0.7rem;
  }
  .pillar-content h5 {
    font-size: 1.02rem;
    margin-bottom: 0.2rem;
  }
  .pillar-list {
    font-size: 1.01rem;
  }
}

/* === COLORES DE BULLETS POR PILAR === */
.bullet-azul li::marker {
  color: #1A306C; /* Azul corporativo */
  font-size: 1.18em;
}
.bullet-rojo li::marker {
  color: #DF484C; /* Rojo ofensiva */
  font-size: 1.18em;
}
.bullet-amarillo li::marker {
  color: #F2C06C; /* Amarillo cumplimiento/capacitación */
  font-size: 1.18em;
}
#contacto {
  scroll-margin-top: 120px; /* O ajusta a tu navbar real */
}

#contacto {
  padding-bottom: 56px !important; /* deja espacio extra para el botón grande */
  margin-bottom: 0 !important;
  background: #f7f8fa;
}

/* FORMULARIO: asegúrate que forms-card no tenga altura fija, deja que crezca */
.forms-card {
  min-height: 0 !important;
  height: auto;
  border: none;
  box-shadow: 0 6px 36px -8px rgba(25,26,21,0.08);
  padding-bottom: 8px; /* Espacio bajo el botón, sobre todo en mobile */
}

/* Botón de enviar: si quieres, puedes limitar el ancho en mobile */
@media (max-width: 768px) {
  .btn.btn-danger.btn-lg {
    font-size: 1rem;
    padding: 14px 0;
  }
  .forms-card {
    padding-bottom: 18px;
  }
  #contacto {
    padding-bottom: 26px !important;
  }
}

/* FOOTER profesional */
footer.bg-white {
  background-color: #fff !important;
  margin-top: 0;
  border-top: 1px solid #ededed;
  font-size: 1rem;
  padding-top: 14px;
  padding-bottom: 14px;
}
footer a, footer small {
  color: #191A15 !important;
  font-size: 1rem;
  transition: color 0.2s;
}
footer a:hover,
footer a:focus {
  color: #F2C06C !important;
  text-decoration: underline;
}
footer .container {
  padding-top: 0;
  padding-bottom: 0;
}
@media (max-width: 767px) {
  footer .container {
    flex-direction: column !important;
    text-align: center;
    gap: 12px;
  }
  footer .mt-2.mt-md-0 {
    margin-top: 8px !important;
  }
}
