/* Animaciones para página Acerca de - v1.0 */

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Clases de animación */
.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 1s ease-out;
}

.fade-in-right {
    animation: fadeInRight 1s ease-out;
}

.slide-in-bottom {
    animation: slideInBottom 0.8s ease-out;
}

/* Delays */
.delay-1 { animation-delay: 0.2s; opacity: 0; animation-fill-mode: forwards; }
.delay-2 { animation-delay: 0.4s; opacity: 0; animation-fill-mode: forwards; }
.delay-3 { animation-delay: 0.6s; opacity: 0; animation-fill-mode: forwards; }

/* Founder Card */
.founder-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2.5em;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.founder-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.founder-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5em auto;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    animation: pulse 3s infinite;
}

.founder-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 1.5em auto;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.founder-photo:hover {
    transform: scale(1.05);
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founder-card h3 {
    font-size: 1.8em;
    color: #1e293b;
    margin-bottom: 0.3em;
}

.founder-title {
    color: #60a5fa;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 1.5em;
}

.founder-stats {
    display: flex;
    justify-content: space-around;
    padding: 1.5em 0;
    border-top: 2px solid #e5e7eb;
    border-bottom: 2px solid #e5e7eb;
    margin: 1.5em 0;
}

.founder-stats .stat {
    text-align: center;
}

.founder-stats .number {
    display: block;
    font-size: 2.5em;
    font-weight: 700;
    color: #60a5fa;
    line-height: 1;
}

.founder-stats .label {
    display: block;
    font-size: 0.85em;
    color: #64748b;
    margin-top: 0.5em;
}

/* Sustainability Cards */
.sustainability-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 2.5em 2em;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 2em;
}

.sustainability-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.sustainability-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5em auto;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    color: #059669;
    animation: float 3s ease-in-out infinite;
}

.sustainability-card h3 {
    font-size: 3em;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.2em;
}

.sustainability-card .card-label {
    font-size: 1.3em;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1em;
}

/* Value Cards */
.value-card {
    background: #ffffff;
    padding: 2.5em 2em;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2em;
    border-top: 4px solid #60a5fa;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-top-color: #3b82f6;
}

.value-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5em auto;
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #ffffff;
}

.value-card h3 {
    font-size: 1.5em;
    color: #1e293b;
    margin-bottom: 0.8em;
}

.value-card p {
    color: #64748b;
    line-height: 1.7em;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2em 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #60a5fa, #3b82f6);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3em;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 120px;
    font-size: 1.8em;
    font-weight: 700;
    color: #60a5fa;
    text-align: center;
    background: #1e293b;
    padding: 0.5em;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(96, 165, 250, 0.3);
}

.timeline-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2em;
    border-radius: 12px;
    margin: 0 2em;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.timeline-content h3 {
    color: #ffffff;
    font-size: 1.5em;
    margin-bottom: 0.5em;
}

.timeline-content p {
    color: #cbd5e1;
    line-height: 1.6em;
}

/* Responsive */
@media screen and (max-width: 980px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 80px;
    }
    
    .timeline-year {
        position: absolute;
        left: 0;
        top: 0;
    }
    
    .timeline-content {
        margin: 0;
        margin-top: 1em;
    }
    
    .founder-stats {
        flex-direction: column;
        gap: 1.5em;
    }
}

@media screen and (max-width: 736px) {
    .sustainability-card,
    .value-card {
        margin-bottom: 1.5em;
    }
    
    .founder-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5em;
    }
    
    .founder-photo {
        width: 50px !important;
        height: 50px !important;
        margin: 0 auto 1em auto !important;
    }
    
    .sustainability-card .card-icon {
        width: 60px;
        height: 60px;
        font-size: 2em;
    }
    
    /* Fix para título en móviles */
    h1 {
        font-size: 1.8em !important;
        letter-spacing: 0.03em !important;
        word-spacing: 0.1em !important;
        line-height: 1.3em !important;
    }
}
