.magnetic .elementor-button{
  display: inline-block;
  transition: transform .2s ease;
}

.magnetic .elementor-button{
  transition: transform .25s ease, box-shadow .25s ease;
}

.magnetic:hover .elementor-button{
  box-shadow:0 10px 30px rgba(0,0,0,.15);
}

@keyframes fadeInLeftSoft {

  0% {
    opacity: 0;
    transform: translateX(-30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }

}

.fade-left-soft {
animation: fadeInLeftSoft 1.5s cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes fadeInRightSoft {

  0% {
    opacity: 0;
    transform: translateX(30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }

}

.fade-right-soft {
  animation: fadeInRightSoft 1.5s cubic-bezier(.22,.61,.36,1) forwards;
}
.opacity-0{
	opacity:0
}
@keyframes AvatarfadeInLeft {

  0% {
    opacity: 0;
    transform: translateX(-60px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }

}

.avatar-fade-left {
animation: AvatarfadeInLeft .8s cubic-bezier(.22,.61,.36,1) forwards;
}

.avatar-delay-1 { animation-delay: .8s }
.avatar-delay-2 { animation-delay: 1.2s }
.avatar-delay-3 { animation-delay: 1.6s }

.sticky-header{
		position:fixed;
		width:100%;
		min-height: 100px;
		align-items: center;
    transition: all 0.4s ease;
}

@media (min-width: 1025px) {
    .sticky-header {
        min-height: 180px;
    }
}

.sticky-header.header-scrolled
 {
		background-color: #00000061;
		min-height: 100px !important;
 backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}



.card-home .card-content {
    position: relative;
}

.card-home .card-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg,rgba(0, 165, 254, 1) 16%, rgba(254, 129, 5, 1) 84%);
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
		border-radius: 20px
					
}

.card-home .card-footer {
    border-top: dashed 1px #0285E2 !important;
}
.card-home:hover .card-footer {
    border-top: dashed 1px #fff !important;
}

.card-home:hover .card-content::before {
    opacity: 1;
}
.card-home .card-content > * {
    position: relative;
    z-index: 1;
}
.card-home .svg-icon{
    color: #FF7006;
		
}
.card-home:hover .svg-icon{
    color: #ffffff !important;
		fill: #ffffff 
}

.card-home:hover .title h1{
    color: #ffffff !important;
}
.card-home:hover .excerpt {
    color: #ffffff;
}
:is(.card-home:hover) .category,
:is(.card-home:hover) .category ul span {
    color: #ffffff !important;
}

/* Solo en mobile */
@media (max-width: 768px) {

  /* Contenedor del loop grid se convierte en slider horizontal */
  .elementor-loop-container.elementor-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 16px;
		padding-top: 20px;

    /* Ocultar scrollbar visualmente */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
  }

  .elementor-loop-container.elementor-grid::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  /* Cada card ocupa el ancho de la pantalla */
  .elementor-loop-container.elementor-grid .e-loop-item {
    flex: 0 0 85% !important;
    scroll-snap-align: center;
    max-width: 85% !important;
  }
}

.course-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  aspect-ratio: 3/4;
  background: #0285E2;
  transition: border-color 0.35s ease,
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease;
}
.course-card:hover {
  transform: translateY(-6px) scale(1.025);
  border-color: #f47921;
  box-shadow: 0 16px 48px rgba(244,121,33,0.3);
}

/* Imagen de fondo */
.course-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
transform: scale(1.1);
  transition: transform 0.5s ease, filter 0.5s ease;
}
.course-card:hover .course-card__bg {
  transform: scale(1.2);
}

/* Gradiente */
.course-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #0285E2 0%, rgba(0, 90, 180, 0.2) 55%, transparent 100%);
  transition: background 0.35s ease;
}
.course-card:hover .course-card__overlay {
  background: linear-gradient(to top,
    rgba(244,121,33,0.88) 0%,
    rgba(244,121,33,0.3) 55%,
    transparent 100%);
}

/* Contenido inferior */
.course-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 25px;
}
.course-card__title p{
  font-size: 30px;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.3;
  margin-bottom: 20px !important;
}

/* Badge de horas (aparece en hover) */
.course-card__tag {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.3s ease 0.05s, transform 0.3s ease 0.05s;
}
.course-card:hover .course-card__tag { opacity: 1; transform: translateY(0); }

/* Botón */
.course-card__btn {
	display:flex;
	justify-content: end;
}
.course-card__btn a {
  display: inline-block;
  padding: 0.45rem 1.4rem;
  border: 2px solid #fff !important;
  border-radius: 50px !important;
  color: #0285E2 !important;
  font-size: 18px;
  font-weight: 600 !important;
  background: #fff !important;
  text-decoration: none;
  transform: translateY(8px);
  opacity: 0.85;
  transition: background 0.25s, color 0.25s, transform 0.2s, opacity 0.2s;
}
.course-card:hover .course-card__btn a{
  color: #FF7006 !important;
  transform: translateY(0);
  opacity: 1;
}

/* Wrapper externo */
.card-flip-wrapper {
  perspective: 1000px;
  width: 100%;
  height: 380px;
}

/* Contenedor interno que rota */
.card-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
}

/* Hover dispara la rotación */
.card-flip-wrapper:hover .card-flip-inner {
  transform: rotateY(180deg);
}

/* Frente y reverso comparten posición */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* El reverso empieza rotado */
.card-back {
  transform: rotateY(180deg);
}

/* --- CARDS LINKS CURSOS --- */
.link-course-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #e2e2e2;
  border-radius: 22px;
  padding: 28px 24px 26px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.45s ease;
}

.link-course-card:hover {
  transform: translateY(-10px) scale(1.035);
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.17);
}

/* ── SVG Crossfade ── */
.link-course-card .svg-stack {
  position: relative;
  width: 100%;
  max-width: 200px;
  aspect-ratio: 170 / 155;
  margin-bottom: 18px;
}

.link-course-card .svg-blue,
.link-course-card .svg-orange {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.5s ease;
}

.link-course-card .svg-blue   { opacity: 1; }
.link-course-card .svg-orange { opacity: 0; }

.link-course-card:hover .svg-blue   { opacity: 0; }
.link-course-card:hover .svg-orange { opacity: 1; }

/* ── Título ── */
.link-course-card .card-title *{
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: #2980d6 !important;
  margin: 0 0 18px;
  transition:
    color 0.4s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.link-course-card:hover .card-title *{
  color: #e8720a !important;
  transform: translateY(-3px);
  transition-delay: 0.06s;
}

/* ── Botón ── */
.link-course-card .card-btn a{
  display: inline-block;
  background: #2980d6;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 50px;
  padding: 11px 36px;
  font-size: 15px;
  font-weight: 700;
  transition:
    background 0.4s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease;
}

.link-course-card:hover .card-btn a{
  background: #e8720a;
  transform: translateY(-5px) scale(1.07);
  box-shadow: 0 10px 24px rgba(232, 114, 10, 0.42);
  transition-delay: 0.1s;
}

/* ── Ripple de fondo ── */
.link-course-card .ripple {
  position: absolute;
  bottom: -70px;
  left: 50%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(232, 114, 10, 0.07);
  transform: translateX(-50%) scale(0);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s ease;
}

.link-course-card:hover .ripple {
  transform: translateX(-50%) scale(2.8);
  opacity: 1;
}
