/* ----------------------------- SECCIÓN SOBRE MÍ ----------------------------- */

.about-section {
    max-width: 1100px;
    margin: 0 auto 120px;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.section-header h1 {
    font-size: clamp(48px, 6vw, 64px);
    font-weight: 700;
    color: #f5f5f7;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.section-header p {
    font-size: clamp(18px, 2vw, 21px);
    color: #a1a1a6;
    font-weight: 400;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    background: rgba(28, 28, 30, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    padding: 48px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3),
                0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(72, 72, 74, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.about-card:nth-child(1) {
    animation-delay: 0.2s;
}

.about-card:nth-child(2) {
    animation-delay: 0.3s;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #0a84ff, transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4),
                0 12px 48px rgba(10, 132, 255, 0.15);
    transform: translateY(-8px);
    border-color: rgba(10, 132, 255, 0.3);
}

.about-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(10, 132, 255, 0.2), rgba(10, 132, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    border: 1px solid rgba(10, 132, 255, 0.3);
}

.about-card h3 {
    font-size: 26px;
    font-weight: 600;
    color: #f5f5f7;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.about-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #98989d;
    margin-bottom: 16px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(58, 58, 60, 0.3);
    border-radius: 14px;
    border: 1px solid rgba(72, 72, 74, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(10, 132, 255, 0.1);
    border-color: rgba(10, 132, 255, 0.3);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #0a84ff;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 14px;
    color: #98989d;
    font-weight: 500;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.skill-item {
    background: rgba(10, 132, 255, 0.15);
    color: #0a84ff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(10, 132, 255, 0.3);
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: rgba(10, 132, 255, 0.25);
    transform: translateY(-2px);
}

.about-stats a.stat-item {
    text-decoration: none; /* Quita el subrayado */
    color: inherit;        /* Mantiene el color definido en .stat-item */
    cursor: pointer;       /* Muestra el cursor de mano */
}


/* ----------------------------- ANIMACIONES ----------------------------- */

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------- RESPONSIVE ABOUT ----------------------------- */

@media (max-width: 768px) {
    .about-section {
        padding: 0 16px;
        margin-bottom: 80px;
    }

    .about-cards {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-card {
        padding: 36px 28px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .section-header {
        margin-bottom: 50px;
    }
}

/* ===== ABOUT SECTION STYLES - MOBILE OPTIMIZED ===== */

/* Base styles (Mobile First) */
.about-section {
    padding: 4rem 1.25rem;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: #666;
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-text {
    width: 100%;
}

.about-text p {
    font-size: clamp(0.9375rem, 2.5vw, 1.0625rem);
    color: #4a4a4a;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    color: #1a1a1a;
    font-weight: 600;
}

.about-highlights {
    width: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #e3e8f0 100%);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.about-highlights h3 {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    text-align: center;
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.highlight-content h4 {
    font-size: clamp(1rem, 3vw, 1.125rem);
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.highlight-content p {
    font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Small tablets and large phones */
@media (min-width: 481px) {
    .about-section {
        padding: 5rem 2rem;
    }

    .about-content {
        gap: 3rem;
    }

    .about-highlights {
        padding: 2.5rem 2rem;
    }

    .highlights-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

/* Tablets */
@media (min-width: 769px) {
    .about-section {
        padding: 6rem 3rem;
    }

    .about-content {
        flex-direction: row;
        gap: 4rem;
        align-items: flex-start;
    }

    .about-text {
        flex: 1.2;
    }

    .about-highlights {
        flex: 1;
        padding: 3rem 2.5rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .about-section {
        padding: 8rem 4rem;
    }

    .section-subtitle {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .about-highlights h3 {
        text-align: left;
    }
}

/* Large desktop */
@media (min-width: 1440px) {
    .about-section {
        padding: 10rem 4rem;
    }
}
