@font-face {
  font-family: 'GoodTimes';
  src: url('../fonts/good-times-rg-webfont.woff2') format('woff2'),
       url('../fonts/good-times-rg-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Square';
  src: url('../fonts/squ721rm-webfont.woff2') format('woff2'),
       url('../fonts/squ721rm-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'SquareBold';
  src: url('../fonts/sqr721b-webfont.woff2') format('woff2'),
       url('../fonts/sqr721b-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

:root {
  --color-primary: #2BABE2;
  --color-secondary: #21205A;
  --color-underline: #D65050;
  --color-text: #4D3B3B;
  --color-white: #ffffff;
  --color-gray: #f2f2f2;
  --color-footer: #1C1C1C;
  --transition-time: 0.3s;
}

body {
  font-family: 'Square';
  font-size: 16px;
  background-color: var(--color-white);
  color: var(--color-text);
}

h1, h2 {
  font-family: 'GoodTimes';
}

p {
  font-size: 18px;
}

.gray-background {
  background-color: var(--color-gray) !important;
}

.white-background {
  background-color: var(--color-white) !important;
}

.hidden {
  display: none;
}

.v-align {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bg-custom-black {
  background-color: rgba(33, 32, 90, 0.6);
}

.title {
  font-family: 'GoodTimes';
  font-size: 45px;
}

.title span {
  color: var(--color-primary);
}

.container-lg {
  max-width: 1140px;
}

.landing {
  position: relative;
  padding: 0;
  background-position: center;
}

.logo img {
  transition: transform var(--transition-time) ease;
}

.logo:hover img {
  transform: scale(0.9);
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 999;
  background-color: transparent;
  box-shadow: none;
}

.menu.scrolled {
  background-color: var(--color-secondary);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Ocultar menu al hacer scroll hacia abajo */
.menu.hide {
  transform: translateY(-100%);
}

.menu.show {
  transform: translateY(0);
}

.custom-navbar {
  position: relative;
  z-index: 100;
}

.custom-navbar.mobile {
  display: none;
}

.custom-navbar.web {
  display: block;
}

.nav-link {
  color: var(--color-white);
  padding-left: 15px !important;
  padding-right: 15px !important;
}

.nav-link:focus, .nav-link:hover {
  color: var(--color-white);
}

.nav-link.link-contact {
  background-color: var(--color-underline);
  border-radius: 3px 3px 3px 3px;
  padding: 12px 24px;
  margin-left: 8px;
  margin-right: 8px;
  transition: transform var(--transition-time) ease;
}

.nav-link.link-contact:hover {
  transform: scale(0.9);
}

.nav-link.phone {
  font-size: 18px;
  font-weight: 600;
  transition: transform var(--transition-time) ease;
}

.nav-link.phone:hover {
  transform: scale(1.1);
}

.nav-link.underlined {
  position: relative;
  padding-bottom: 5px;
  transition-duration: var(--transition-time);
}

.nav-link.underlined i {
  margin-left: 5px;
}

.nav-link.underlined::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-underline);
  opacity: 0;
  transition: opacity var(--transition-time) ease;
}

.nav-link.underlined:hover::after {
  opacity: 1;
}

@keyframes fadeDown {
  0% {
    opacity: 0;
    transform: translateY(-50px);
    visibility: hidden;
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
}

.nav-animate {
  opacity: 0;
  visibility: hidden;
  animation: fadeDown 1s ease forwards;
}

.mobile .nav-animate {
  margin-bottom: 12px;
}

/* Animación secuencial */
.nav-animate:nth-child(1) { animation-delay: 0.2s; }
.nav-animate:nth-child(2) { animation-delay: 0.4s; }
.nav-animate:nth-child(3) { animation-delay: 0.6s; }
.nav-animate:nth-child(4) { animation-delay: 0.8s; }
.nav-animate:nth-child(5) { animation-delay: 1s; }
.nav-animate:nth-child(6) { animation-delay: 1.2s; }

.custom-toggler {
  border: none;
  padding: 0.5rem;
  border: 1px solid var(--color-white);
  transition: all 0.3s ease;
}

.custom-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-animated {
  display: inline-block;
  width: 30px;
  height: 24px;
  position: relative;
}

.navbar-toggler-animated .line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: white;
  transition: all 0.3s ease;
}

.line-1 {
  top: 0;
}

.line-2 {
  top: 50%;
  transform: translateY(-50%);
}

.line-3 {
  bottom: 0;
}

/* Animación cuando el menú está abierto (añade esta clase con JavaScript) */
.custom-toggler.active .line-1 {
  transform: translateY(11px) rotate(45deg);
}

.custom-toggler.active .line-2 {
  opacity: 0;
}

.custom-toggler.active .line-3 {
  transform: translateY(-11px) rotate(-45deg);
}

/* Estilos para el contenedor del dropdown */
.submenu-container {
  position: relative;
}

/* Trigger que contiene el enlace + dropdown */
.submenu-trigger {
  position: relative;
  display: inline-block;
}

/* Estilos base del menú desplegable (oculto por defecto) */
.submenu {
  position: absolute;
  top: 100%;
  left: -50%;
  background: white;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-time) ease;
  transform: translateY(10px);
  z-index: 99;
  display: flex;
  padding: 10px;
}

/* Mostrar dropdown al hacer hover en el contenedor */
.submenu-trigger:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.submenu a {
  display: block;
  text-align: center;
  padding: 10px;
  text-decoration: none;
  color: var(--color-text);
}

.submenu a img {
  transition: transform var(--transition-time) ease;
}

.submenu a:hover img {
  transform: scale(1.1);
}

.submenu a span {
  color: var(--color-underline);
}

/* Wrapper con altura */
.landing .banner-wrapper {
  min-height: 800px;
  position: relative;
}

/* Cada banner (solo uno activo visible) */
.landing .banner {
  position: absolute;
  top: 200px;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  flex-direction: row;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 0s linear 1s;
}

/* Banner visible */
.landing .banner.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 1.5s ease;
  z-index: 2;
}

.landing .banner .banner-text {
  width: 100%;
  padding-left: 25px;
  color: var(--color-white);
  opacity: 0;
  transition: opacity 1.5s ease, transform 1.5s ease;
  transform: translateY(80px);
}

.landing .banner .banner-image {
  opacity: 0;
  transition: opacity 1.5s ease, transform 1.5s ease;
}

/* Cuando se muestra */
.landing .banner.active .banner-text,
.landing .banner.active .banner-image {
  opacity: 1;
  transform: translateY(0);
}

.landing .banner:not(.active) .banner-text {
  opacity: 0;
  transform: translateY(80px); /* Baja al salir */
}

.landing .banner .banner-text a {
  color: var(--color-white);
  border: 2px solid;
  border-radius: 5px;
  text-decoration: none;
  padding: 15px 35px;
  text-align: center;
  margin-top: 20px;
  display: inline-block;
  transition: all var(--transition-time) ease;
}

.landing .banner .banner-text a:hover {
  background-color: #FFFFFF;
  color: #0B1A23;
  border-color: transparent;
}

.landing .banner .banner-image {
  width: 100%;
  max-width: 500px;
}

.rounded-white {
  z-index: 2;
  pointer-events: none;
  bottom: -1px;
  overflow: hidden;
  position: absolute;
  left: 0;
  width: 100%;
  line-height: 0;
  direction: ltr;
}

.rounded-white svg {
  width: calc(160% + 1.3px);
  height: 325px;
  display: block;
  position: relative;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}

.rounded-white svg .fill {
  fill: #fff;
  -webkit-transform-origin: center;
  -ms-transform-origin: center;
  transform-origin: center;
  -webkit-transform: rotateY(0deg);
  transform: rotateY(0deg);
}

/******************************************************************/
.section-solutions {
  margin-top: 50px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.section-solutions h2 {
  color: var(--color-secondary);
  font-size: 40px;
}

.solutions-container {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.solution-card {
  position: relative;
  max-width: 265px;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.solution-card img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  color: white;
  text-align: center;
  padding: 15px 10px;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.image-caption::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(
    to top, 
    rgba(0,0,0,0.8) 0%, 
    transparent 100%
  );
  z-index: -1;
  pointer-events: none;
}

.description-panel {
  position: absolute;
  cursor: pointer;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(33, 32, 90, 0.95);
  color: white;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: bottom 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 3;
}

.description-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--color-primary);
}

.description-panel p {
  margin-bottom: 20px;
  line-height: 1.5;
}

.description-panel .btn-custom {
  padding: 10px 25px;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.8s ease;
}

.description-panel .btn-custom:hover {
  background: var(--color-primary);
}

.solution-card:hover .description-panel {
  bottom: 0;
}

.solution-card:hover .image-caption {
  opacity: 0;
}

/*****************************************************************************/

.section-counters {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-counters h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

.section-counters a {
  color: var(--color-secondary);
      width: fit-content;
  border: 2px solid;
  border-radius: 5px;
  text-decoration: none;
  padding: 15px 35px;
  text-align: center;
  margin-top: 20px;
  display: inline-block;
  transition: all var(--transition-time) ease;
}

.section-counters a:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
  border-color: transparent;
}

.section-counters .counters-text {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

.counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.counters .count {
  padding: 25px 0px 20px 0px;
  background-color: var(--color-secondary);
  border-radius: 10px 10px 10px 10px;
  color: var(--color-white);
  text-align: center;
  flex: 0 0 48%; /* ocupa ~50%, con espacio entre ellos */
  box-sizing: border-box;
  margin-bottom: 20px; /* espacio entre filas */
  padding: 20px;
}

.counters .count span {
  font-size: 40px;
  font-weight: 600;
}

.counters .count p {
  font-size: 16px;
  font-weight: 200;
}

/*****************************************************************************/

.section-why-us {
  background-color: var(--color-white);
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-why-us .why-us-text {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

.section-why-us .why-us-text h2 {
  color: var(--color-secondary);
  font-size: 40px;
}

.section-why-us .why-us-text p span {
  font-size: 22px;
  font-weight: bold;
}

.section-why-us .why-us-text p span.nota {
  font-size: 14px;
}

.section-why-us .why-us-text .only-text p:first-child {
  margin-bottom: 8px;
}

.section-why-us .title {
  color: var(--color-secondary);
  margin-bottom: 40px;
}

.two-column-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

.column {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.circle-icon {
  width: 40px;
  height: 38px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.circle-icon img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.circle-icon.circle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
}


/*****************************************************************************/
.section-about {
  background-image: url('../img/background.png');
  background-position: center;
  background-size: cover;
  color: #fff;
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-about .about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-right: 20px;
}

.section-about h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.about-image img {
  border-radius: 50%;
  width: 431px;
  height: 431px;
  object-fit: cover;
  display: block;
  border: 8px solid var(--color-white);
}

/*****************************************************************************/
.section-clients {
  background-color: var(--color-white);
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-clients h2 {
  color: var(--color-secondary);
  font-size: 40px;
}

.slider {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.slider-container {
  width: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.5s ease;
}

.slide {
  flex: 0 0 25%;
  min-width: 25%; /* ¡Importante! */
  transition: transform 0.5s ease;
  padding: 0 10px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.slide img {
  width: 100%; /* La imagen ocupa el 100% de su contenedor (.slide) */
  height: auto;
  object-fit: contain; /* Mantiene proporciones sin recortar */
}

/* Flechas (personaliza según tu diseño) */
.slider-arrow {
  background: var(--color-secondary);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1;
}

.slider-arrow:hover {
  background: var(--color-primary);
}

/*****************************************************************************/
.section-faqs {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-faqs h2 {
  color: var(--color-secondary);
  font-size: 40px;
  margin-bottom: 20px;
}

.faq {
  width: 100%;
  margin: auto;
}

.faq-item {
  border-bottom: 1px solid #e0e0e0;
  background-color: var(--color-gray);
  overflow: hidden;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem;
  transition: background-color 0.3s ease;
  border-bottom: 2px solid var(--color-secondary);
}

.faq-item.active .faq-question {
  background-color: var(--color-secondary);
  color: #fff;
}

.faq-item:hover .faq-question {
  background-color: var(--color-secondary);
  color: #fff;
}

.faq-question h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: bold;
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  opacity: 0;
  padding: 0 1.2rem;
  transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  opacity: 1;
  padding: 1.2rem;
}

.faq-answer p {
  margin: 0;
}

.faq-answer ul li {
  font-size: 18px;
}

/*****************************************************************************/
.section-contact {
  background-color: var(--color-secondary);
  color: #fff;
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-contact .contact-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding-right: 100px;
}

.section-contact h3 {
  font-size: 32px;
  margin-bottom: 20px;
}

.btn-form {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  background-color: #1C1C1C;
  color: #FFFFFF;
  width: 100%;
  border-radius: 5px 5px 5px 5px;
  display: inline-block;
  font-size: 15px;
  transition: all var(--transition-time) ease;
  min-height: 40px;
}

.btn-form:hover {
  transform: scale(0.9);
  background-color: #000;
}

/*****************************************************************************/

.table-container {
  overflow-x: auto;
  margin: 20px 0;
}

.feature-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-family: 'Square';
  font-size: 16px;
}

.feature-table th,
.feature-table td {
  border: 1px solid #cce5f6;
  padding: 10px;
  text-align: center;
  vertical-align: middle;
}

.feature-table thead th {
  background-color: var(--color-primary);
  color: var(--color-white);;
  font-weight: bold;
}

.feature-table tbody td:first-child {
  text-align: left;
  background-color: var(--color-white);
  color: var(--color-secondary);
  font-weight: 500;
}

.feature-table td:not(:first-child) {
  background-color: #e3f2fb;
  font-weight: bold;
  color: var(--color-secondary);
}

.feature-table .nota {
  font-size: 11px;
  color: #777;
}

/*****************************************************************************/

footer {
  background-color: var(--color-footer);
  padding-top: 40px;
  padding-bottom: 20px;
  color: var(--color-white);
}

footer a {
  color: var(--color-white);
  text-decoration: none;
}

footer ul li {
  margin-bottom: 10px;
}

footer .footer-logo {
  width: 100%;
  max-width: 250px;
}

/*****************************************************************************/
.extra-margin-top {
  margin-top: 106px;
}

.circular-image {
  width: 100%;               /* el ancho se adapta al contenedor */
  aspect-ratio: 1 / 1;       /* mantiene relación 1:1 = cuadrado */
  border-radius: 50%;        /* círculo perfecto */
  overflow: hidden;
  max-width: 80%;          /* tamaño máximo opcional */
  margin: auto;              /* centrado opcional */
}

.circular-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/*****************************************************************************/
/* MEDIA QUERY para móviles */
@media (max-width: 991px) {
  .custom-navbar.mobile {
    display: block;
  }

  .custom-navbar.web {
    display: none;
  }

  .menu {
    background-color: var(--color-secondary);
  }

  .logo img {
    max-width: 200px;
    margin-bottom: 0;
  }

  .menu .container {
    max-width: 100%;
  }

  .solution-card .description-panel {
    bottom: 0;
  }

  .solution-card .image-caption {
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .slide {
    flex: 0 0 50%;
    min-width: 50%;
  }

  .two-column-list {
    grid-template-columns: 1fr;
  }

  .table-container {
    overflow-x: auto;
  }
}