/* Main CSS file - imports all other CSS files */

/* Import fonts */
@import url('fonts.css');

/* Import navbar styles */
@import url('navbar.css');

/* Import section styles */
@import url('sections.css');

/* Import responsive styles */
@import url('responsive.css');

/* Import documents styles */
@import url('documents.css');

/* Gellix Font Faces */
@font-face {
  font-family: 'Gellix';
  src: url('GELLIX/Gellix-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Gellix';
  src: url('GELLIX/Gellix-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: 'Gellix';
  src: url('GELLIX/Gellix-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Gellix';
  src: url('GELLIX/Gellix-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
}
/* Aplica Gellix a toda la página */
html, body, input, textarea, button, select {
  font-family: 'Gellix', 'Open Sans', Arial, sans-serif !important;
}

/* Estilos responsivos para móvil */
@media (max-width: 767px) {
  /* Flip Cards en móvil */
  .flip-card {
    height: 250px !important;
    margin-bottom: 15px !important;
  }
  
  .flip-card-front h4 {
    font-size: 1.5em !important;
  }
  
  .flip-card-back h4 {
    font-size: 1.2em !important;
  }
  
  .flip-card-back p {
    font-size: 0.85em !important;
    line-height: 1.4 !important;
  }
  
  .flip-card-back .valores-content {
    flex-direction: column !important;
  }
  
  .flip-card-back .valores-content > div {
    min-width: auto !important;
    margin: 0 !important;
  }
  
  .flip-card-back .valores-content p {
    font-size: 0.8em !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
  }
  
  /* Certificaciones en móvil */
  .certificaciones-carousel {
    padding: 20px 10px !important;
  }
  
  .cert-logo {
    width: 80px !important;
    height: 80px !important;
  }
  
  .cert-card {
    padding: 15px !important;
    margin: 5px !important;
  }
  
  .cert-card h4 {
    font-size: 1em !important;
  }
  
  .cert-card p {
    font-size: 0.8em !important;
  }
  
  .cert-modal-content {
    width: 95% !important;
    margin: 10% auto !important;
    padding: 20px !important;
  }
  
  .cert-modal h3 {
    font-size: 1.3em !important;
  }
  
  .cert-modal li {
    font-size: 0.9em !important;
  }
  
  /* Valores institucionales en móvil */
  .valores-mobile {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  .valores-mobile > div {
    flex: none !important;
    min-width: auto !important;
    width: 100% !important;
    margin: 0 0 15px 0 !important;
  }
  .valores-mobile p {
    font-size: 0.85em !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
  }
}

.navbar-default {
  min-height: 60px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.navbar-header, .navbar-brand {
  display: flex !important;
  align-items: center !important;
  height: 60px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.navbar-brand {
  display: flex !important;
  align-items: center !important;
  height: 60px !important;
  margin: 0 !important;
  padding: 0 40px 0 0 !important;
}
.navbar-default .navbar-nav > li > a,
.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-brand,
.navbar-default .navbar-nav > li > a:visited {
  color: #fff !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  line-height: 40px !important;
  background: transparent !important;
}
.navbar-default .navbar-nav > li > a:focus,
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:focus,
.navbar-default .navbar-nav > .active > a:hover {
  color: #fff !important;
  border-radius: 6px;
}
/* Logo blanco si es PNG con fondo transparente */
.logo-navbar-img {
  filter: brightness(0) invert(1) grayscale(1) contrast(1.2);
  max-height: 40px;
  width: auto;
  margin-right: 10px;
  margin-left: 0;
  display: inline-block;
  vertical-align: middle;
}
.industrias-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 32px;
  justify-items: center;
  align-items: stretch;
}
@media (max-width: 991px) {
  .industrias-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
  }
}
@media (max-width: 600px) {
  .industrias-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(9, 1fr);
  }
}
.industria-card-new {
  display: flex;
  border-radius: 32px;
  overflow: hidden;
  width: 100%;
  height: 120px;
  min-height: 100px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  background-color: #1D3C6C;
  align-items: center;
  margin-bottom: 16px;
}
.industria-card-new img {
  width: 100px;
  height: 90px;
  object-fit: cover;
  border-radius: 18px;
  margin-left: 16px;
  margin-right: 20px;
  background: #fff;
}
.industria-card-new .industria-card-text {
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1;
  height: 100%;
  padding: 0 16px 0 28px;
}
.industria-card-new .industria-card-text span {
  font-size: 1.6em;
  font-weight: 500;
  text-align: left;
  line-height: 1.1;
  display: block;
  word-break: break-word;
}
.icon-white {
  filter: brightness(0) invert(1);
}

/* Flip Card Styles */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: 300px;
  perspective: 1000px;
  margin-bottom: 20px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
}

/* Ajustar el posicionamiento del contenido en la parte trasera */
.flip-card-back {
  justify-content: flex-start;
  padding-top: 20px;
}

.flip-card-front {
  background: #1D3C6C;
  color: white;
}

.flip-card-back {
  background: #1D3C6C;
  color: white;
  transform: rotateY(180deg);
  overflow-y: auto;
  /* Ocultar scrollbar pero mantener funcionalidad */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.flip-card-back::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.flip-card-front img {
  max-width: 70px;
  height: auto;
  margin-bottom: 15px;
  filter: brightness(0) invert(1);
}

.flip-card-front h4 {
  font-size: 1.8em;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

.flip-card-back h4 {
  font-size: 1.4em;
  font-weight: 600;
  margin: 0 0 15px 0;
  text-align: center;
}

.flip-card-back p {
  font-size: 0.95em;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

.flip-card-back .valores-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
  max-width: 1000px;
  gap: 15px;
  padding: 0;
}

.flip-card-back .valores-content > div {
  flex: 1;
  min-width: 250px;
  text-align: left;
  margin: 0;
}

.flip-card-back .valores-content p {
  font-size: 0.85em;
  line-height: 1.4;
  margin-bottom: 8px;
  padding: 0;
}

/* Certificaciones Carousel Styles */
.certificaciones-carousel {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(12, 96, 222, 0.15);
  padding: 40px 20px;
  margin: 20px 0;
}

.cert-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 20px auto;
  display: block;
  transition: transform 0.3s ease;
}

.cert-logo:hover {
  transform: scale(1.1);
}

.cert-card {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  background: #f8fafc;
  margin: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.cert-card:hover {
  background: #e8f4fd;
  border-color: #1D3C6C;
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(35, 96, 188, 0.15);
}

.cert-card h4 {
  color: #1D3C6C;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.cert-card p {
  color: #666;
  font-size: 0.9em;
  line-height: 1.4;
  margin: 0;
}

.cert-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
}

.cert-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 600px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.cert-modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #1D3C6C;
  cursor: pointer;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.cert-modal-close:hover {
  background: #f0f0f0;
}

.cert-modal h3 {
  color: #1D3C6C;
  margin-bottom: 20px;
  font-size: 1.5em;
}

.cert-modal ul {
  list-style: none;
  padding: 0;
}

.cert-modal li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #333;
  line-height: 1.5;
}

.cert-modal li:before {
  content: "✓";
  color: #1D3C6C;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Controles de navegación sin sombra */
.certificaciones-carousel .carousel-control {
  background: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background-color: transparent !important;
  transition: all 0.3s ease;
}

.certificaciones-carousel .carousel-control:hover {
  background-color: transparent !important;
}

.certificaciones-carousel .carousel-control.left {
  left: -25px;
}

.certificaciones-carousel .carousel-control.right {
  right: -25px;
}

.certificaciones-carousel .carousel-control .glyphicon {
  color: #1D3C6C;
  font-size: 18px;
}

/* Contenedor de slides más pequeño */
.certificaciones-slides-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Ajuste específico para la imagen de la persona */
.imagen-persona {
  object-position: center 30% !important;
}
.service-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  margin-bottom: 20px;
  background: #fff;
  cursor: pointer;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2), 0 4px 8px rgba(0,0,0,0.1);
}
.service-card img {
  width: 100%;
  height: 180px; /* Keep original height */
  object-fit: cover;
  display: block;
}
.service-card .service-title {
  background-color: #1D3C6C;
  color: white;
  text-align: center;
  padding: 15px;
  width: 100%;
  min-height: 95px; /* To make boxes same size */
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card .service-title h4 {
  margin: 0;
  font-size: 1.1em;
  line-height: 1.2;
}

/* Additional global styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Gellix', 'Open Sans', Arial, sans-serif;
    line-height: 1.6;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.offsetTop {
    margin-top: 60px;
}

.offsetBottom {
    margin-bottom: 60px;
}

.offsetTopX {
    margin-top: 120px;
}

.offsetBottomX {
    margin-bottom: 120px;
}

.offsetBottomS {
    margin-bottom: 30px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}
