/* =========================================================
   EVENTO.CSS
   EVENTOS / MASTERCLASS / DETALLE DE EVENTOS CPONET

   Mantiene la identidad visual general de CPOnet y
   el estilo utilizado en WEBINARS.
   ========================================================= */


/* =========================================================
   1. HERO
   ========================================================= */

.inner-hero {
    position: relative;
    overflow: hidden;

    background:var(--navy);
}

.inner-hero .container {
    position: relative;
    z-index: 2;
}

.inner-hero h1 {
    color: #ffffff;
    margin-bottom: 15px;
}

.inner-hero p {
    max-width: 700px;

    color: rgba(255, 255, 255, 0.82);

    line-height: 1.8;
}


/* =========================================================
   2. CONTENIDO PRINCIPAL
   ========================================================= */

.content-page {
    background: #ffffff;
}

.content-page > .container > .eyebrow {
    display: inline-block;
    margin-bottom: 18px;
}

.content-page > .container > h2 {
    max-width: 900px;
    margin-bottom: 22px;
}

.content-page > .container > p {
    max-width: 850px;
    margin-bottom: 0;

    color: var(--muted);

    line-height: 1.8;
}


/* =========================================================
   3. SECCIONES DE EVENTOS
   ========================================================= */

.events-list-section,
.events-types-section {
    margin-top: 90px;
}

.events-list-section > .eyebrow,
.events-types-section > .eyebrow {
    display: inline-block;
    margin-bottom: 16px;
}

.events-list-section > h2,
.events-types-section > h2 {
    margin-bottom: 18px;
}

.events-list-section > p,
.events-types-section > p {
    max-width: 800px;
    margin-bottom: 40px;

    color: var(--muted);

    line-height: 1.8;
}


/* =========================================================
   4. GRID DE EVENTOS
   ========================================================= */

.events-list-section .simple-grid,
.events-types-section .simple-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;

    margin-top: 40px;
}


/* =========================================================
   5. TARJETAS DE EVENTOS
   ========================================================= */

.events-list-section .simple-card,
.events-types-section .simple-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 100%;

    padding: 35px;

    background: #ffffff;

    border: 1px solid rgba(4, 18, 34, 0.08);

    border-radius: 12px;

    box-shadow:
        0 8px 25px rgba(4, 18, 34, 0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/* Línea superior */

.events-list-section .simple-card::before,
.events-types-section .simple-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: var(--accent);

    border-radius: 12px 12px 0 0;

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.3s ease;
}


/* Hover */

.events-list-section .simple-card:hover,
.events-types-section .simple-card:hover {
    transform: translateY(-7px);

    border-color: rgba(7, 125, 243, 0.18);

    box-shadow:
        0 18px 40px rgba(4, 18, 34, 0.10);
}

.events-list-section .simple-card:hover::before,
.events-types-section .simple-card:hover::before {
    transform: scaleX(1);
}


/* =========================================================
   6. FECHA / EYEBROW DE EVENTO
   ========================================================= */

.events-list-section .simple-card > .eyebrow {
    display: inline-block;

    margin-bottom: 18px;

    color: var(--accent);

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 0.12em;
}


/* =========================================================
   7. TÍTULOS DE TARJETAS
   ========================================================= */

.events-list-section .simple-card h3,
.events-types-section .simple-card h3 {
    margin-bottom: 15px;

    color: var(--navy);

    font-size: 1.35rem;

    line-height: 1.3;
}


/* =========================================================
   8. TEXTOS DE TARJETAS
   ========================================================= */

.events-list-section .simple-card p,
.events-types-section .simple-card p {
    margin-bottom: 18px;

    color: var(--muted);

    line-height: 1.75;
}

.events-list-section .simple-card p:last-of-type {
    margin-bottom: 25px;
}

.events-list-section .simple-card p strong {
    color: var(--navy);
}


/* =========================================================
   9. BOTONES
   ========================================================= */

.events-list-section .simple-card .btn,
.events-types-section .simple-card .btn {
    align-self: flex-start;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 45px;

    margin-top: auto;

    padding: 11px 20px;

    border-radius: 6px;

    font-size: 0.85rem;

    font-weight: 800;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.events-list-section .simple-card .btn:hover,
.events-types-section .simple-card .btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(7, 125, 243, 0.20);
}


/* =========================================================
   10. TIPOS DE EVENTOS
   ========================================================= */

.events-types-section {
    padding-top: 20px;
}

.events-types-section .simple-card {
    min-height: 280px;
}

.events-types-section .simple-card h3 {
    font-size: 1.25rem;
}


/* =========================================================
   11. SECCIÓN FINAL
   ========================================================= */

.content-page .container > section:last-of-type {
    margin-top: 90px !important;

    padding: 60px;

    background:
        linear-gradient(
            135deg,
            #f5f7f9 0%,
            #ffffff 100%
        );

    border: 1px solid rgba(4, 18, 34, 0.07);

    border-radius: 12px;
}

.content-page .container > section:last-of-type .eyebrow {
    display: inline-block;
    margin-bottom: 16px;
}

.content-page .container > section:last-of-type h2 {
    max-width: 850px;
    margin-bottom: 20px;
}

.content-page .container > section:last-of-type p {
    max-width: 850px;

    margin: 0;

    color: var(--muted);

    line-height: 1.8;
}


/* =========================================================
   12. ENLACE VOLVER
   ========================================================= */

.content-page .back {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 45px;

    color: var(--navy);

    font-size: 0.9rem;

    font-weight: 800;

    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.content-page .back:hover {
    color: var(--accent);

    transform: translateX(-4px);
}


/* =========================================================
   13. DETALLE DEL EVENTO
   ========================================================= */

.event-detail-section,
.webinar-speakers-section,
.convention-location,
.event-cta {
    margin-bottom: 110px;
}

.event-detail-section {
    width: 100%;
}

.event-detail-section > .eyebrow {
    display: inline-block;
    margin-bottom: 18px;
}

.event-detail-section > h2 {
    margin-bottom: 22px;
}

.event-detail-section > p {
    max-width: 850px;

    margin-bottom: 18px;

    line-height: 1.8;
}

.event-detail-section > p:last-of-type {
    margin-bottom: 0;
}


/* =========================================================
   14. INFORMACIÓN PRINCIPAL DEL EVENTO
   ========================================================= */

.event-info-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;

    margin-top: 40px;
}

.event-info-grid .simple-card {
    display: flex;

    flex-direction: column;

    justify-content: center;

    min-height: 180px;

    padding: 30px;

    background: var(--cream);

    border: 1px solid rgba(4, 18, 34, 0.06);

    border-radius: 8px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.event-info-grid .simple-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(4, 18, 34, 0.08);
}

.event-info-grid .simple-card h3 {
    margin-bottom: 12px;

    color: var(--navy);

    font-size: 1.15rem;
}

.event-info-grid .simple-card p {
    margin: 0;

    color: var(--muted);

    line-height: 1.7;
}


/* =========================================================
   15. GRID DE CONTENIDO DEL EVENTO
   ========================================================= */

.event-detail-section .simple-grid:not(.event-info-grid) {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    margin-top: 40px;
}

.event-detail-section .simple-grid:not(.event-info-grid) .simple-card {
    min-height: 210px;

    padding: 30px;

    background: var(--cream);

    border: 1px solid rgba(4, 18, 34, 0.06);

    border-radius: 8px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.event-detail-section .simple-grid:not(.event-info-grid) .simple-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(4, 18, 34, 0.08);
}

.event-detail-section .simple-grid:not(.event-info-grid) .simple-card h3 {
    margin-bottom: 12px;

    color: var(--navy);

    font-size: 1.1rem;
}

.event-detail-section .simple-grid:not(.event-info-grid) .simple-card p {
    margin: 0;

    color: var(--muted);

    line-height: 1.7;
}


/* =========================================================
   16. PONENTES
   ========================================================= */

.webinar-speakers-section {
    width: 100%;

    padding: 80px 60px;

    background: #f5f7f9;

    border-top: 1px solid rgba(4, 18, 34, 0.06);
    border-bottom: 1px solid rgba(4, 18, 34, 0.06);

    border-radius: 12px;
}

.webinar-speakers {
    width: 100%;
}


/* =========================================================
   17. CABECERA DE PONENTES
   ========================================================= */

.webinar-section-header {
    max-width: 850px;

    margin: 0 auto 50px;
}

.webinar-section-header .eyebrow {
    display: inline-block;
    margin-bottom: 18px;
}

.webinar-section-header h2 {
    margin-bottom: 18px;
}

.webinar-section-header p {
    max-width: 750px;

    margin: 0;

    line-height: 1.8;
}


/* =========================================================
   18. PONENTE DESTACADO
   ========================================================= */

.speaker-featured {
    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    min-height: 430px;

    margin-bottom: 35px;

    background: #ffffff;

    border: 1px solid rgba(4, 18, 34, 0.08);

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 15px 40px rgba(4, 18, 34, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.speaker-featured:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 45px rgba(4, 18, 34, 0.11);
}


/* =========================================================
   19. FOTO DEL PONENTE
   ========================================================= */

.speaker-featured-image {
    min-height: 430px;

    overflow: hidden;

    background: #e9eef3;
}

.speaker-featured-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center top;

    transition: transform 0.5s ease;
}

.speaker-featured:hover .speaker-featured-image img {
    transform: scale(1.03);
}


/* =========================================================
   20. INFORMACIÓN DEL PONENTE
   ========================================================= */

.speaker-featured-info {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 55px;
}

.speaker-featured-info .speaker-role {
    display: inline-block;

    margin-bottom: 12px;

    color: var(--accent);

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 0.12em;
}

.speaker-featured-info h3 {
    margin-bottom: 10px;

    color: var(--navy);

    font-size: 2rem;

    line-height: 1.2;
}

.speaker-position {
    margin-bottom: 22px;

    color: var(--accent);

    font-size: 0.95rem;

    font-weight: 700;

    line-height: 1.5;
}

.speaker-bio {
    margin-bottom: 25px;

    color: var(--muted);

    line-height: 1.8;
}


/* =========================================================
   21. LINKEDIN DEL PONENTE
   ========================================================= */

.speaker-linkedin {
    display: inline-flex;

    align-items: center;

    align-self: flex-start;

    gap: 10px;

    padding: 11px 16px;

    color: var(--navy);

    border: 1px solid rgba(4, 18, 34, 0.12);

    border-radius: 6px;

    font-size: 0.85rem;

    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.speaker-linkedin:hover {
    background: rgba(7, 125, 243, 0.08);

    border-color: var(--accent);

    transform: translateY(-2px);
}

.linkedin-icon {
    display: grid;

    place-items: center;

    width: 25px;
    height: 25px;

    background: var(--navy);

    color: #ffffff;

    border-radius: 4px;

    font-size: 0.75rem;

    font-weight: 800;
}

.speaker-linkedin-arrow {
    margin-left: 4px;

    font-size: 1rem;
}


/* =========================================================
   22. PONENTE INVERTIDO
   ========================================================= */

.speaker-featured-reverse {
    grid-template-columns: 1.15fr 0.85fr;
}

.speaker-featured-reverse .speaker-featured-info {
    order: 1;
}

.speaker-featured-reverse .speaker-featured-image {
    order: 2;
}


/* =========================================================
   23. UBICACIÓN
   ========================================================= */

.convention-location {
    width: 100%;
}

.convention-location-header {
    max-width: 800px;

    margin-bottom: 45px;
}

.convention-location-header .eyebrow {
    display: inline-block;
    margin-bottom: 18px;
}

.convention-location-header h2 {
    margin-bottom: 15px;
}

.convention-location-header p {
    max-width: 700px;

    margin: 0;

    line-height: 1.8;
}


/* =========================================================
   24. GRID DE UBICACIÓN
   ========================================================= */

.convention-location-grid {
    display: grid;

    grid-template-columns: 0.85fr 1.15fr;

    gap: 50px;

    align-items: stretch;
}


/* =========================================================
   25. INFORMACIÓN DE UBICACIÓN
   ========================================================= */

.convention-location-info {
    display: flex;

    flex-direction: column;

    justify-content: center;
}

.location-label {
    display: block;

    margin-bottom: 12px;

    color: var(--accent);

    font-size: 0.7rem;

    font-weight: 800;

    letter-spacing: 0.1em;
}

.convention-location-info h3 {
    margin-bottom: 15px;
}

.location-address {
    margin-bottom: 30px;

    color: var(--muted);

    line-height: 1.8;
}


/* =========================================================
   26. DETALLES DE UBICACIÓN
   ========================================================= */

.location-details {
    display: flex;

    flex-direction: column;

    gap: 20px;

    margin-bottom: 30px;
}

.location-detail {
    display: flex;

    align-items: flex-start;

    gap: 15px;
}

.location-detail-icon {
    display: grid;

    place-items: center;

    width: 40px;
    height: 40px;

    flex-shrink: 0;

    background: rgba(7, 125, 243, 0.08);

    border-radius: 50%;

    font-size: 1rem;
}

.location-detail strong {
    display: block;

    margin-bottom: 4px;
}

.location-detail p {
    margin: 0;

    font-size: 0.9rem;

    line-height: 1.6;
}


/* =========================================================
   27. BOTÓN DE UBICACIÓN
   ========================================================= */

.convention-location-button {
    align-self: flex-start;

    display: inline-flex;

    align-items: center;

    gap: 0.7rem;
}


/* =========================================================
   28. MAPA
   ========================================================= */

.convention-location-map {
    min-height: 430px;

    overflow: hidden;

    border: 1px solid rgba(4, 18, 34, 0.1);

    border-radius: 12px;

    background: #eef2f5;
}

.convention-location-map iframe {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 430px;

    border: 0;
}


/* =========================================================
   29. CTA FINAL
   ========================================================= */

.event-cta {
    padding: 70px 60px;

    text-align: center;

    background: var(--navy);

    border-radius: 12px;
}

.event-cta .eyebrow {
    display: inline-block;
    margin-bottom: 18px;
}

.event-cta h2 {
    max-width: 800px;

    margin: 0 auto 20px;

    color: var(--navy);
}


.event-cta p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   30. TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .event-detail-section,
    .webinar-speakers-section,
    .convention-location,
    .event-cta {
        margin-bottom: 85px;
    }

    .event-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-detail-section .simple-grid:not(.event-info-grid) {
        grid-template-columns: repeat(2, 1fr);
    }

    .webinar-speakers-section {
        padding: 60px 40px;
    }

    .speaker-featured,
    .speaker-featured-reverse {
        grid-template-columns: 1fr 1fr;
    }

    .speaker-featured-info {
        padding: 40px;
    }

    .speaker-featured-info h3 {
        font-size: 1.7rem;
    }

    .convention-location-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .convention-location-map {
        min-height: 380px;
    }

    .convention-location-map iframe {
        min-height: 380px;
    }
}


/* =========================================================
   31. TABLET PEQUEÑA
   ========================================================= */

@media (max-width: 800px) {

    .speaker-featured,
    .speaker-featured-reverse {
        grid-template-columns: 1fr;
    }

    .speaker-featured-reverse .speaker-featured-info {
        order: 1;
    }

    .speaker-featured-reverse .speaker-featured-image {
        order: 2;
    }

    .speaker-featured-image {
        height: 380px;
        min-height: 380px;
    }

    .speaker-featured-info {
        padding: 35px;
    }
}


/* =========================================================
   32. MÓVIL
   ========================================================= */

@media (max-width: 700px) {

    .events-list-section,
    .events-types-section {
        margin-top: 65px;
    }

    .events-list-section .simple-grid,
    .events-types-section .simple-grid {
        grid-template-columns: 1fr;

        gap: 18px;

        margin-top: 30px;
    }

    .events-list-section .simple-card,
    .events-types-section .simple-card {
        min-height: auto;

        padding: 27px;
    }

    .events-list-section .simple-card h3,
    .events-types-section .simple-card h3 {
        font-size: 1.2rem;
    }

    .event-detail-section,
    .webinar-speakers-section,
    .convention-location,
    .event-cta {
        margin-bottom: 65px;
    }

    /* Información del evento */

    .event-info-grid {
        grid-template-columns: 1fr;

        gap: 15px;

        margin-top: 30px;
    }

    .event-info-grid .simple-card {
        min-height: auto;

        padding: 25px;
    }

    /* Tarjetas generales */

    .event-detail-section .simple-grid:not(.event-info-grid) {
        grid-template-columns: 1fr;

        gap: 15px;

        margin-top: 30px;
    }

    .event-detail-section .simple-grid:not(.event-info-grid) .simple-card {
        min-height: auto;

        padding: 25px;
    }

    /* Ponentes */

    .webinar-speakers-section {
        padding: 50px 25px;

        border-radius: 8px;
    }

    .webinar-section-header {
        margin-bottom: 35px;
    }

    .speaker-featured {
        margin-bottom: 25px;

        border-radius: 8px;
    }

    .speaker-featured-image {
        height: 360px;
        min-height: 360px;
    }

    .speaker-featured-info {
        padding: 30px 25px;
    }

    .speaker-featured-info h3 {
        font-size: 1.5rem;
    }

    .speaker-bio {
        font-size: 0.92rem;
    }

    .speaker-linkedin {
        width: 100%;

        justify-content: center;
    }

    /* Ubicación */

    .convention-location-header {
        margin-bottom: 30px;
    }

    .convention-location-header h2 {
        font-size: 1.8rem;
    }

    .convention-location-info h3 {
        font-size: 1.35rem;
    }

    .convention-location-map {
        min-height: 300px;

        border-radius: 8px;
    }

    .convention-location-map iframe {
        min-height: 300px;
    }

    .convention-location-button {
        width: 100%;

        justify-content: center;
    }

    /* CTA */

    .event-cta {
        padding: 50px 25px;

        border-radius: 8px;
    }

    /* Volver */

    .content-page .back {
        margin-top: 35px;
    }
}


/* =========================================================
   33. MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 480px) {

    .events-list-section .simple-card,
    .events-types-section .simple-card {
        padding: 24px;
    }

    .events-list-section .simple-card .btn,
    .events-types-section .simple-card .btn {
        width: 100%;
    }

    .content-page .container > section:last-of-type {
        padding: 30px 20px;
    }

    .event-detail-section,
    .webinar-speakers-section,
    .convention-location,
    .event-cta {
        margin-bottom: 55px;
    }

    /* Información */

    .event-info-grid .simple-card {
        padding: 22px;
    }

    /* Ponentes */

    .webinar-speakers-section {
        padding: 45px 20px;
    }

    .speaker-featured-image {
        height: 320px;
        min-height: 320px;
    }

    .speaker-featured-info {
        padding: 25px 22px;
    }

    /* Ubicación */

    .convention-location-map {
        min-height: 280px;
    }

    .convention-location-map iframe {
        min-height: 280px;
    }

    /* CTA */

    .event-cta {
        padding: 45px 20px;
    }
}