/* =============================================
   ABOUT.CSS - D4T Applications
   Ubicación: /assets/css/about.css
   Estilos para la sección Quiénes Somos
   ============================================= */

/* Reset box-sizing para la sección */
.about-section * {
    box-sizing: border-box;
}

/* Sección Principal */
.about-section {
    position: relative;
    background: #1a1a2e;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 80px 0;
    overflow: hidden;
    width: 100%;
}

/* Grid de fondo decorativo */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

/* Container principal */
.about-section .container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header de sección */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 30px;
    color: #667eea;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.section-subtitle:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 1.125rem;
    color: #a8a8b3;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid principal */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 80px;
}

/* Contenido */
.about-content {
    position: relative;
}

.about-intro h3 {
    font-size: 2rem;
    color: #ffffff;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-intro p {
    color: #a8a8b3;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Características */
.about-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 50px;
}

.feature-item {
    display: flex;
    align-items: start;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: #ffffff;
}

.feature-content h4 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.feature-content p {
    color: #a8a8b3;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Estadísticas */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 25px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #667eea;
    display: inline-block;
}

.stat-suffix {
    font-size: 2rem;
    color: #667eea;
    margin-left: 2px;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #a8a8b3;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline */
.about-timeline {
    position: relative;
}

.timeline-title {
    font-size: 1.75rem;
    color: #ffffff;
    margin-bottom: 40px;
    text-align: center;
}

.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 40px;
    opacity: 0;
    transform: translateX(20px);
}

.timeline-item.aos-animate {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #667eea;
    border: 3px solid #1a1a2e;
    border-radius: 50%;
    z-index: 2;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateX(5px);
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content h4 {
    font-size: 1.125rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.timeline-content p {
    color: #a8a8b3;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Galería flotante */
.floating-gallery {
    margin: 60px 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.gallery-overlay span {
    color: #ffffff;
    font-weight: 600;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Animación flotante para items */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.gallery-item.item-1 { animation: float 4s ease-in-out infinite; }
.gallery-item.item-2 { animation: float 4s ease-in-out 0.5s infinite; }
.gallery-item.item-3 { animation: float 4s ease-in-out 1s infinite; }
.gallery-item.item-4 { animation: float 4s ease-in-out 1.5s infinite; }

/* Valores de la empresa */
.about-values {
    margin-top: 80px;
}

.values-title {
    font-size: 2.5rem;
    color: #ffffff;
    text-align: center;
    margin-bottom: 50px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 100%;
}

.value-card {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.5s ease;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
}

.value-card:hover::before {
    opacity: 1;
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.value-icon i {
    font-size: 2rem;
    color: #ffffff;
}

.value-card h4 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.value-card p {
    color: #a8a8b3;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* Call to Action */
.about-cta {
    text-align: center;
    margin-top: 80px;
    padding: 50px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    max-width: 100%;
}

.about-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-cta h3 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.about-cta p {
    font-size: 1.125rem;
    color: #a8a8b3;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* Elementos decorativos */
.about-bg-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #667eea;
    top: -250px;
    right: -250px;
    animation: float 20s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: #764ba2;
    bottom: -200px;
    left: -200px;
    animation: float 25s ease-in-out reverse infinite;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #f093fb;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 30s ease-in-out infinite;
}

/* Formas flotantes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.shape {
    position: absolute;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation: float 15s ease-in-out infinite;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation: float 20s ease-in-out reverse infinite;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 30%;
    animation: float 18s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 1200px) {
    .about-grid {
        gap: 50px;
    }
    
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.875rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-timeline {
        order: 2;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .about-cta {
        padding: 30px 20px;
    }
    
    .about-values {
        margin-top: 60px;
    }
    
    .values-title {
        font-size: 1.875rem;
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .about-intro h3 {
        font-size: 1.375rem;
    }
    
    .about-intro p {
        font-size: 1rem;
    }
    
    .timeline-title {
        font-size: 1.5rem;
    }
    
    .feature-item {
        padding: 15px;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon i {
        font-size: 1.25rem;
    }
    
    .feature-content h4 {
        font-size: 1.125rem;
    }
    
    .feature-content p {
        font-size: 0.875rem;
    }
    
    .value-icon {
        width: 60px;
        height: 60px;
    }
    
    .value-icon i {
        font-size: 1.5rem;
    }
    
    .about-cta h3 {
        font-size: 1.5rem;
    }
    
    .about-cta p {
        font-size: 1rem;
    }
}