/* -------------------------
   1. GLOBAL
-------------------------- */

.content-wrapper {
  max-width: 1288px;
  /* Set the max width for the content */
  height: 100%;
  margin: 0 auto;
  /* Center the wrapper horizontally */
  padding: 0 20px;
  /* Add some horizontal padding for responsiveness */
  box-sizing: border-box;
  /* Ensure padding is included in the total width */
}

.servicios-section {
  min-height: 40vh;
}

.servicios-section h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 3rem;
  text-align: center;
}

/* -------------------------
   2. HERO / BANNER
-------------------------- */
.hero-section {
  padding: 4rem 0;
  color: #ffffff;
  text-align: center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  animation: heroFadeIn 1s ease-in-out forwards;
  transform: translateY(50px);
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-logo {
  max-width: 250px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #FAFAFA;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-buttons .btn {
  padding: 10px 25px;
  background: #B9B9B9;
  font-size: 16px;
}

/* -------------------------
   3. INTRODUCCIÓN
-------------------------- */
.intro-section {
    background-color: #fafafa;
    padding: 3rem 0;
    min-height: 40vh;
    display: flex;
    align-items: center;
}

.intro-content {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.intro-content .intro-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50%;
}

.intro-content .intro-left h2 {
  font-size: 48px;
  font-weight: bold;
}

.intro-content .intro-right {
  display: flex;
  width: 50%;
  align-items: end;
}

.intro-text {
  margin: 0 auto 2rem auto;
  font-size: 18px;
  color: #000034;
  text-align: justify;

}

.intro-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.icon-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.icon-img {
  width: 150px;
  height: 150px;
  transform: translateY(30px) rotate(-90deg) ;
  margin-bottom: 0.5rem;
  opacity: 0;
}

@keyframes icons-entrance {
  to {
    opacity: 1;
    transform: translateY(0px) rotate(0deg) ;
  }
}


#icono_1.icon-img.visible {
  animation: icons-entrance 1s 1s ease-in-out forwards;
}

#icono_2.icon-img.visible {
  animation: icons-entrance 1s 1.5s ease-in-out forwards;
}

#icono_3.icon-img.visible {
  animation: icons-entrance 1s 2s ease-in-out forwards;
}


.icon-block p {
  font-size: 24px;
  font-weight: normal;
}

/* -------------------------
   4. REQUISITOS
-------------------------- */
.requisitos-section {
  background-color: #000034;
  padding: 3rem 0;
}

.requisitos-section h2 {
  color: #fafafa;
}
.requisitos-title-container {
  display: flex;
  flex-direction: column;
  align-items: baseline;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.requisitos-title-container ul {
  color: #fafafa;
  font-size: 16px;
}

.requisito-block {
  margin-bottom: 5rem;
}

.requisito-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  padding-bottom: 20px;
  cursor: pointer;
}

.requisito-heading .arrow-icon {
  	font-size: 32px;
    color: #fafafa;
}

.requisito-heading .requisito-titulo {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #fafafa;
}

@keyframes open-close {
  0%   {max-height: 0;}
  100% {max-height: 400px;}
}

.requisito-block.active .documentos-list {
  padding: 20px 0 20px 2%;
  max-height: 400px;  
  animation-name: open-close;
  animation-duration: 0.5s
}

.requisito-block .documentos-list {
  display: flex;
  gap: 10px;
  flex-direction: column;
  padding: 0 0 0 2%;
  max-height: 0;
  overflow: hidden;
  /* transition: max-height 2s ease; */
  transition: all 0.5s ease;

}

.documentos-list .documento-item {
    margin-left: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

.documentos-list .documento-item a {
  color: #fafafa;
  font-size: 22px;
  font-weight: 600;
  line-height: 2.5rem;
}

.documentos-list .documento-item a:hover {
  text-decoration: underline;
}

.documentos-list .documento-item .pdf-icon {
  color: #fafafa;
  font-size: 40px;
}

.requisito-block .first-divider {
  border: 1px solid #b9b9b934;
  transition: all 0.6s ease;
} 

.requisito-block.active .first-divider {
  border: 1px solid #fafafa;
  transition: all 0.6s ease;
}

.requisito-block .last-divider {
  border: 1px solid #fafafa9d;
}

/* -------------------------
   5. PASO A PASO
-------------------------- */
.pasos-section {
  background-color: #fafafa;
  padding: 3rem 0;
}

.progress-container {
  position: absolute;
  top: 0;
  height: 100%;
  width: 10px;
  background-color: #000034;
  z-index: 1;
  margin-left: 5%;
}

.pasos {
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.paso-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 50px 40px;
  border-radius: 20px;
  background: #000034;
  color: #fafafa;
  max-width: 100%;
  min-width: 200px;
  z-index: 2;
  position: relative;
  overflow: hidden;
}

.paso-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 2px solid #fafafa;
  border-radius: 50%;
  background-color: #000034;
  color: #fafafa;         
  font-size: 24px;
  font-weight: 600;
  margin-right: 1rem;
  
  
}

.paso-content {
  font-size: 36px;
  font-weight: normal;
}

/* -------------------------
   6. BENEFICIOS
-------------------------- */
.beneficios-section {
  background-color: #000034;
  padding: 3rem 0;
}

.beneficios-section h2 {
  color: #fafafa;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .beneficios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .beneficios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }
}

.beneficio-card {
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  background: #f0f0f0;
  height: 375px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 20px;
  box-shadow: 2px 4px 4px rgba(0, 0, 0, 0.25);
  padding: 20px 50px;
  gap: 15px;
  /* background */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.beneficio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, 1) 100%);
    /* Black overlay with 50% opacity */
    z-index: 1;
}

.beneficio-card:hover .beneficio-overlay {
  background: linear-gradient(transparent, rgba(0, 0, 0, 1) 80%);
}



.beneficio-card p {
    max-height: 0%;
    overflow: hidden;
    text-align: justify;
    transition: max-height 0.5s ease;
    font-size: 20px;
    color: #fafafa;
    z-index: 2;
}

.beneficio-card img {
    height: 175px;
    width: auto;
    transition: height 0.5s ease;
    position: relative;
    z-index: 2;
}


/* Hover effect */
.beneficio-card:hover img,
.beneficio-card.active img {
    height: 125px; /* Shrinks image */
    transition: height 0.5s ease;
}

.beneficio-card h4 {
  font-size: 32px; /* Enlarges title */
  font-weight: 600;
  transition: font-size 0.5s ease;
  color: #fafafa;
  z-index: 2;
}

.beneficio-card:hover h4,
.beneficio-card.active h4 {
    /* font-size: 36px; /* Enlarges title */
    transition: font-size 0.5s ease;
    color: #fafafa;
    z-index: 2;
}

.beneficio-card:hover p,
.beneficio-card.active p {
    max-height: 100%; /* Expands paragraph */
    transition: max-height 0.5s ease;
    overflow: hidden;
}


@media screen and (max-width: 900px) {
    /* Hover effect */
    .beneficio-card:hover img,
    .beneficio-card.active img {
        height: 50px; /* Shrinks image */
        transition: height 0.5s ease;
    }

    .beneficio-card:hover h4,
    .beneficio-card.active h4 {
        font-size: 18px; /* Enlarges title */
        transition: font-size 0.5s ease;
    }

    .beneficio-card:hover p,
    .beneficio-card.active p {
        max-height: 100%; /* Expands paragraph */
        transition: max-height 0.5s ease;
        overflow: auto;

    }
}

.beneficio-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transition: none;
    overflow: auto;
}


@media screen and (max-width: 900px) {
    .wrap .carousel {
        grid-auto-columns: calc((100% / 2) - 9px);
    }

    .beneficio-card {
        height: 300px;
        justify-content: flex-start;
    }
}

@media screen and (max-width: 768px) {

    .beneficio-card:hover img {
        height: 150px;
        transition: none;
    }

    .beneficio-card:hover h4 {
        transition: none;
    }

    .beneficio-card:hover p {
        max-height: 0;
        transition: none;
    }
}

/* -------------------------
   6. PREGUNTAS FRECUENTES
-------------------------- */
.faqs-section {
  background-color: #fafafa;
  padding: 3rem 0;
}

.faqs-section h2 {
  color: #000034;
}

.faq-block {
  margin-bottom: 5rem;
}

.faq-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row;
  padding-bottom: 20px;
  cursor: pointer;
}

.faq-heading .arrow-icon {
  	font-size: 32px;
    color: #000034;
}

.faq-heading .pregunta {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #000034;
}

@keyframes open-close {
  0%   {max-height: 0;}
  100% {max-height: 400px;}
}

.faq-block.active .respuesta {
  padding: 20px 0 20px 2%;
  max-height: 400px;  
  animation-name: open-close;
  animation-duration: 0.5s
}

.faq-block .respuesta {
  display: flex;
  gap: 10px;
  flex-direction: column;
  padding: 0 0 0 2%;
  max-height: 0;
  overflow: hidden;
  /* transition: max-height 2s ease; */
  transition: all 0.5s ease;
  margin: 0;
  font-size: 22px;
}

.faq-block .first-divider {
  border: 1px solid #fafafa;
  transition: all 0.6s ease;
} 

.faq-block.active .first-divider {
  border: 1px solid #000034;
  transition: all 0.6s ease;
}

.faq-block .last-divider {
  border: 1px solid #9d9d9d;
}

/* -------------------------
   7. OTROS SERVICIOS
-------------------------- */
.otros-section {
  background-color: #000034;
  padding: 3rem 0;
}

.otros-section h2 {
  color: #fafafa;
}

.otros-cards {
  display: flex;
  /* grid-template-columns: 1fr; */
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* @media (min-width: 768px) {
} */

.otro-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 50px 0;
}

.otro-card {
    position: relative;
    height: 550px;
    min-width: 25%;
    border-radius: 50px;
    overflow: hidden;
    z-index: 0;
    color: #000;
    transition: flex 0.3s;
    flex: 1;
}
.otro-card:hover {
  flex: 1.5;
}

@media screen and (max-width: 768px) {
  .otro-card {
      max-width: 100%;
  }
}

@media screen and (max-width: 1200px) {
  .otro-card {
      min-width: 40%;
  }
}


.otro-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
    pointer-events: none;
}

.otro-card * {
    position: relative;
    z-index: 2;
}

/* Activar animación */
.otro-card:hover::before {
    opacity: 1;
}

.otro-card-content-wrapper {
    height: inherit;
    width: inherit;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
    padding: 40px 40px 0 40px;
    gap: 80px;
    overflow: hidden;
}

.otro-card-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.otro-card-content-wrapper h3{
    color: #fafafa;
    font-size: 36px;
    line-height: 1.2em;
    font-weight: 600;
    max-width: 450px;
}

.otro-links  {
    color: #fafafa;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 50px;
    overflow: hidden;
}

.otro-links a{
    color: #FF7500;
}

.otro-links a:hover{
    color: #FF7500;
    text-decoration: underline;
}

.otro-card-content-wrapper img {
    width: 400px;
    height: 400px;
    transform: translateX(0);
    transition: transform .5s ease;
}

.otro-card:hover img {
    transform: translateY(-50px);
}
