/* ===========================================
   MISION SEGURIDAD - ESTILOS PRINCIPALES
   =========================================== */

/* ===========================================
   IMPORTS Y CONFIGURACIÓN GLOBAL
   =========================================== */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Source+Sans+Pro:wght@300;400;600&display=swap");

/* ===========================================
   RESET Y CONFIGURACIÓN BASE
   =========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Source Sans Pro", sans-serif;
}

*::-moz-selection {
  background-color: #b2b3b3;
  color: #019bdb;
}

*::selection {
  background-color: #b2b3b3;
  color: #004d66;
}

/* ===========================================
   VARIABLES DE COLOR
   =========================================== */
:root {
  --primary-color: #019bdb;
  --primary-dark: #004d66;
  --secondary-color: #2b2b2b;
  --text-color: #3F3E3E;
  --light-gray: #ececec;
  --white: #ffffff;
  --gray: #b2b3b3;
}

/* ===========================================
   HEADER Y NAVEGACIÓN
   =========================================== */
.header {
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.header .logo {
  width: 350px;
  padding-left: 20px;
}

.menu {
  height: 50px;
  background-color: var(--secondary-color);
}

.nav-link.custom-link {
  color: var(--gray);
}

.nav-link.custom-link:hover {
  color: var(--primary-color);
}

.nav-link.informes {
  color: var(--primary-color);
}

/* ===========================================
   CARRUSEL Y CONTENEDORES
   =========================================== */
.carousel-item {
  min-height: 100vh;
}

.container {
  animation: scale-in-center 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.container .container:nth-child(1) {
          animation-delay: 0.2s;
}

.container .container:nth-child(2) {
          animation-delay: 0.4s;
}

.container .container:nth-child(3) {
          animation-delay: 0.6s;
}

.container h2 {
  color: var(--primary-color);
 font-size: 1.5rem;
}

/* ===========================================
   TARJETAS Y CARDS
   =========================================== */
.card-title {
  color: var(--primary-color);
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 600;
  text-align: center;
}

.card {
  display: flex;
  align-items: center;
  padding-top: 20px;
  overflow: hidden;
}

.compliance-card {
  background-color: var(--white);
  border: 1px solid #eee;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.compliance-card h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.compliance-card p {
  color: #333;
}

.compliance-card .btn-warning {
  background-color: var(--primary-color);
  border: none;
  font-weight: bold;
  font-size: 0.85rem;
}

.compliance-card .btn-warning:hover {
  background-color: var(--primary-dark);
}

.card-img-top-empresa {
  width: 30%;
  text-align: center;
}

/* ===========================================
   BANNERS Y FONDOS
   =========================================== */
.bg-banner-informe {
  background-image: url('../Images/bgInforme.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.secciones {
  background-image: url("../Images/fondosecciones.jpg");
  object-fit: cover;
}

/* ===========================================
   ELEMENTOS DESTACADOS
   =========================================== */
.destacada {
  border-width: 2px;
  transform: scale(1.02);
  transition: all 0.3s ease;
}

.destacada:hover {
  transform: scale(1.05);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

/* ===========================================
   BOTONES
   =========================================== */
.botones {
  background-color: var(--primary-color);
  border: 0;
}

.botones a:hover {
  background-color: var(--secondary-color);
   opacity: 0.8;
}

.botonesDesabilitados {
  background-color: gray;
  border: 0;
}

.botonesDesabilitados .botonesDesabilitados a:hover {
  opacity: 0.8;
}

.botonesactivos {
  text-decoration: none;
  color: var(--white);
}

/* ===========================================
   SECCIONES DE CONTENIDO
   =========================================== */
.titulo_seccion {
  padding: 0px 60px 0px 60px;
  height: 200px;
  background-repeat: no-repeat;
  background-size: cover;
  animation: tracking-in-expand 0.7s cubic-bezier(0.215, 0.61, 0.355, 1) both;
}

.titulo_seccion h1 {
  text-align: left;
  font-size: 48px;
  color: var(--white);
  padding-top: 80px;
  font-family: "Source Sans Pro", sans-serif;
}

.descripcion_seccion p {
  text-align: justify;
  padding: 30px 50px 0px 50px;
  color: var(--text-color);
  font-size: 1rem;
}

.descripcion_seccion h3 {
  text-align: left;
  font-size: 1.5rem;
  color: var(--primary-dark);
  font-family: "Source Sans Pro", sans-serif;
 padding: 30px 50px 0px 50px;
}

/* ===========================================
   ACORDEÓN Y DESPLEGABLES
   =========================================== */
.desplegable {
  padding: 20px;
}

.accordion {
  --bs-accordion-inner-border-radius: 0px;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 0;
}

.accordion-button {
  color: var(--white);
  background-color: var(--primary-dark);
  height: 50px;
  border-radius: 0;
  margin: 10px;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 24px;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: var(--white);
}

.accordion-item {
  border: 0px;
}

.accordion-body {
  height: auto;
}

/* ===========================================
   MARKETING Y CLIENTES
   =========================================== */
.marketing {
  background-color: #ECEBE9;
  margin-top: 50px;
}

.marketing p {
  text-align: center;
  padding: 0 20px;
  color: var(--text-color);
}

.marketing .marcasfondo {
  background-color: var(--white);
  padding: 20px 0 30px;
}

.marketing .marcas-grid img {
  max-height: 50px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
  }

.marketing .marcas-grid img:hover {
  filter: none;
  }

/* ===========================================
   CONTACTO Y FORMULARIOS
   =========================================== */
.contacto {
  width: 50rem;
  padding: 50px;
}

.cuerpo {
  display: flex;
  padding-top: 20px;
  align-items: center;
  justify-content: center;
}

.form-register {
  width: 400px;
  background: var(--white);
  padding: 30px;
  margin: auto;
  margin-top: 100px;
  border-radius: 5px;
  color: var(--primary-color);
}

.form-register .form-register h4 {
  font-size: 22px;
  margin-bottom: 20px;
}

.controls {
  width: 100%;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--primary-color);
  font-size: 18px;
  color: var(--white);
}

.form-register p {
  height: 40px;
  text-align: center;
  font-size: 18px;
  line-height: 40px;
}

.form-register p .form-register a {
  color: grey;
  text-decoration: none;
}

.form-register p .form-register a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.form-register p .form-register .botons {
  width: 100%;
  background: var(--primary-color);
  border: none;
  padding: 12px;
  color: var(--white);
  margin: 16px 0;
  font-size: 16px;
}

/* ===========================================
   MAPA
   =========================================== */
.mapa {
  animation: scale-in-ver-center 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* ===========================================
   ELEMENTOS DE INICIO
   =========================================== */
.inicio {
  display: flex;
  justify-content: left;
  align-items: center;
  padding: 20px 20px;
  gap: 10px;
}

.inicio__titulo a {
  font-weight: 400;
  color: var(--white);
  font-size: 16px;
  text-decoration: none;
}

.inicio__titulo a .inicio__titulo a:hover {
  color: var(--primary-color);
}

/* ===========================================
   FOOTER
   =========================================== */
footer {
  background-color: var(--secondary-color);
}

footer .pie {
  font-size: 14px;
  font-weight: 200;
}

/* ===========================================
   CARRUSEL CREATIVO
   =========================================== */
#creativeCarousel .carousel-control-prev,
#creativeCarousel .carousel-control-next {
  top: 50%;
  transform: translateY(-50%);
  width: 5%;
  height: 5rem;
  z-index: 2000;
  opacity: 0.8;
}

/* ===========================================
   BANNER DE INFORMES COMERCIALES
   =========================================== */
.banner-informes {
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.6) 0%, rgba(52, 73, 94, 0.6) 100%), url('../Images/bgInforme.jpg');
  background-size: cover;
  background-position: center;
}

.banner-informes-overlay {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.banner-informes-badge {
  width: fit-content;
  font-size: 1rem;
}

.banner-informes-titulo {
  font-size: 2.5rem;
  line-height: 1.1;
}

.banner-informes-subtitulo {
  font-size: 0.8em;
}

.banner-informes-descripcion {
  max-width: 500px;
  font-size: 1.1rem;
  color: #ffffff;
}

.banner-informes-beneficio {
  font-size: 0.9rem;
}

.banner-informes-precio {
  font-size: 3rem;
}

.banner-informes-boton {
  transition: all 0.3s ease;
}

.banner-informes-boton:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===========================================
   ELEMENTOS MISCELÁNEOS
   =========================================== */
.service img {
  width: 100px;
}

.imagenescentradas {
  display: flex;
  justify-content: center;
  align-items: center;
}

.entrada {
  animation: scale-in-ver-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
/* ===========================================
 CREDITOS
   =========================================== */

   .icono-behance {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 6px;
    filter: grayscale(100%) brightness(0.5);
    transition: filter 0.3s ease;
  }
  
  .icono-behance:hover {
    filter: none;
  }
  
  .creditos {
    font-size: 0.85rem;
    color: lightgrey;
    margin-top: 0.5rem;
    text-align: center;
  }
/* ===========================================
   ANIMACIONES
   =========================================== */
@keyframes scale-in-center {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes tracking-in-expand {
  0% {
    letter-spacing: -0.5em;
    opacity: 0;
  }
  40% {
    opacity: 0.6;
  }
  100% {
    opacity: 1;
  }
}

@keyframes scale-in-ver-top {
  0% {
    transform: scaleY(0);
    transform-origin: 100% 0%;
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    transform-origin: 100% 0%;
    opacity: 1;
  }
}

@keyframes scale-in-ver-center {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ===========================================
   MEDIA QUERIES
   =========================================== */

/* Tablet y dispositivos medianos */
@media screen and (max-width: 768px) {

  /* Header y navegación */
  .header {
    flex-direction: column;
  }
  
  .seccion-con-margen {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
  
  .menu {
    width: 100%;
    justify-content: space-between;
    padding: 0 20px;
  }

  .navbar-toggler {
    margin-left: auto;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    z-index: 1000;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }

  .navbar-nav {
    flex-direction: column;
    gap: 10px;
  }

  /* Clientes */
  .clientes {
    justify-content: flex-start;
    background-color: lightgrey;
    height: 40px;
  }

  /* Secciones */
  .destacado {
    height: 80vh;
  }

  .cuerpo {
    display: block;
  }

  .contacto {
    width: 100%;
  }

  /* Mapa responsivo */
  .mapa {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
  }

  .mapa iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
  }

  /* Otros elementos */
  .marcas {
    display: flex;
    justify-content: center;
  }
  
   #creativeCarousel .carousel-caption {
    width: 90% !important;
    padding: 3rem 1rem 1rem 1rem !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    align-items: flex-start !important;
  }
  
  #creativeCarousel .carousel-caption .btn {
    white-space: normal;
    margin-bottom: 1rem;
  }
  
  #creativeCarousel .carousel-control-prev,
  #creativeCarousel .carousel-control-next {
    top: 70%;
    transform: translateY(0);
  }
}

/* Dispositivos móviles pequeños */
@media screen and (max-width: 480px) {
  .destacado {
    height: 60vh;
  }
  
}

/* Dispositivos grandes */
@media (min-width: 992px) {
  .imagencarrusel {
    height: 70vh;
  }

  .creditos {
    text-align: left;
  }

}

