/* ===== CONTENEDOR BASE CON PARALLAX Y MICRO-DOTS ===== */
.cep-expert-profile {
    background-color: #050505;
    background-image:
        radial-gradient(circle, rgba(180, 147, 90, 0.15) 1px, transparent 1px),
        linear-gradient(to right, #0d1c37df 20%, #273546db 100%),
        url('../img/columna.jpg');
    background-size: 24px 24px, auto, cover;
    background-position: center, center, right;
    background-repeat: repeat, no-repeat, no-repeat;
    background-attachment: fixed;

    padding: 120px 0;
    color: #ffffff;
    overflow: hidden;
    position: relative;
    font-family: 'Inter', -apple-system, sans-serif;
}

.cep-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
    box-sizing: border-box;
}

/* ===== CABECERA EDITORIAL ASIMÉTRICA ===== */
.cep-main-title {
    font-family: 'Inter', sans-serif;
    font-size: 38px;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin: 0 0 70px 0;
    text-transform: uppercase;
}

.cep-subtitle-text {
    color: #b4935a;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    text-transform: lowercase;
}

/* ===== GRID REFINADO DE TRES COLUMNAS ===== */
.cep-profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1.4fr;
    gap: 60px;
    align-items: flex-start;
}

/* FILAS DE LOGROS (Izquierda) */
.cep-achievement-item {
    border-top: 1px solid rgba(180, 147, 90, 0.3);
    padding: 24px 0;
    transition: border-color 0.4s ease;
}

.cep-achievement-item:hover {
    border-top-color: #b4935a;
}

.cep-fig-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #b4935a;
    margin-bottom: 8px;
}

.cep-achievement-item p {
    font-size: 15px;
    line-height: 1.45;
    color: #e2e8f0;
    margin: 0;
    font-weight: 400;
}

/* MARCO EDITORIAL ASIMÉTRICO (Centro) */
.cep-image-wrapper {
    position: relative;
    width: 100%;
}

.cep-hex-frame {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(180, 147, 90, 0.2) 100%);
    padding: 1px;
    /* Borde refinado de 1px */
    clip-path: polygon(12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 12%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.cep-hex-frame img {
    width: 100%;
    display: block;
    clip-path: polygon(12% 0, 100% 0, 100% 88%, 88% 100%, 0 100%, 0 12%);
    object-fit: cover;
    background: #111;
    filter: brightness(0.9) contrast(1.05);
    transition: filter 0.5s ease;
}

.cep-image-wrapper:hover .cep-hex-frame img {
    filter: brightness(1) contrast(1.05);
}

/* Destello de cristal tecnológico */
.cep-glass-flare {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* BLOQUE DE CONTENIDO (Derecha) */
.cep-bio-column {
    display: flex;
    flex-direction: column;
}

.cep-bio-intro {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    color: #ffffff;
    margin: 0 0 30px 0;
    letter-spacing: -0.01em;
}

.cep-bio-text p {
    font-size: 14.5px;
    color: #cbd5e1;
    line-height: 1.65;
    margin: 0 0 25px 0;
}

.cep-location-highlight {
    border-top: 1px dashed rgba(180, 147, 90, 0.4);
    padding-top: 30px;
    font-weight: 500;
    color: #ffffff !important;
}

/* ==========================================================================
   SISTEMA DE ANIMACIONES BIDIRECCIONALES (TRANSITIONS EN LUGAR DE KEYFRAMES)
   ========================================================================== */

/* Estados Iniciales (Ocultos por defecto) */
.cep-observe-init,
.cep-observe-left,
.cep-observe-scale,
.cep-observe-right {
    opacity: 0;
    will-change: transform, opacity;
    transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.cep-observe-init {
    transform: translateY(30px);
}

.cep-observe-left {
    transform: translate3d(-40px, 0, 0);
}

.cep-observe-scale {
    transform: scale3d(0.96, 0.96, 1);
    transition-duration: 1.2s;
}

.cep-observe-right {
    transform: translate3d(40px, 0, 0);
}

/* Estados de Activación (Cuando entran al scroll) */
.cep-observe-init.is-visible,
.cep-observe-left.is-visible,
.cep-observe-scale.is-visible,
.cep-observe-right.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
}

/* RESPONSIVO INTEGRADO */
@media (max-width: 1100px) {
    .cep-profile-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .cep-bio-column {
        grid-column: span 2;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .cep-expert-profile {
        padding: 80px 0;
    }

    .cep-container {
        padding: 0 24px;
    }

    .cep-main-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .cep-profile-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .cep-bio-column {
        grid-column: span 1;
    }

    .cep-image-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }
}