/* Enhanced Footer styles */
.footer {
    position: relative;
    background: var(--cool-gradient);
    color: white;
    padding: 5rem 2rem 1.5rem;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    transform: rotate(15deg);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.footer-content {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

.footer-section {
    flex: 1 1 300px;
    margin-bottom: 2rem;
    padding: 0 1.5rem;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.footer-section.about p {
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.social-icons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.social-icons a i {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-icons a:hover::before {
    transform: scale(1);
}

.social-icons a:hover {
    transform: translateY(-5px);
}

.social-icons a:hover i {
    transform: rotate(360deg);
    color: var(--text-color);
}

.footer-section.links ul {
    list-style: none;
}

.footer-section.links li {
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.footer-section.links li:hover {
    transform: translateX(5px);
}

.footer-section.links a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-section.links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -3px;
    left: 0;
    background-color: var(--secondary-light);
    transition: width 0.3s ease;
}

.footer-section.links a:hover {
    color: var(--secondary-light);
}

.footer-section.links a:hover::after {
    width: 100%;
}

.footer-section.contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.2rem;
}

.footer-section.contact i {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    border-radius: 50%;
    font-size: 0.8rem;
}

.footer-section.contact p a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.footer-section.contact p a:hover {
    color: var(--secondary-light);
}

/* Footer bottom container - Agrupa los créditos y copyright */
.footer-bottom-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* KFG Products credit styling */
.footer-credits {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-credits p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    padding-top: 5px;
    border-top: none;
    margin-top: 0;
}

/* Custom shape divider at top of footer */
.footer-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.footer-divider .shape-fill {
    fill: var(--bg-color);
}

body.dark-mode .footer-divider .shape-fill {
    fill: var(--dark-bg);
}

/* Responsive footer */
@media screen and (max-width: 768px) {
    .footer-section {
        flex: 1 1 100%;
    }
}

/* Logo KFG con tamaño reducido */
.kfg-logo {
    padding: 15px 25px;
    margin: 15px 0;
    transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    background: linear-gradient(145deg, rgba(10, 10, 10, 0.98), rgba(25, 25, 35, 0.98));
    border-radius: 20px;
    display: inline-block;
    position: relative;
    overflow: visible;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7),
                inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

/* Efecto de borde brillante con esquinas bien definidas */
.kfg-logo::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #5e17eb, #3498db, #5e17eb);
    z-index: -1;
    filter: blur(10px);
    opacity: 0.6;
    border-radius: 23px;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Asegurar que el efecto de brillo respete las esquinas */
.kfg-logo::before {
    border-radius: 20px;
    overflow: hidden;
}

/* Ajustar la imagen para que se ajuste bien al contenedor */
.kfg-logo img {
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 12px rgba(94, 23, 235, 0.9)) 
           drop-shadow(0 0 25px rgba(94, 23, 235, 0.5))
           brightness(1.15) contrast(1.1);
    transition: filter 2s ease-out, transform 0.7s ease-out;
}

/* Reduciedno brillo y efectos de hover para mejor visibilidad */
.kfg-logo:hover {
    transform: translateY(-8px) scale(1.02); /* Menos elevación y escala */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7),
                inset 0 2px 2px rgba(255, 255, 255, 0.12);
}

.kfg-logo:hover::after {
    filter: blur(12px);
    opacity: 0.6; /* Reducido de 0.9 a 0.6 */
}

.kfg-logo:hover img {
    filter: drop-shadow(0 0 8px rgba(94, 23, 235, 0.5)) 
           drop-shadow(0 0 15px rgba(94, 23, 235, 0.2))
           brightness(1.08) contrast(1.05);
    transition: filter 0.6s ease, transform 0.5s ease;
}

/* Efecto de destello con animación */
@keyframes shine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.kfg-logo::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.15), 
        transparent);
    background-size: 200% 100%;
    animation: shine 4s linear infinite;
    z-index: 1;
    transition: opacity 0.5s ease;
}

/* Ajustes para dispositivos móviles */
@media screen and (max-width: 768px) {
    .kfg-logo img {
        max-width: 220px;
    }
    
    .kfg-logo {
        padding: 15px 20px;
    }
}

/* Texto promocional de KFG */
.kfg-promotion {
    margin-top: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.kfg-contact-link {
    color: #9671EB;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.kfg-contact-link:hover {
    color: #B996FF;
    text-decoration: none;
}

.kfg-contact-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #B996FF;
    transition: width 0.3s ease;
}

.kfg-contact-link:hover::after {
    width: 100%;
}

/* Al quitar el hover, hacer la transición más lenta */
@media (hover: hover) {
    .kfg-logo:not(:hover) {
        transition-duration: 0.8s;
    }
    
    .kfg-logo:not(:hover)::after {
        transition-duration: 1s;
    }
    
    .kfg-logo:not(:hover) img {
        transition-duration: 0.8s, 1.5s;
    }
}

.social-icons a[href*="instagram"]:hover {
    transform: translateY(-3px);
}
