/* ==========================================================
   SINGLE EVENTO — Landing de evento (CPT 'evento')
   Usa las variables globales del tema (base.css):
   --fuente-principal, --fuente-secundaria, --primary-color, etc.
   ========================================================== */

/* ===== HERO ===== */
.evento-hero {
    position: relative;
    width: 100%;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.evento-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(17, 32, 63, 0.55);
    z-index: 1;
}

.evento-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 40px 32px;
    text-align: center;
}

.evento-hero .btn-regresar {
    position: absolute;
    top: 24px;
    left: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #11203F;
    font-family: var(--fuente-principal);
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.evento-hero .btn-regresar:hover {
    opacity: 0.88;
}

.evento-hero-title {
    font-family: var(--fuente-principal);
    font-weight: 700;
    font-size: 56px;
    line-height: 1.15;
    color: #fff;
    margin: 0;
}

/* ===== CUERPO ===== */
.evento-body {
    background: #f3f7ff;
    padding: 56px 0;
}

.evento-body .wrapper {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 48px;
    box-shadow: 0 2px 16px rgba(17, 32, 63, 0.06);
}

.evento-body h2 {
    font-family: var(--fuente-principal);
    font-weight: 700;
    font-size: 30px;
    color: var(--primary-color, #1D477E);
    line-height: 1.25;
    margin-bottom: 16px;
}

/* ===== RESUMEN ===== */
.evento-resumen {
    margin-bottom: 48px;
}

.evento-resumen-text {
    font-family: var(--fuente-secundaria);
    font-size: 16px;
    line-height: 1.7;
    color: #282943;
}

.evento-resumen-text[data-collapsed="true"] {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.evento-resumen-text p {
    margin: 0 0 12px;
}

.evento-leermas {
    margin-top: 8px;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--fuente-principal);
    font-weight: 700;
    font-size: 15px;
    color: var(--primary-color, #1D477E);
    cursor: pointer;
    text-decoration: underline;
}

/* ===== DETALLES ===== */
.evento-detalles {
    margin-bottom: 48px;
}

.evento-detalles .card-event-tag {
    margin-bottom: 20px;
}

.evento-detalles-lista {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.evento-detalles-lista li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: var(--fuente-secundaria);
    font-size: 16px;
    line-height: 1.5;
    color: #282943;
}

.evento-ico {
    flex-shrink: 0;
    color: var(--primary-color, #1D477E);
    margin-top: 2px;
}

.evento-detalles-lista a {
    color: var(--accent, #4B9ED9);
    text-decoration: underline;
    word-break: break-word;
}

.evento-btn-inscribir {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 28px;
    background: #4B9ED9;
    color: #11203F;
    font-family: var(--fuente-principal);
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.evento-btn-inscribir:hover {
    opacity: 0.88;
}

/* tag reutilizado de internas.css; se redefine por si evento.css carga solo */
.evento-detalles .card-event-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #AFCA7080;
    color: #11203F;
    border-radius: 20px;
    padding: 6px 14px;
    font-family: var(--fuente-secundaria);
    font-size: 14px;
    font-weight: 700;
    width: fit-content;
}

.evento-detalles .card-event-tag--webinar {
    background: #A693B880;
}

/* ===== SPEAKERS (reutiliza patrón .authors / .author-card de prensa) ===== */
.evento-speakers {
    margin-bottom: 48px;
}

.authors__title {
    font-family: var(--fuente-principal);
    font-weight: 700;
    font-size: 30px;
    color: var(--primary-color, #1D477E);
    margin-bottom: 24px;
}

.authors__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.author-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-card__photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%);
    margin-bottom: 14px;
}

.author-card__info {
    width: 100%;
}

.author-card__name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 6px;
}

.author-card__name {
    font-family: var(--fuente-principal);
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color, #1D477E);
}

.author-card__linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #4B9ED9;
    border-radius: 4px;
}

.author-card__about {
    background: none;
    border: none;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--fuente-principal);
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color, #1D477E);
    cursor: pointer;
}

.author-card__about svg path {
    stroke: var(--primary-color, #1D477E);
    transition: transform 0.2s;
}

.author-card__about.is-open svg {
    transform: rotate(180deg);
}

.author-card__bio {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
    font-family: var(--fuente-secundaria);
    font-size: 14px;
    line-height: 1.5;
    color: #282943;
}

.author-card__bio.is-open {
    max-height: 400px;
    opacity: 1;
    margin-top: 10px;
}

/* ===== GALERÍA (carrusel) ===== */
.evento-galeria {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.evento-galeria-track {
    display: flex;
    transition: transform 0.4s ease;
}

.evento-galeria-slide {
    min-width: 100%;
    flex-shrink: 0;
}

.evento-galeria-slide img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
}

.evento-galeria-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.evento-galeria-nav:hover { opacity: 0.8; }
.evento-galeria-prev { left: 16px; }
.evento-galeria-next { right: 16px; }
.evento-galeria-nav svg { width: 28px; height: 28px; fill: #11203F; }

.evento-galeria-dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.evento-galeria-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
}

.evento-galeria-dot.active { background: #4B9ED9; }

/* ===== EVENTOS RELACIONADOS ===== */
.evento-relacionados {
    background: #f3f7ff;
    padding: 64px 0;
}

.evento-relacionados .wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.evento-relacionados h2 {
    font-family: var(--fuente-principal);
    font-weight: 700;
    font-size: 30px;
    color: var(--primary-color, #1D477E);
    margin-bottom: 28px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .authors__grid { grid-template-columns: repeat(2, 1fr); }
    .evento-hero-title { font-size: 42px; }
}

@media (max-width: 768px) {
    .evento-body { padding: 32px 0; }
    .evento-body .wrapper { padding: 28px; border-radius: 0; }
    .evento-hero { min-height: 320px; }
    .evento-hero-title { font-size: 32px; }
    .evento-hero .btn-regresar { top: 16px; left: 16px; }
    .evento-body h2, .authors__title, .evento-relacionados h2 { font-size: 24px; }
    .evento-galeria-slide img { height: 280px; }
}

@media (max-width: 480px) {
    .authors__grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .author-card__photo { width: 90px; height: 90px; }
    .evento-hero-title { font-size: 26px; }
}
