/* animations.css */
/* Last updated: 2025-02-03 23:21:51 by Yurena16 */

:root {
    /* Variables para el borde animado */
    --animated-border-color: var(--secondary-color);
    --animated-border-width: 3px;
    --animated-border-duration-vertical: 0.6s;
    --animated-border-duration-horizontal: 0.4s;
    --animated-border-delay: 0.1s;
    --animated-border-timing: cubic-bezier(0.4, 0, 0.2, 1);
    /* Variables para controlar la secuencia */
    --sequence-delay-1: 0s;
    --sequence-delay-2: 0.4s;
    --sequence-delay-3: 0.8s;
}

.border-animated-card {
    background: var(--text-light);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Línea izquierda */
.border-animated-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: var(--animated-border-width);
    height: 0;
    background: var(--animated-border-color);
    transition: height var(--animated-border-duration-vertical) var(--animated-border-timing);
}

/* Línea derecha */
.border-animated-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: var(--animated-border-width);
    height: 0;
    background: var(--animated-border-color);
    transition: height var(--animated-border-duration-vertical) var(--animated-border-timing);
}

/* Contenedor para las líneas superiores */
.border-animated-card .animated-border-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--animated-border-width);
    overflow: hidden;
}

/* Línea superior izquierda */
.border-animated-card .animated-border-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: var(--animated-border-width);
    background: var(--animated-border-color);
    transform: translateX(-100%);
    transition: transform var(--animated-border-duration-horizontal) var(--animated-border-timing);
    transition-delay: var(--animated-border-delay);
}

/* Línea superior derecha */
.border-animated-card .animated-border-top::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: var(--animated-border-width);
    background: var(--animated-border-color);
    transform: translateX(100%);
    transition: transform var(--animated-border-duration-horizontal) var(--animated-border-timing);
    transition-delay: var(--animated-border-delay);
}

/* Animaciones al hover */
.border-animated-card:hover::before,
.border-animated-card:hover::after {
    height: 100%;
}

.border-animated-card:hover .animated-border-top::before,
.border-animated-card:hover .animated-border-top::after {
    transform: translateX(0);
}

/* Animación para el título principal */
.cosmic-title {
    opacity: 0;
    animation: cosmicReveal 1.5s ease forwards;
}

/* Animación para el texto descriptivo */
.cosmic-text {
    opacity: 0;
    transform: translateY(20px);
    animation: cosmicSlideUp 1.5s ease forwards;
    animation-delay: 0.5s;
}

/* Animaciones */
@keyframes cosmicReveal {
    0% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(20px);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
        filter: blur(10px);
        text-shadow: 0 0 20px var(--secondary-color);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes cosmicSlideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Nueva animación del borde para valor-card */
.valor-card {
    position: relative;
    overflow: hidden;
}

/* Línea inferior central */
.valor-card .animated-border-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: var(--animated-border-width);
    background: var(--animated-border-color);
    transform: translateX(-50%);
    transition: width var(--animated-border-duration-horizontal) var(--animated-border-timing);
    transition-delay: var(--sequence-delay-1);
    z-index: 1;
}

/* Líneas verticales */
.valor-card::before,
.valor-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: var(--animated-border-width);
    height: 0;
    background: var(--animated-border-color);
    transition: height var(--animated-border-duration-vertical) var(--animated-border-timing);
    z-index: 1;
}

.valor-card::before {
    left: 0;
    transition-delay: var(--sequence-delay-2);
}

.valor-card::after {
    right: 0;
    transition-delay: var(--sequence-delay-2);
}

/* Línea superior */
.valor-card .animated-border-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--animated-border-width);
    overflow: hidden;
    z-index: 1;
}

.valor-card .animated-border-top::before,
.valor-card .animated-border-top::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50%;
    height: var(--animated-border-width);
    background: var(--animated-border-color);
    transition: transform var(--animated-border-duration-horizontal) var(--animated-border-timing);
}

.valor-card .animated-border-top::before {
    left: 0;
    transform: translateX(-100%);
    transition-delay: var(--sequence-delay-3);
}

.valor-card .animated-border-top::after {
    right: 0;
    transform: translateX(100%);
    transition-delay: var(--sequence-delay-3);
}

/* Animaciones al hover - Aparición */
.valor-card:hover .animated-border-bottom {
    width: 100%;
    transition-delay: var(--sequence-delay-1);
}

.valor-card:hover::before,
.valor-card:hover::after {
    height: 100%;
    transition-delay: var(--sequence-delay-2);
}

.valor-card:hover .animated-border-top::before,
.valor-card:hover .animated-border-top::after {
    transform: translateX(0);
    transition-delay: var(--sequence-delay-3);
}

/* Animaciones de desaparición - Orden inverso */
.valor-card .animated-border-top::before,
.valor-card .animated-border-top::after {
    transition-delay: var(--sequence-delay-1);
}

.valor-card::before,
.valor-card::after {
    transition-delay: var(--sequence-delay-2);
}

.valor-card .animated-border-bottom {
    transition-delay: var(--sequence-delay-3);
}

/* Mantener el z-index del contenido por encima de las líneas */
.valor-card .valor-header,
.valor-card .valor-content,
.valor-card .equipo-content,
.valor-card .equipo-imagen {
    position: relative;
    z-index: 2;
}
/* Hero Section */
.empresa-hero {
    margin-top: -50px;
    position: relative;
    height: 55vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding-top: 0px; /* Ajusta el padding para mover el contenido más arriba */

}

.hero-content {
    z-index: 3;
    color: var(--text-light);
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7));
    z-index: 2;
}
