/* ==========================================================================
   Estilos dedicados para Acerca de Mí (acercademi.php)
   Diseño sobrio, humano, moderno y responsivo para Miguel Fuenzalida
   ========================================================================== */

:root {
    --ac-primary: #0d1e33;
    --ac-secondary: #1a6fb5;
    --ac-accent: #f7a81b;
    --ac-accent-light: #fff5e6;
    --ac-text: #24354a;
    --ac-text-muted: #576d85;
    --ac-bg-soft: #f4f7fb;
    --ac-card-bg: #ffffff;
    --ac-border: #e2e8f0;
    --ac-radius: 16px;
    --ac-shadow: 0 10px 30px rgba(13, 30, 51, 0.08);
    --ac-shadow-hover: 0 16px 36px rgba(13, 30, 51, 0.14);
}

.ac-wrapper {
    background: var(--ac-bg-soft);
    padding: 3rem 1.2rem 4rem 1.2rem;
    display: flex;
    justify-content: center;
}

.ac-container {
    max-width: 1160px;
    width: 100%;
}

/* Encabezado de la historia / Perfil Principal */
.ac-hero-card {
    background: #ffffff;
    border-radius: var(--ac-radius);
    box-shadow: var(--ac-shadow);
    border: 1px solid var(--ac-border);
    padding: 2.8rem 2.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.ac-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #1a6fb5 0%, #f7a81b 100%);
}

.ac-profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.ac-avatar-box {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border: 4px solid #ffffff;
    outline: 3px solid #1a6fb5;
}

.ac-avatar-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ac-title-area h1 {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--ac-primary);
    margin: 0 0 0.4rem 0;
    line-height: 1.2;
}

.ac-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ac-secondary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ac-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #eef5fc;
    color: #1a6fb5;
    border: 1px solid #c9e0f5;
}

.ac-badge-pill.sec {
    background: #fff8e8;
    color: #b7791f;
    border-color: #fbd38d;
}

.ac-badge-pill.location {
    background: #edf2f7;
    color: #4a5568;
    border-color: #cbd5e0;
}

/* Cita destacada / Filosofía */
.ac-quote-block {
    background: linear-gradient(135deg, #f0f7ff 0%, #eaf2fc 100%);
    border-left: 5px solid #1a6fb5;
    border-radius: 12px;
    padding: 1.4rem 1.8rem;
    margin: 1.8rem 0;
    position: relative;
}

.ac-quote-block i.fa-quote-left {
    font-size: 1.8rem;
    color: #a9cced;
    position: absolute;
    top: 15px;
    left: 15px;
    opacity: 0.4;
}

.ac-quote-text {
    font-size: 1.08rem;
    font-style: italic;
    font-weight: 500;
    color: #102a43;
    line-height: 1.6;
    margin: 0;
    padding-left: 1.5rem;
}

/* Bloques de texto narrativo */
.ac-story-body p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--ac-text);
    margin-bottom: 1.2rem;
}

.ac-story-body p strong {
    color: #0b223c;
}

/* Secciones generales */
.ac-section-card {
    background: #ffffff;
    border-radius: var(--ac-radius);
    box-shadow: var(--ac-shadow);
    border: 1px solid var(--ac-border);
    padding: 2.5rem 2.2rem;
    margin-bottom: 2.2rem;
}

.ac-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--ac-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #eef2f6;
}

.ac-section-title .title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #eef6fc;
    color: #1a6fb5;
    border-radius: 10px;
    font-size: 1.2rem;
}

/* Grid de Pilares Formativos */
.ac-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ac-pillar-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.ac-pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

.ac-pillar-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.ac-pillar-title {
    font-size: 1.12rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.4rem;
}

.ac-pillar-institution {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1a6fb5;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ac-pillar-desc {
    font-size: 0.94rem;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

/* Nube de Yacimientos y Faenas Mineras */
.ac-mining-banner {
    background: linear-gradient(135deg, #0d1e33 0%, #162f4e 100%);
    border-radius: 14px;
    padding: 1.8rem;
    color: #ffffff;
    margin: 1.5rem 0 2rem 0;
}

.ac-mining-banner h4 {
    color: #f7a81b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-mining-banner p {
    color: #cbd5e1;
    font-size: 0.94rem;
    margin-bottom: 1.2rem;
    line-height: 1.55;
}

.ac-mining-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ac-mining-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.ac-mining-tag:hover {
    background: rgba(247, 168, 27, 0.25);
    border-color: #f7a81b;
    color: #fff9ed;
}

.ac-mining-tag i {
    color: #f7a81b;
    font-size: 0.75rem;
}

/* Grid de Capacidades Técnicas */
.ac-skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.2rem;
}

.ac-skill-box {
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #1a6fb5;
    border-radius: 10px;
    padding: 1.3rem;
}

.ac-skill-box h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0d2b4d;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ac-skill-box p {
    font-size: 0.93rem;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

/* Galería Testimonial */
.ac-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ac-gallery-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.ac-gallery-thumb {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #0d1e33;
}

.ac-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.ac-gallery-item:hover .ac-gallery-thumb img {
    transform: scale(1.04);
}

.ac-gallery-caption {
    padding: 1rem 1.1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #475569;
    flex-grow: 1;
    background: #fafafa;
    border-top: 1px solid #edf2f7;
}

.ac-gallery-caption strong {
    color: #1e293b;
    display: block;
    margin-bottom: 4px;
}

/* Valores / Principios */
.ac-values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ac-value-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.6rem;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.ac-value-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    margin: 0 auto 1.1rem auto;
    background: #eef5fc;
    color: #1a6fb5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.ac-value-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.6rem;
}

.ac-value-card p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Llamado al Portal y Comunidad */
.ac-community-card {
    background: linear-gradient(135deg, #102a43 0%, #0d1e33 100%);
    border-radius: var(--ac-radius);
    padding: 2.8rem 2.2rem;
    color: #ffffff;
    box-shadow: var(--ac-shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.ac-community-card h3 {
    color: #ffffff;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.ac-community-card p {
    color: #cbd5e1;
    font-size: 1.05rem;
    max-width: 820px;
    margin: 0 auto 1.8rem auto;
    line-height: 1.7;
}

.ac-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.ac-btn-primary {
    background: #f7a81b;
    color: #0d1e33;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(247, 168, 27, 0.3);
}

.ac-btn-primary:hover {
    background: #e6980e;
    color: #000000;
    transform: translateY(-2px);
    text-decoration: none;
}

.ac-btn-outline {
    background: transparent;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.ac-btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Responsividad */
@media (max-width: 768px) {
    .ac-wrapper {
        padding: 1.5rem 0.8rem;
    }
    .ac-hero-card, .ac-section-card, .ac-community-card {
        padding: 1.8rem 1.2rem;
    }
    .ac-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }
    .ac-subtitle {
        justify-content: center;
    }
    .ac-title-area h1 {
        font-size: 1.7rem;
    }
    .ac-quote-text {
        padding-left: 0;
    }
    .ac-quote-block i.fa-quote-left {
        display: none;
    }
}
