/* ======= General ======= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body{
    margin: 0;
    background-color: #fffbfbee;
    color: #eee;
    font-family: Poppins;
    font-size: 12px;
}
a{
    text-decoration: none;
}

main {
    margin-bottom: 5px; /* Agrega más espacio entre el main y el footer */
}


/* ======= Header ======= */
header{
    width: 1140px;
    max-width: 80%;
    margin: auto;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}

.logo {
    height: 60px;
    width: auto;
    display: block;
    position: relative;
    left: -70px; /* Mueve el logo a la izquierda */
    transform: translateY(20%);
}

/* Menú de navegación */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    transition: color 0.3s;
}

nav ul li a:hover {
    text-decoration: underline;
    color: #87dd48;
}

/* Botón de consulta */
.nav-button {
    background: #ff4d00;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    text-align: center; /* Asegura el centrado del texto */
    position: absolute;
    right: -60px; /* Ajusta según lo necesites */
    
}

.nav-button:hover {
    background: #87dd48;
}

/* carousel */

/* carousel */
.carousel{
    height: 100vh;
    margin-top: -50px;
    width: 100vw;
    overflow: hidden;
    position: relative;
}
.carousel .list .item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.carousel .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel .list .item .content{
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}
.carousel .list .item .author{
    font-weight: bold;
    letter-spacing: 10px;
}
.carousel .list .item .title,
.carousel .list .item .topic{
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
}
.carousel .list .item .topic{
    color: #f1683a;
}
.carousel .list .item .buttons{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 5px;
    margin-top: 20px;
}
.carousel .list .item .buttons button{
    border: none;
    background-color: #eee;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
}
.carousel .list .item .buttons button:nth-child(2){
    background-color: transparent;
    border: 1px solid #fff;
    color: #eee;
}

/* thumbail */
.thumbnail{
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}
.thumbnail .item{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}
.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.thumbnail .item .content{
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.thumbnail .item .content .title{
    font-weight: 500;
}
.thumbnail .item .content .description{
    font-weight: 300;
}

/* arrows */
.arrows{
    position: absolute;
    top: 80%;
    right: 47%;
    z-index: 100;
    width: 300px;
    max-width: 47%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}
.arrows button:hover{
    background-color: #fff;
    color: #000;
}

/* animation */
.carousel .list .item:nth-child(1){
    z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}

@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}

.carousel .list .item:nth-child(1) .content .title{
    animation-delay: 1.2s!important;
}
.carousel .list .item:nth-child(1) .content .topic{
    animation-delay: 1.4s!important;
}
.carousel .list .item:nth-child(1) .content .des{
    animation-delay: 1.6s!important;
}
.carousel .list .item:nth-child(1) .content .buttons{
    animation-delay: 1.8s!important;
}

/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}

@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
    z-index: 100;
}

@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.carousel.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

/* running time */

.carousel .time{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time{
    animation: runningTime 3s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}

/* prev click */

.carousel.prev .list .item:nth-child(2){
    z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
    pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons
{
    animation: contentOut 1.5s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}
@media screen and (max-width: 678px) {
    .carousel .list .item .content{
        padding-right: 0;
    }
    .carousel .list .item .content .title{
        font-size: 30px;
    }
}

/* Estilos para la Sección del Fundador */
/* Contenedor principal */
/* Estilos por defecto (desktop o grande) */

.founder-container { display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 20px;
  align-items: center;
}

.founder-image img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
}

.founder-text1,
.founder-text2,
.founder-text3 {
  flex: 1;
  background-color: white;
  padding: 30px;
  text-align: left;
  color: black;
  max-width: 800px;
}

.founder-text1 h2,
.founder-text2 h2,
.founder-text3 h2 {
  font-size: 25px;
  font-weight: 700;
  color: #000;
  margin-bottom: 30px;
  font-family: 'Poppins', sans-serif;
}

.founder-text1 p,
.founder-text2 p,
.founder-text3 p {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5em;
}

/* Tablets y escritorio */
@media (min-width: 768px) {
  .founder-container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 40px;
  }

  .founder-text1,
  .founder-text2,
  .founder-text3 {
    padding: 0 40px;
    text-align: left;
  }
}

/* Dispositivos móviles */
@media (max-width: 768px) {
  .founder-container {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .founder-text1,
  .founder-text2,
  .founder-text3 {
    padding: 20px;
    text-align: center;
  }

  .founder-text1 h2,
  .founder-text2 h2,
  .founder-text3 h2 {
    font-size: 1.5rem;
  }

  .founder-text1 p,
  .founder-text2 p,
  .founder-text3 p {
    font-size: 0.95rem;
  }

  .founder-image img {
    max-width: 90vw;
  }
}  

  
/* El primer bloque se queda al fondo */
.founder-container:first-child {
    z-index: 1;

}

/* El segundo bloque se superpone sobre el primero */
.founder-container:nth-child(2) {
    z-index: 2;
    opacity: 0;
}

/* El tercer bloque se superpone sobre el segundo */
.founder-container:nth-child(3) {
    z-index: 3;
    opacity: 0;
}



/* ======= Secciones ======= */
section:not(#services, #benefits) {
    position: relative;
    padding: 100px 50px;
    text-align: center;
    opacity: 1;
    transform: translateY(80px); /* Mayor desplazamiento para notar el efecto */
    transition: opacity 1s ease-out, transform 2s ease-out;
    margin-top: -50px; /* Superposición suave */
}

/* Evita que la primera sección quede oculta tras el header */
section:not(#services):first-of-type {
    margin-top: 105px;
}

/* Cuando la sección es visible */
section:not(#services).visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======= Footer ======= */
.footer {
  background-color: #1A1F2C;
  color: white;
  padding: 60px 20px 30px;
  margin-top: auto;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-column {
  flex: 1;
  min-width: 280px;
  max-width: 320px;
}

.logo-container {
  margin-bottom: 10px;
  text-align: center;
}

.logo-container img {
  max-width: 50px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
  object-fit: contain;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.social-links a svg path {
  fill: white;
  transition: fill 0.3s ease;
}

.social-links a:hover svg path {
  fill: #FF5722;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-content {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }
  
  .footer-column {
      width: 100%;
      max-width: 100%;
      margin: 0 auto;
  }
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05em; /* Tamaño ligeramente mayor */
  margin-bottom: 16px;
  line-height: 1.6;
}

.footer-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #FF5722;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-legal {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.footer-legal a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.divider {
  color: rgba(255, 255, 255, 0.5);
}

.founder-container {
    position: sticky;
    top: 0;
    width: 100%;
    transition: opacity 0.5s ease-out;
}

/* Primer bloque (se queda fijo abajo) */
.founder-container:first-child {
    z-index: 1;
}

/* Segundo bloque (se superpone y desaparece al subir) */
.founder-container:nth-child(2) {
    z-index: 2;
    opacity: 0;
}

/* Beneficio */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  
  .benefits-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #000;
    margin-bottom: 20px;
  }
  
  .section-description {
    text-align: center;
    font-size: 18px;
    color: #555;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.6;
  }
  
  .benefits-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .benefit-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 40px 30px;
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
  
  .icon-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #FFF0EC;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
  }
  
  .plus-icon {
    color: #FF5722;
    font-size: 36px;
    font-weight: 300;
  }
  
  .percentage {
    font-size: 50px;
    font-weight: 700;
    color: #FF5722;
    margin: 15px 0;
  }
  
  .benefit-title {
    font-size: 18px;
    color: #333;
    line-height: 1.4;
  }
  
  @media (max-width: 768px) {
    .benefits-container {
      flex-direction: column;
      align-items: center;
    }
    
    .benefit-card {
      max-width: 100%;
    }
  }
  

  /* Reset básico y estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  background-color: white;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
} 

.text-center {
  text-align: center;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.text-3xl {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #000;
  margin-bottom: 20px;
}

.md\:text-4xl {
  font-size: 2.25rem;
}

.font-bold {
  font-weight: 700;
}

.text-lg {
  text-align: center;
  font-size: 18px;
  color: #555;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.6;
}


.text-gray-600 {
  color: #666;
}

.max-w-2xl {
  max-width: 42rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Grid layout */
.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .md\:grid-cols-2 {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
      grid-template-columns: repeat(3, 1fr);
  }
}

.gap-8 {
  gap: 2rem;
}

/* Tarjeta de testimonio */
.testimonio-card {
  width: 100%;
  height: 320px;
  cursor: pointer;
  perspective: 1000px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s;
  transform-style: preserve-3d;
}

.testimonio-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Frente de la tarjeta */
.card-front {
  background-color: #fff;
}

.bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 87, 34, 0.8), rgba(76, 175, 80, 0.8));
  opacity: 0.6;
  z-index: 1;
}

.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  color: white;
  z-index: 2;
}

.person-info h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.person-info p {
  font-size: 0.875rem;
  opacity: 0.8;
}

.hover-info {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
}

.testimonio-card:hover .hover-info {
  opacity: 1;
}

.tooltip {
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
}

/* Reverso de la tarjeta */
.card-back {
  background-color: white;
  padding: 2rem;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.quote-content {
  flex: 1;
  display: flex;
  align-items: center;
}

.quote-content p {
  font-style: italic;
  color: #555;
  line-height: 1.6;
}

.author-info {
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

.author-info h3 {
  font-size: 1.125rem;
  font-weight: bold;
  color: #FF5722;
  margin-bottom: 0.25rem;
}

.author-info p {
  font-size: 0.875rem;
  color: #666;
}


