
html {
  font-size: 14px;
}
 
body {
  font-family: 'Arial', sans-serif;
}

.separation-borders {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

.animate-on-load,
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -- BUTTON ACTIVATE CHATBOT -- */
.btn-chatbot {
  position: fixed;
  z-index: 1;
  bottom: 10%;
  right: 5%;
  height: 50px;
  width: 50px;
}

.btn-chatbot button {
  background-color: #C70C00;
  color: #FDFDFD;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border-style: none;
  font-size: 30px;
}

/* -- WINDOW CHATBOT -- */
.chatbot {
  display: none;
  position: fixed;
  width: 20%;
  height: 60%;
  bottom: 10%;
  right: 5%;
  z-index: 1;
  border-radius: 25px;
  background: linear-gradient(180deg, #FFF 56.76%, rgba(193, 43, 34, 0.74) 129%);
}

.header-chatbot {
  margin-top: 10px;
  display: flex;
}

.header-chatbot button {
  border-style: none;
  background-color: transparent;
  margin-right: 10px;
  font-weight: bold;
  color: #808080;
}

.header-chatbot p {
  margin-left: 10px;
  font-weight: bold;
  color: #808080;
}

.win-chatbot {
  display: block;
  width: 100%;
  height: 100%;
}

.win-chatbot p {
  text-align: center;
  width: 100%;
  font-weight: bold;
}

.middle-text-chatbot {
  color: #808080;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80%;
}

.welcome-chatbot {
  text-align: center;
}

.win-chatbot input {
  margin-left: auto;
  margin-right: auto;
  width: 80%;
  display: block;
  border-style: none;
  border-radius: 80px;
  height: 30px;
  margin-bottom: auto;
}

/* -- HERO SECTION -- */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  margin: 0;


  overflow: hidden;
  box-sizing: border-box;
  padding: 0 2rem;
  z-index: 1;

}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  inset: 0;
  z-index: 2; 
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 5%;
}

.hero-image {
  width: 100vw;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.4);
  margin: 0;
}

.hero-text {
  display: flex;
  position: relative;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: start;
  width: 100%;
  max-width: 800px;
  padding: 1rem;
  box-sizing: border-box;
  z-index: 3; 
}

.hero-title {
  font-size: 10vh;
  font-weight: bold;
  color: #C70C00;
  margin: 0 0 20px;
  line-height: 1.1;
  text-align: start;
}

.hero-subtitle {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  margin: 0 0 20px;
}

.hero-info {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 30px;
  text-align: start;
}

.btnHeroSection {
  bottom: 20%;
  z-index: 3; 
  position: absolute;
  left: 50%;
  transform: translateX(-50%); 
}

/* Botón CTA */

.txtCTA {
    text-decoration: none;
}

.bkCTA {
    padding: 12px 24px;
    background: #C70C00;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bkCTA:hover {
    background: #9f0b01;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.bkCTA:active {
    transform: translateY(0);
}

/* ---------- TRUST WITH NUMBERS -----------  */

.trust-numbers {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 100vh;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
  padding: 20px;
}

        /* ---------- CERTIFICACIONES INTERNACIONALES ---------- */

.square-1 {
  width: 40%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 16px;
  margin-top: auto;
  margin-bottom: auto;
}

.subtitle-square-1 {
  font-weight: bold;
  line-height: 1.1;
}

.description-square-1 {
  font-weight: bold;
  line-height: 1.1;
  color:#808080;
}

.create-graphic {
  width: 250px;
  text-align: start;
  line-height: 1.1;
}

.create-graphic h7{
  font-weight: bold;
}

.btnTrustSection {
  position: static;
  margin-top: 10px;
}

.middle-separator {
  width: 2px;
  height: 100vh;
  background-color: #5E5E5E;
  margin: 0 20px;
  display: inline-block;
}

        /* ---------- +1000 EQUIPOS ---------- */

.square-2 {
  position: relative;
  text-align: start;
  width: 40%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  margin-left: 20px;
}

.subtitle-square-2 {
  font-weight: bold;
  line-height: 1.1;
}

.description-square-2 {
  font-weight: bold;
  line-height: 1.1;
  color:#808080;
}

        /* ---------- 99% DE SATISFACCIÓN ---------- */

.square-3 {
  position: relative;
  text-align: start;
  width: 40%;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  margin-left: 20px;
  margin: 20px 0 0 20px;
}

.subtitle-square-3 {
  font-weight: bold;
  line-height: 1.1;
}

.description-square-3 {
  font-weight: bold;
  line-height: 1.1;
  color:#808080;
}

        /* ---------- COLUMNA DE ELEMENTOS ---------- */

.square-1,
.square-2,
.square-3,
.column-text-squares {
  flex: 1 1 30%;
  min-width: 250px;
  margin-left: 100px;
}


.column-text-squares {
  width: auto; /* flexible */
  margin-left: 20px;
  margin-top: auto;
  margin-bottom: auto;
}

          /* ---------- ANIMACION DE GRAFICA ---------- */

.chart-container {
  max-width: 400px;
  margin-bottom: 10px;
  text-align: center;
}

.chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 120px;
  gap: 5px;
  position: relative;
}

.bar {
  background-color: #d3d3d3;
  width: 25px;
  height: 0;
  transition: height 1s ease-out;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 7px;
  color: #333;
}

.year-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 7px;
  color: #333;
}

/* ---------- SERVICIOS -----------  */

.services-section {
  padding: 50px 20px;
  background-color: #fefefe;
  text-align: start;
  margin: auto;
}

.section-title {
  font-weight: bold;
}

.services-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.services {
    display: flex;
    justify-content: center;
    gap: 1.25%;
    transition: all 0.3s ease;
}

.service {
    position: relative;
    flex: 0 0 19%;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    overflow: hidden;
    transition: flex-basis 0.4s ease;
    cursor: pointer;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    filter: brightness(0.9)
}

.service.active {
    flex: 0 0 27%;
}

.service.inactive {
    flex: 0 0 17%;
}

.service-content {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 15px;
  transition: all 0.3s ease;
  align-items: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.service-info {
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.service.active .service-info {
  opacity: 1;
  height: auto;
  margin-top: 10px;
}

.service-title {
  color: #FDFDFD;
  font-weight: bold;
  font-size: 150%;
}

.service-info {
  color: #FDFDFD;
  font-weight: bold;
  font-size: 100%;
}

/* ---------- CARD DE SERVICIOS -----------  */


.summary {
  margin: 20px auto;
  font-size: 20px;
  text-align: center;
  font-weight: bold;
  line-height: 1.1;
  color: #808080;
  width: 40vw;
}

.btnServicesCTA {
  margin: 20px auto;
  justify-content: center;
  display: flex;
}

/* ---------- VENTAJAS COMPETITIVAS -----------  */

.advantages-section {
    background-color: #fefefe;
    text-align: center;
    height: 100vh;
    align-content: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.advantages-title {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    font-weight: bold;
    font-size: 50px;
    text-align: center;
}

.advantages-cards-container {
    position: relative;
    width: 25vw; 
    height: 50vh;
}

.advantages-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.8);
    transition: transform 0.5s ease, opacity 0.5s ease;
    animation-duration: 12s; 
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.advantages-img1, .advantages-img2, .advantages-img3 {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.advantages-txt1, .advantages-txt2, .advantages-txt3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #FFF;
    font-size: 25px;
    width: 85%;
    font-weight: 700;
    z-index: 5;
    pointer-events: none;
}

.advantages-txt {
    font-weight: 700;
    color: #808080;
    font-size: 20px;
    text-align: center;
    margin-top: 2%;
}

      /* ---------- ANIMACION DE CARDS VENTAJAS COMPETITIVAS ---------- */

.card-1 {
    animation-name: fadeInOut1;
}

.card-2 {
    animation-name: fadeInOut2;
}

.card-3 {
    animation-name: fadeInOut3;
}

/* Keyframes para la tarjeta 1 (empieza en 0s) */
@keyframes fadeInOut1 {
    0% { opacity: 0; }
    5.56% { opacity: 1; } /* fade-in: 0.5s */
    33.33% { opacity: 1; } /* visible: 2s */
    38.89% { opacity: 0; } /* fade-out: 0.5s */
    100% { opacity: 0; }
}

/* Keyframes para la tarjeta 2 (empieza justo después del fade-out de card 1) */
@keyframes fadeInOut2 {
    0% { opacity: 0; }
    38.89% { opacity: 0; }
    44.44% { opacity: 1; } /* fade-in: 0.5s */
    72.22% { opacity: 1; } /* visible: 2s */
    77.78% { opacity: 0; } /* fade-out: 0.5s */
    100% { opacity: 0; }
}

/* Keyframes para la tarjeta 3 (empieza justo después del fade-out de card 2) */
@keyframes fadeInOut3 {
    0% { opacity: 0; }
    77.78% { opacity: 0; }
    83.33% { opacity: 1; } /* fade-in: 0.5s */
    94.44% { opacity: 1; } /* visible: 2s */
    100% { opacity: 0; } /* fade-out: 0.5s */
}

/* ---------- TESTIMONIOS DESTACADOS -----------  */

.testimonial-section {
    padding: 50px 20px;
    background-color: #fefefe;
    text-align: center;
}

.testimonial-title h1 {
    font-size: 2.8em;
    font-weight: 700;
    margin: 0;
}

.testimonial-title h2 {
    font-size: 2em;
    font-weight: 500;
    color: #888;
    margin-bottom: 40px;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-cta {
    background-color: #f6f6f6;
    padding: 30px;
    border-radius: 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-cta h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
    font-weight: 700;
    color: #555;
    text-align: center;
}

.testimonial-cta p {
    font-size: 20px;
    color: #777;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.testimonial-btn {
  display: flex;
  justify-content: center;
}

.testimonial-card {
    background-color: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
}

.testimonial-card h4 {
    margin: 5px 0;
    font-weight: 700;
    font-size: 1.1em;
}

.testimonial-position {
    color: #aaa;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.testimonial-text {
    font-size: 0.95em;
    color: #333;
    margin-bottom: 15px;
}

.stars {
    color: #ff8c00;
    font-size: 1.2em;
}

@media (max-width: 1024px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonial-title h1 {
        font-size: 2.5em;
    }
    .testimonial-title h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 768px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .testimonial-cta {
        padding: 25px;
    }
    .testimonial-title h1 {
        font-size: 2.2em;
    }
    .testimonial-title h2 {
        font-size: 1.6em;
    }
    .testimonial-cta h3 {
        font-size: 1.3em;
    }
    .testimonial-cta p {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .testimonial-title h1 {
        font-size: 2em;
    }
    .testimonial-title h2 {
        font-size: 1.5em;
    }
    .testimonial-card {
        padding: 20px;
    }
    .testimonial-card h4 {
        font-size: 1em;
    }
    .testimonial-position {
        font-size: 0.8em;
    }
    .testimonial-text {
        font-size: 0.9em;
    }
    .testimonial-cta h3 {
        font-size: 1.2em;
    }
    .testimonial-cta p {
        font-size: 16px;
    }
}

/* ---------- ACREDITACIONES -----------  */

.accreditations-section {
  text-align: center;
  padding: 60px 20px;
}

.accreditations-title {
  font-weight: bold;
  font-size: 2.5em;
}

.accreditations-subtitle {
  font-size: 20px;
  color: #757575;
  font-weight: 600;
  margin-bottom: 50px;
  line-height: 1.4;
}

.accreditations-logos {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 5%;
}

.accreditation {
  height: auto;
  text-align: center;
  max-width: 350px;
}

.accreditation-logo {
  height: auto;
  width: 350px;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.accreditation-logo:hover {
  transform: scale(1.1);
}

.accreditation-text {
  font-size: 18px;
  color: #616161;
  font-weight: 600;
  line-height: 1.5;
}

.accreditation-link {
  color: #616161;
  text-decoration: underline;
  font-weight: bold;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .accreditations-title {
    font-size: 2.2em;
  }

  .accreditations-subtitle {
    font-size: 18px;
  }

  .accreditations-logos {
    gap: 40px;
  }

  .accreditation {
    max-width: 180px;
  }

  .accreditation-logo {
    width: 130px;
  }
}

@media (max-width: 768px) {
  .accreditations-title {
    font-size: 2em;
  }

  .accreditations-subtitle {
    font-size: 16px;
  }

  .accreditations-logos {
    gap: 30px;
  }

  .accreditation {
    max-width: 150px;
  }

  .accreditation-logo {
    width: 120px;
  }
}

@media (max-width: 480px) {
  .accreditations-title {
    font-size: 1.8em;
  }

  .accreditations-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .accreditations-logos {
    gap: 20px;
  }

  .accreditation {
    max-width: 120px;
  }

  .accreditation-logo {
    width: 100px;
  }

  .accreditation-text {
    font-size: 16px;
  }
}


/*  ------------------ SECCION CALL TO ACTION ------------------  */
.cta-section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

}

.cta-section h1 {
  font-weight: bold;
}

.cta-section p {
  font-weight: bold;
  color: #808080;
  margin-bottom: 5%;
}

@media (max-width: 768px) {
  .cta-section {
    text-align: center;
  }
}


@media (max-width: 768px) {
  .hero-title {
    font-size: 7vh;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 2rem; 
  }

  .hero-info {
    font-size: 1.1rem;
    margin-bottom: 20px;
  }

  .hero-text {
    max-width: 90%;
    padding: 0 1rem;
  }

  .btnHeroSection {
    bottom: 10%; 
  }

  .bkCTA {
    width: 200px;
    font-size: 1rem;
  }

  .hero-image {
    height: 100%;
  }
    /* ----------------- TRUST WITH NUMBERS ----------------- */

  .trust-numbers {
    flex-direction: column;
    align-items: center;
    height: auto;
    gap: 40px;
    padding: 20px 10px;
  }

  .square-1,
  .square-2,
  .square-3,
  .column-text-squares {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .square-2,
  .square-3 {
    margin: 0;
  }

  .column-text-squares {
    margin-top: 0;
    margin-bottom: 0;
  }

  .middle-separator {
    display: none;
  }

  .chart-container {
    max-width: 100%;
  }

  .chart {
    height: 100px;
    gap: 3px;
  }

  .bar {
    width: 20px;
    font-size: 6px;
  }

  .year-labels {
    font-size: 6px;
  }

  .btnTrustSection {
    width: 100%;
    text-align: center;
    margin-top: 20px;
  }
    /* ----------------- CARDS DE SERVICIOS ----------------- */

    .services {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .service {
        flex: 0 0 auto !important;
        width: 90%;
    }

    .service.active,
    .service.inactive {
        flex: 0 0 auto !important;
        width: 90%;
    }

    .service-content {
        position: absolute;
        bottom: 0;
        width: 100%;
        color: #fff;
        padding: 15px;
    }

    .service-info {
      opacity: 1;
      height: auto;
      margin-top: 10px;
    }

    .summary {
      width: 100%;
    }

    .advantages-cards-container {
      width: 80%;
    }

}


@media (max-width: 1024px) {
  .hero-title {
    font-size: 8vh;
  }

  .hero-subtitle {
    font-size: 2.5rem;
  }

  .hero-info {
    font-size: 1.2rem; 
  }

  .hero-text {
    max-width: 80%; 
  }

  .bkCTA {
    width: 220px; 
  }
}


@media (min-width: 1200px) {
  .hero-title {
    font-size: 12vh;
  }

  .hero-subtitle {
    font-size: 3.5rem;
  }
}

