/* ===================================
   SECCIÓN TECNOLOGÍAS
   =================================== */
.tecnologias-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f0f9f6 100%);
    position: relative;
    overflow: hidden;
}

/* Efectos decorativos de fondo */
.tecnologias-section::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.tecnologias-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.tecnologias-section .container {
    position: relative;
    z-index: 1;
}

/* ===================================
   ENCABEZADO DE LA SECCIÓN
   =================================== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #047857 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 700px;
    margin: 0 auto;
    margin-top: 1.5rem;
    line-height: 1.6;
}

/* ===================================
   LAYOUT DE DOS COLUMNAS
   =================================== */
.skills-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* ===================================
   COLUMNA IZQUIERDA - BARRAS DE PROGRESO
   =================================== */
.skills-bars {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.skills-bars:hover {
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.2);
}

.skills-bars h3 {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-bars h3 i {
    color: #10b981;
}

/* Item de habilidad individual */
.skill-item {
    margin-bottom: 2rem;
    animation: fadeInLeft 0.6s ease-out backwards;
}

.skill-item:nth-child(2) { animation-delay: 0.1s; }
.skill-item:nth-child(3) { animation-delay: 0.2s; }
.skill-item:nth-child(4) { animation-delay: 0.3s; }
.skill-item:nth-child(5) { animation-delay: 0.4s; }
.skill-item:nth-child(6) { animation-delay: 0.5s; }
.skill-item:nth-child(7) { animation-delay: 0.6s; }

.skill-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.skill-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border-radius: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
    transform: scale(1.1);
    background: rgba(16, 185, 129, 0.15);
}

.skill-name {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
}

.skill-percentage {
    font-size: 1rem;
    font-weight: 700;
    color: #10b981;
}

/* ===================================
   BARRA DE PROGRESO
   =================================== */
.progress-bar {
    height: 10px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #047857 100%);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Efecto shimmer en la barra */
.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ===================================
   COLUMNA DERECHA - CARDS DESCRIPTIVAS
   =================================== */
.skills-descriptions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
    border-left: 4px solid #10b981;
    transition: all 0.3s ease;
    animation: fadeInRight 0.6s ease-out backwards;
    margin-bottom: 2rem;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }

.skill-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
    border-left-width: 6px;
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.skill-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.skill-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.skill-card-text {
    color: #6b7280;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

/* ===================================
   ANIMACIONES
   =================================== */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 968px) {
    .skills-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .tecnologias-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .skills-bars, .skill-card {
        padding: 1.5rem;
    }

    .skills-bars h3 {
        font-size: 1.5rem;
    }

    .skill-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .skill-name {
        font-size: 1rem;
    }

    .skill-percentage {
        font-size: 0.9rem;
    }

    .skill-card-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .skill-card-title {
        font-size: 1.2rem;
    }

    .skill-card-text {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .tecnologias-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .skills-bars, .skill-card {
        padding: 1.25rem;
    }

    .skills-bars h3 {
        font-size: 1.3rem;
    }

    .skill-item {
        margin-bottom: 1.5rem;
    }

    .skill-header {
        gap: 0.75rem;
    }

    .skills-descriptions {
        gap: 1.25rem;
    }
}