@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

.section-course-investment {
  position: relative;
  width: 100%;
  padding: 80px 30px;
  background: url('/img/fulltechnexus/fullstack/fondo5.png') no-repeat center center;
  background-size: cover;
  text-align: center;
}

.section-course-info {
  margin-top: 40px;
}

.info-title {
  text-align: center;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}


/* ================================
   Tablas: Cuotas e Información de Horarios
================================ */

.installment-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.installment-table td {
  padding: 9px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.installment-table tr:last-child td {
  border-bottom: none;
}

.big-number {
  font-size: 25px;
  font-weight: bold;
  color: #ffffff;
  margin-right: 4px;
}

.installment-table .plan {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
}

.installment-table .price {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.installment-table .description {
  font-size: 15px;
  color: #ffffff;
}

.schedule-table {
  width: 100%;
  max-width: 550px;
  margin: 20px auto;
  padding: 12px;
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #101631;
  box-shadow: 0 0 16px rgba(95, 168, 255, 0.12);
  overflow: hidden;
}

.schedule-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #101631;
  margin-bottom: 12px;
  text-align: center;
  text-transform: uppercase;
}

.custom-schedule {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Montserrat', sans-serif;
  color: #101631;
  font-size: 13px;
  table-layout: fixed;
}

.custom-schedule thead {
  background: linear-gradient(90deg, #5fa8ff, #ec21c0);
}

.custom-schedule thead th {
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.05em;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.custom-schedule thead th:last-child {
  border-right: none;
}

.custom-schedule tbody td {
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  border-bottom: 1px solid #eeeeee;
  white-space: normal;
  word-break: break-word;
}

.custom-schedule tbody tr:hover {
  background-color: #f0f8ff;
  transition: background 0.25s ease;
}

.custom-schedule tr:last-child td {
  border-bottom: none;
}

/* ================================
   Contenedores con Efecto Flip
================================ */
.investment-switch-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  background: transparent !important;
}

@keyframes slide-left {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-10px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes slide-right {
  0% {
    transform: rotate(180deg) translateX(0);
  }
  50% {
    transform: rotate(180deg) translateX(10px);
  }
  100% {
    transform: rotate(180deg) translateX(0);
  }
}

.side-arrow {
  font-size: 24px;
  color: #000;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  user-select: none;
  pointer-events: none;
}

#left-arrow.active {
  opacity: 1;
  animation: slide-left 1s infinite ease-in-out;
}

#right-arrow.active {
  opacity: 1;
  animation: slide-right 1s infinite ease-in-out;
}


.schedule-flip-container {
  position: relative;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  perspective: 1000px;
}

.schedule-inner {
  width: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  position: relative;
}

.schedule-front,
.schedule-back {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  backface-visibility: hidden;
}

.schedule-front {
  transform: rotateY(0deg);
}

.schedule-back {
  transform: rotateY(180deg);
}

.modality-flip-container {
  perspective: 1000px;
  max-width: 800px;
  margin: 20px auto;
  width: 100%;
}

.modality-inner {
  width: 100%;
  position: relative;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.modality-front,
.modality-back {
  position: absolute;
  width: 100%;
  backface-visibility: hidden;
  border-radius: 10px;
  transition: opacity 0.3s ease;
}

.modality-back {
  transform: rotateY(180deg);
}
.circular-cards-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.circular-card {
  width: 205px;
  height: 200px;
  border-radius: 50%;
  background: #101630;
  color: #ffffff;
  border: 5px solid #101630;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}



.circular-card h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-weight: 800;
  color: #5a9dee;
}
.circular-card:hover {
  transform: scale(1.05);
}
.circular-card ul {
  list-style: none;

  font-size: 0.9rem;
  color: #dcdcdc;
}



.circular-card p {
  font-size: 0.95rem;
}

.circular-card small {
  font-size: 0.8rem;
  color: #bbb;
}

/* MEDIA QUERY para pantallas <= 768px */
@media (max-width: 768px) {
  .circular-card {
    width: 175px;
    height: 175px;
    padding: 15px;
    font-size: small;
  }

  .circular-card h4 {
    font-size: 0.9rem;
  }

  .circular-card ul,
  .circular-card p,
  .circular-card small {
    font-size: 0.8rem;
  }
}
.modality-inner {
  width: 100%;
  height: auto;
  position: relative;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
}

.modality-flip-container.flipped
.schedule-flip-container.flipped {
  transform: rotateY(180deg);
}

/* ================================
   Sección de Inversión
================================ */
.investment-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.investment-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.highlight-blue {
  color: #5fa8ff;
}

.investment-switch {
  position: relative;
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  max-width: 280px;
  margin: 5px auto;
  background: #101631;
  border-radius: 9999px;
  height: 36px;
  box-sizing: border-box;
}

.investment-switch::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 4px);
  height: calc(100% - 4px);
  background: #ff00c7;
  border-radius: 999px;
  transition: left 0.3s;
  z-index: 1;
}

.investment-switch.active-parttime::before {
  left: 50%;
}

.switch-btn {
  position: relative;
  z-index: 2;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding: 4px 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  transition: color 0.3s;
}

.switch-btn.active {
  color: #fff;
}

.investment-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 45px;
  width: 100%;
  padding-top: 20px;
}

.investment-card {
  flex: 1 1 280px;
  max-width: 280px;
  min-height: 280px;
  perspective: 1000px;
  margin-bottom: 35px;
  position: relative;
  border-radius: 15px;
  background: transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.investment-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.investment-card.flipped .card-inner {
  transform: rotateY(180deg);
}



.card-back {
  transform: rotateY(180deg);
}

.card-front:not(.center-card),
.card-back:not(.center-card) {
  position: absolute;
  width: 100%;
  height: 115%;
  background: #101631;
  color: white;
  border-radius: 15px;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px;
}
.investment-card.center-card {
  transform: scale(1.2);
  z-index: 3;
}

.investment-card.center-card .card-inner .card-front,
.investment-card.center-card .card-inner .card-back {
  background: linear-gradient(135deg, #ec21c0, #b6098a) !important;
  color: #ffffff !important;
  border: 2px solid rgba(255, 255, 255, 0.3);
  z-index: 2;

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

.investment-card.center-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}


.card-front h3,
.card-back h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.price {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #5fa8ff;
  margin: 0;
}

.price-large {
  font-family: 'Montserrat', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.plan {
  font-size: 16px;
  color: #cccccc;
  margin: 5px 0;
}

.description {
  font-size: 14px;
  color: #ffffff;
  text-align: center;
  margin-top: 5px;
}

.cta-button {
  background: white;
  color: #d642b6;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s ease, color 0.3s ease;
}

.cta-button:hover {
  background: #ffffff;
  color: #101630;
  font-weight: 900;
}

.whatsapp-container {
  margin-top: 20px;
  text-align: center;
  display: flex;
  justify-content: center;
  width: 100%;
}

.contact-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 250px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: bold;
  color: rgb(0, 0, 0);
  background-color: #ffffff;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.contact-whatsapp img {
  width: 22px;
  margin-right: 10px;
}

.contact-whatsapp:hover {
  background-color: #26d466;
  transform: scale(1.05);
  color: rgb(255, 255, 255);
}

/* ================================
   Estilos Responsivos
================================ */
@media (max-width: 768px) {
  .schedule-table {
    padding: 10px;
  }

  .schedule-title {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .custom-schedule th,
  .custom-schedule td {
    font-size: 11.5px;
    padding: 5px 4px;
    white-space: normal;
    word-break: break-word;
  }

  .custom-schedule td:nth-child(2) {
    width: 33%;
    font-size: 12px;
    line-height: 1.4;
  }

  .investment-title {
    font-size: 24px;
  }

  .investment-switch {
    margin: 0 auto 20px;
    width: 100%;
    max-width: 350px;
  }

  .switch-btn {
    flex: 1;
    text-align: center;
  }

  .investment-cards {
    flex-direction: column;
    gap: 20px;
  }

  .investment-card {
    width: 90%;
    max-width: none;
    margin: 0 auto;
  }

  .card-front,
  .card-back {
    height: 100%;
  }
}
