/* =====================================================
   TIPS VIBALCA
===================================================== */


/* =====================================================
   HERO
===================================================== */

.tips-hero {

  position: relative;

  width: 100%;
  height: 570px;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
}


.tips-hero-image {

  position: absolute;

  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center;

  transition: transform 1.2s ease;
}


.tips-hero:hover .tips-hero-image {

  transform: scale(1.025);

}


.tips-hero-overlay {

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(8, 32, 55, 0.68),
      rgba(8, 32, 55, 0.28),
      rgba(8, 32, 55, 0.42)
    );

}


.tips-hero-content {

  position: relative;

  z-index: 2;

  width: 90%;
  max-width: 850px;

  text-align: center;

  color: white;
}


.tips-hero-content span {

  display: block;

  margin-bottom: 18px;

  color: #71d3f5;

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 4px;
}


.tips-hero-content h1 {

  margin: 0 auto 22px;

  max-width: 800px;

  font-size: clamp(42px, 5vw, 68px);

  line-height: 1.04;

  letter-spacing: -2px;

  font-weight: 700;
}


.tips-hero-content p {

  max-width: 620px;

  margin: 0 auto;

  color: rgba(255,255,255,0.88);

  font-size: 17px;

  line-height: 1.7;
}



/* =====================================================
   INTRODUCCIÓN
===================================================== */

.tips-intro {

  position: relative;

  padding: 105px 7% 80px;

  background:

    radial-gradient(
      circle at 10% 30%,
      rgba(8,169,232,0.08),
      transparent 28%
    ),

    #f8fafc;

  overflow: hidden;
}


.tips-intro-inner {

  width: 100%;
  max-width: 850px;

  margin: auto;

  text-align: center;
}


.tips-intro-label {

  margin-bottom: 15px;

  color: #08a9e8;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 3px;
}


.tips-intro h2 {

  margin: 0 0 20px;

  color: #0e2a47;

  font-size: clamp(34px, 4vw, 50px);

  line-height: 1.1;

  letter-spacing: -1px;
}


.tips-intro p {

  max-width: 650px;

  margin: auto;

  color: #6d7f90;

  font-size: 17px;

  line-height: 1.75;
}



/* =====================================================
   SECCIÓN GENERAL
===================================================== */

.tips-section {

  position: relative;

  padding: 40px 7% 120px;

  background:

    linear-gradient(
      135deg,
      #f8fafc 0%,
      #eef6fa 48%,
      #f9fbfc 100%
    );

  overflow: hidden;
}


.tips-section::before {

  content: "";

  position: absolute;

  width: 420px;
  height: 420px;

  right: -190px;
  top: 120px;

  border-radius: 50%;

  background: rgba(8,169,232,0.045);

  pointer-events: none;
}



/* =====================================================
   TIP DESTACADO
===================================================== */

.tip-feature {

  position: relative;

  z-index: 2;

  width: 100%;
  max-width: 1150px;

  min-height: 500px;

  margin: 0 auto;

  display: grid;

  grid-template-columns: 1.05fr 0.95fr;

  overflow: hidden;

  border-radius: 30px;

  background: #ffffff;

  box-shadow:
    0 25px 70px rgba(14,42,71,0.10);
}



/* =====================================================
   IMAGEN DEL TIP
===================================================== */

.tip-feature-image {

  position: relative;

  min-height: 500px;

  overflow: hidden;
}


.tip-feature-image img {

  width: 100%;
  height: 100%;

  object-fit: cover;

  object-position: center;

  display: block;

  transition:
    transform 0.8s ease;
}


.tip-feature:hover .tip-feature-image img {

  transform: scale(1.035);

}


.tip-feature-number {

  position: absolute;

  top: 30px;
  left: 30px;

  display: flex;

  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;

  border-radius: 50%;

  background: rgba(255,255,255,0.92);

  color: #0e2a47;

  font-size: 13px;

  font-weight: 700;

  box-shadow:
    0 8px 25px rgba(0,0,0,0.08);
}



/* =====================================================
   CONTENIDO DEL TIP
===================================================== */

.tip-feature-content {

  position: relative;

  padding: 65px 60px;

  display: flex;

  flex-direction: column;

  justify-content: center;

  background:

    radial-gradient(
      circle at 100% 0%,
      rgba(8,169,232,0.08),
      transparent 35%
    ),

    #ffffff;
}


.tip-feature-category {

  margin-bottom: 18px;

  color: #08a9e8;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 3px;
}


.tip-feature-content h2 {

  margin: 0 0 22px;

  color: #0e2a47;

  font-size: clamp(34px, 3.3vw, 48px);

  line-height: 1.08;

  letter-spacing: -1.5px;
}


.tip-feature-content p {

  max-width: 470px;

  margin: 0 0 32px;

  color: #6d7f90;

  font-size: 16px;

  line-height: 1.75;
}



/* =====================================================
   BOTÓN VER CONSEJO
===================================================== */

.tip-open-button {

  align-self: flex-start;

  display: inline-flex;

  align-items: center;

  gap: 15px;

  padding: 14px 0;

  border: none;

  background: transparent;

  color: #0e2a47;

  font-family: inherit;

  font-size: 15px;

  font-weight: 700;

  cursor: pointer;
}


.tip-open-button i {

  display: flex;

  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  border-radius: 50%;

  background: #0e2a47;

  color: #ffffff;

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}


.tip-open-button:hover i {

  transform: translateY(4px);

  background: #08a9e8;
}


.tip-open-button.opened i {

  transform: rotate(180deg);

}



/* =====================================================
   DETALLE DEL TIP
===================================================== */

.tip-detail {

  position: relative;

  z-index: 2;

  width: 100%;
  max-width: 1150px;

  margin: 0 auto;

  padding: 0 55px;

  max-height: 0;

  overflow: hidden;

  opacity: 0;

  border-radius: 0 0 30px 30px;

  background: #ffffff;

  transition:
    max-height 0.7s ease,
    opacity 0.4s ease,
    padding 0.5s ease;
}


.tip-detail.open {

  max-height: 1500px;

  padding: 60px 55px 65px;

  opacity: 1;

  box-shadow:
    0 25px 70px rgba(14,42,71,0.08);
}



/* =====================================================
   CABECERA DEL DETALLE
===================================================== */

.tip-detail-header {

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 30px;

  margin-bottom: 12px;
}


.tip-detail-header span {

  display: block;

  margin-bottom: 10px;

  color: #08a9e8;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 2.5px;
}


.tip-detail-header h2 {

  margin: 0;

  color: #0e2a47;

  font-size: 34px;

  line-height: 1.15;
}


.tip-close-button {

  display: flex;

  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  width: 42px;
  height: 42px;

  border: 1px solid #dce5eb;

  border-radius: 50%;

  background: #ffffff;

  color: #0e2a47;

  cursor: pointer;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}


.tip-close-button:hover {

  border-color: #0e2a47;

  background: #0e2a47;

  color: #ffffff;
}


.tip-detail-intro {

  margin: 0 0 30px;

  color: #718294;

  font-size: 15px;

  line-height: 1.6;
}



/* =====================================================
   TABS
===================================================== */

.lejia-tabs {

  display: grid;

  grid-template-columns:
        repeat(4, 1fr);

  gap: 10px;

  margin-bottom: 35px;
}


.lejia-tab {

  position: relative;

  min-height: 125px;

  padding: 20px;

  border: 1px solid #dfe8ee;

  border-radius: 16px;

  background: #f9fbfc;

  text-align: left;

  font-family: inherit;

  cursor: pointer;

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}


.lejia-tab:hover {

  transform: translateY(-3px);

  border-color: #08a9e8;

  background: #ffffff;

  box-shadow:
    0 10px 25px rgba(14,42,71,0.06);
}


.lejia-tab span {

  display: block;

  margin-bottom: 14px;

  color: #08a9e8;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 1px;
}


.lejia-tab strong {

  display: block;

  margin-bottom: 7px;

  color: #0e2a47;

  font-size: 14px;

  line-height: 1.35;
}


.lejia-tab small {

  display: block;

  color: #7c8b99;

  font-size: 11px;

  line-height: 1.4;
}


.lejia-tab.active {

  border-color: #0e2a47;

  background: #0e2a47;

  box-shadow:
    0 12px 30px rgba(14,42,71,0.14);

  transform: translateY(-2px);
}


.lejia-tab.active span {

  color: #69cef1;
}


.lejia-tab.active strong {

  color: #ffffff;
}


.lejia-tab.active small {

  color: rgba(255,255,255,0.65);
}



/* =====================================================
   CONTENIDO DINÁMICO
===================================================== */

.lejia-content-wrapper {

  position: relative;

  min-height: 300px;

  border-top: 1px solid #e8eef2;

  padding-top: 38px;
}


.lejia-content {

  display: none;

  grid-template-columns: 80px 1fr;

  gap: 25px;

  animation:
    lejiaContentIn 0.4s ease;
}


.lejia-content.active {

  display: grid;
}


@keyframes lejiaContentIn {

  from {

    opacity: 0;

    transform: translateY(12px);

  }

  to {

    opacity: 1;

    transform: translateY(0);

  }

}


.lejia-content-number {

  display: flex;

  align-items: flex-start;
  justify-content: center;

  padding-top: 5px;

  color: #08a9e8;

  font-size: 12px;

  font-weight: 700;

  letter-spacing: 1px;
}


.lejia-content-main > span {

  display: block;

  margin-bottom: 10px;

  color: #7b8b99;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 2px;
}


.lejia-content-main h3 {

  margin: 0 0 12px;

  color: #0e2a47;

  font-size: 32px;

  line-height: 1.15;
}


.lejia-content-main > p {

  max-width: 750px;

  margin: 0 0 28px;

  color: #6d7f90;

  font-size: 15px;

  line-height: 1.7;
}



/* =====================================================
   PREPARACIÓN
===================================================== */

.lejia-preparation {

  max-width: 820px;

  margin-bottom: 30px;

  padding: 24px 27px;

  border-left: 4px solid #08a9e8;

  border-radius: 0 15px 15px 0;

  background:

    linear-gradient(
      135deg,
      #edf8fc,
      #f7fbfd
    );
}


.lejia-preparation span {

  display: block;

  margin-bottom: 8px;

  color: #08a9e8;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 2px;
}


.lejia-preparation strong {

  display: block;

  color: #0e2a47;

  font-size: 17px;

  font-weight: 600;

  line-height: 1.55;
}



/* =====================================================
   DATOS
===================================================== */

.lejia-data {

  display: flex;

  flex-wrap: wrap;

  gap: 45px;

  padding-top: 25px;

  border-top: 1px solid #e8eef2;
}


.lejia-data div {

  display: flex;

  flex-direction: column;

  gap: 7px;
}


.lejia-data span {

  color: #8b99a6;

  font-size: 9px;

  font-weight: 700;

  letter-spacing: 1.5px;
}


.lejia-data strong {

  color: #0e2a47;

  font-size: 15px;

  font-weight: 600;
}



/* =====================================================
   MÁS TIPS
===================================================== */

.tips-coming-soon {

  position: relative;

  z-index: 2;

  width: 100%;
  max-width: 1150px;

  margin: 55px auto 0;

  padding: 32px 38px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 30px;

  border-top: 1px solid rgba(14,42,71,0.08);
}


.tips-coming-soon span {

  display: block;

  margin-bottom: 8px;

  color: #08a9e8;

  font-size: 10px;

  font-weight: 700;

  letter-spacing: 2px;
}


.tips-coming-soon h3 {

  margin: 0;

  color: #0e2a47;

  font-size: 20px;

  font-weight: 600;
}


.tips-coming-soon > i {

  display: flex;

  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border-radius: 50%;

  background: #0e2a47;

  color: #ffffff;
}



/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 950px) {

  .tip-feature {

    grid-template-columns: 1fr;

  }


  .tip-feature-image {

    min-height: 400px;

  }


  .tip-feature-content {

    padding: 50px;

  }


  .lejia-tabs {

    grid-template-columns:
            repeat(2, 1fr);

  }

}


@media (max-width: 700px) {

  .tips-hero {

    height: 500px;

  }


  .tips-hero-content h1 {

    letter-spacing: -1px;

  }


  .tips-intro {

    padding: 80px 7% 60px;

  }


  .tips-section {

    padding: 20px 5% 80px;

  }


  .tip-feature-image {

    min-height: 330px;

  }


  .tip-feature-content {

    padding: 40px 30px;

  }


  .tip-detail.open {

    padding: 45px 30px 50px;

  }


  .lejia-content {

    grid-template-columns: 1fr;

    gap: 10px;

  }


  .lejia-content-number {

    justify-content: flex-start;

  }


  .lejia-data {

    gap: 25px;

  }

}


@media (max-width: 520px) {

  .tips-hero {

    height: 470px;

  }


  .tips-hero-content {

    width: 88%;

  }


  .tips-hero-content span {

    letter-spacing: 2.5px;

  }


  .tips-hero-content p {

    font-size: 15px;

  }


  .lejia-tabs {

    grid-template-columns: 1fr;

  }


  .lejia-tab {

    min-height: auto;

  }


  .tip-detail-header {

    align-items: flex-start;

  }


  .tip-detail-header h2 {

    font-size: 28px;

  }


  .lejia-content-main h3 {

    font-size: 27px;

  }


  .lejia-data {

    flex-direction: column;

    gap: 20px;

  }


  .tips-coming-soon {

    padding: 28px 5px;

  }


  .tips-coming-soon h3 {

    font-size: 17px;

  }

}
