/* ================================================
   Oidel Content Manager — Frontend Styles
   ================================================ */

/* -----------------------------------------------
   EVENTS PAGE  [ep_events]
   ----------------------------------------------- */

.ep-custom-events {
    max-width: 800px;
    margin: 40px auto;
    font-family: 'Inter', sans-serif;
}

.ep-section-title {
    font-size: 42px;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 300;
}

.ep-event-item {
    display: flex;
    align-items: stretch;
    margin-bottom: 25px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.ep-date-box {
    background-color: transparent;
    min-width: 200px;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.ep-day-svg {
    width: 140px;
    height: 90px;
    overflow: visible;
}

.ep-day-svg text {
    fill: transparent;
    stroke-width: 1.5px;
    font-size: 90px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-anchor: middle;
    dominant-baseline: middle;
}

.ep-date-box .month,
.ep-date-box .year {
    font-size: 16px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0;
    line-height: 22px;
}

.ep-event-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.ep-event-title {
    font-size: 32px;
    line-height: 1.1;
    font-weight: 300;
    margin: 0 0 8px 0;
}

.ep-event-title strong {
    font-weight: 500;
}

.ep-event-description {
    font-size: 18px;
    line-height: 1.5;
    color: #4a4a4a;
    font-weight: 300;
    margin: 0;
}

.ep-past {
    opacity: 0.6;
}

/* Mobile */
@media (max-width: 600px) {
    .ep-event-item {
        flex-direction: column;
    }
    .ep-date-box {
        min-width: unset;
        padding: 16px;
        flex-direction: row;
        gap: 12px;
    }
    .ep-day-svg {
        width: 60px;
        height: 40px;
    }
    .ep-day-svg text {
        font-size: 38px;
    }
    .ep-event-info {
        padding: 20px;
    }
    .ep-event-title {
        font-size: 22px;
    }
}

/* -----------------------------------------------
   EVENTS FOOTER WIDGET  [ep_events_footer]
   ----------------------------------------------- */

.ep-footer-widget h4 {
    margin-bottom: 16px;
}

.ep-footer-widget h4 a {
    color: inherit;
    text-decoration: none;
}

.ep-footer-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ep-footer-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ep-card-date-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 44px;
}

.ep-card-svg {
    width: 44px;
    height: 36px;
    overflow: visible;
}

.ep-card-svg text {
    fill: transparent;
    stroke-width: 1.2px;
    font-size: 32px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-anchor: middle;
    dominant-baseline: middle;
}

.ep-card-month,
.ep-card-year {
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 1px;
    line-height: 14px;
    text-transform: uppercase;
    display: block;
    text-align: center;
}

.ep-card-info {
    flex: 1;
}

.ep-card-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 3px 0;
    line-height: 1.3;
    color: inherit;
}

.ep-card-title span {
    font-weight: 300;
    display: block;
}

.ep-card-desc {
    font-size: 12px;
    margin: 0;
    opacity: 0.75;
    color: inherit;
}

/* -----------------------------------------------
   EXPERTS PAGE  [ep_experts]
   ----------------------------------------------- */

.ep-experts-wrapper {
    width: 100%;
}

.ep-container {
    width: 100%;
}

.ep-section-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.ep-divider {
    margin: 4rem 0;
}

.ep-title {
    font-size: 36px;
    line-height: 42px;
    font-weight: 300;
    margin: 0;
}

/* Grids */
.ep-experts-grid {
    display: grid;
    gap: 2rem;
}

.ep-grid-steering {
    grid-template-columns: repeat(3, 1fr);
}

.ep-grid-experts {
    grid-template-columns: repeat(4, 1fr);
}

/* Cards */
.ep-person-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ep-person-photo {
    background-color: transparent;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
}

.ep-img-placeholder {
    width: 100%;
    height: 100%;
    background-color: transparent;
}

/* Crossfade hover */
.ep-person-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.ep-img-color {
    opacity: 0;
    z-index: 2;
}

.ep-img-bn {
    opacity: 1;
    z-index: 1;
}

.ep-person-card:hover .ep-img-color {
    opacity: 1;
    transform: scale(1.05);
}

.ep-person-card:hover .ep-img-bn {
    /* Mantenemos la opacidad al 100% para evitar el fondo blanco */
    opacity: 1;
    transform: scale(1.05);
}

/* Info block */
.ep-person-info {
    width: 100%;
    padding: 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background-color: transparent;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ep-person-name {
    font-size: 22px;
    font-weight: 300;
    margin: 0 0 0.25rem 0;
    line-height: 1.2 !important;
}

.ep-person-role {
    font-size: 14px;
    font-weight: 300;
    line-height: 18px;
    margin: 0 0 0.75rem 0;
    flex-grow: 1;
}

.ep-person-country {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0 !important;
    line-height: 17px;
}

/* -----------------------------------------------
   RESPONSIVE — EXPERTS
   ----------------------------------------------- */

@media (min-width: 1600px) {
    .ep-grid-steering { grid-template-columns: repeat(4, 1fr); }
    .ep-grid-experts  { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 1024px) {
    .ep-grid-steering { grid-template-columns: repeat(2, 1fr); }
    .ep-grid-experts  { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .ep-section-header { flex-direction: column; }
    .ep-grid-steering,
    .ep-grid-experts {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 1.5rem;
    }
}

@media (max-width: 540px) {
    .ep-grid-steering,
    .ep-grid-experts {
        grid-template-columns: 1fr;
    }
}

/* OIDEL CONTENT - CUSTOM GRID & STYLES */
.oidel-experts-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
    box-sizing: border-box;
}

.ep-expert-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 4px;
}

.ep-person-info {
    background-color: #000000 !important;
    padding: 15px 30px !important;
    flex-grow: 1;
}

.ep-person-name {
    color: #F39200 !important;
    font-size: 22px !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    font-weight: 400 !important;
}

.ep-person-role {
    color: #D1D1D1 !important;
    font-size: 14px !important;
    display: block !important;
    margin-bottom: 10px !important;
    font-weight: 600;
}

.ep-person-description, 
.ep-person-description p,
.ep-person-country {
    color: #D1D1D1 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}

@media (max-width: 992px) {
    .oidel-experts-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .oidel-experts-grid {
        grid-template-columns: 1fr !important;
    }
}