.logo-inn,
.logo-top {
    left: 0;
    position: absolute;
}

body {
    position: relative;
    min-height: 100vh;
}

body::before {
    content: none;
}

@keyframes gradient-rotate {
    0%, 100% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient {
    background: linear-gradient(270deg, #6366f1, #8b5cf6, #06b6d4);
    background-size: 600% 600%;
    animation: 10s infinite gradient-rotate;
}

.logo-wrapper {
    position: relative;
    width: 170px;
    height: 180px;
    margin: 0 auto 20px;
}

.logo-inn,
.logo-inn video,
.logo-top {
    height: 100%;
    width: 100%;
}

.logo-inn {
    top: 0;
}

.logo-inn video {
    object-fit: cover;
    mask-image: url("logoINN.png");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
}

.logo-top {
    top: 0;
    background-image: url("logo.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.white-svg {
    filter: brightness(0) invert(1);
}

@keyframes gradient-anim {
    0% {
        transform: translateX(0) rotate(0);
    }
    50% {
        transform: translateX(-50%) rotate(180deg);
    }
    100% {
        transform: translateX(0) rotate(360deg);
    }
}

.logo {
    max-width: 150px;
    margin: 0 auto;
}

.btn-glow {
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    color: white;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.8);
    transform: translateY(-2px);
}

.btn-glow-alt {
    background: linear-gradient(to right, #facc15, #f97316);
    color: white;
    padding: 0.5rem 1.25rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.4);
}

.btn-glow-alt:hover {
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.8);
    transform: translateY(-2px);
}

.card, .card-glow, .card-glow-alt {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card-glow:hover {
    border-color: #6366f1;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
    transform: translateY(-5px);
}

.card-glow-alt:hover {
    border-color: #f97316;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
    transform: translateY(-5px);
}

.card-glow img,
.card-glow-alt img {
    width: 48px;
    margin: 0 auto 0.75rem;
}

.card-glow h3,
.card-glow-alt h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.card-glow p,
.card-glow-alt p {
    font-size: 0.875rem;
    color: #4b5563;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out both;
}

.animate-fade-in.delay-200 {
    animation-delay: 0.2s;
}

.max-h-0 { max-height: 0px; }
.max-h-full { max-height: 9999px; }
.transition-max { transition: max-height 0.6s ease, opacity 0.6s ease; }

.nav-link {
    position: relative;
    font-size: 1rem; /* más grande */
    font-weight: 600; /* más ancho */
    padding-bottom: 4px;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    display: block;
    content: "";
    position: absolute;
    height: 3px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, #6366f1, #8b5cf6);
    transition: width 0.3s ease-in-out;
}




.flip-card {
    perspective: 1200px;
    transition: transform 0.4s ease;
}

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

.flip-card:hover .flip-inner {
    transform: rotateY(180deg) rotateX(3deg);
}

.flip-front,
.flip-back {
    backface-visibility: hidden;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transition: box-shadow 0.4s ease;
}

.flip-card:hover .flip-front,
.flip-card:hover .flip-back {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

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

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient-text {
    background: linear-gradient(270deg, #6366f1, #8b5cf6, #06b6d4);
    background-size: 600% 600%;
    animation: gradientShift 8s ease infinite;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.bg-clip-text {
    background-clip: text;
    -webkit-background-clip: text;
}
.text-transparent {
    color: transparent;
}

@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .animate-spin-slow {
    animation: spin-slow 3s linear infinite;
  }
  
  #preloader {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
  }
  
  #preloader.fade-out {
    opacity: 0;
    pointer-events: none;
  }
  
  #logo-typewriter {
    display: inline-block;
    min-width: 13ch; /* ensures consistent width */
    text-align: center;
  }
 

@keyframes slide-down-fade {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}
/* Transiciones de aparición con scale y fade */
#mobile-menu.show {
    opacity: 1;
    transform: scale(1);
}

#mobile-menu.hide {
    opacity: 0;
    transform: scale(0.95);
}
