/* Estilos compartidos por el catálogo y el detalle de eventos. */
.event-card,
.detail-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(10, 37, 64, .09);
    border: 1px solid #e6edf5;
}

.event-link,
.detail-button {
    display: inline-block;
    background: #15558b;
    color: #fff;
    padding: 12px 22px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
}

.event-link:hover,
.detail-button:hover {
    background: #0b3559;
    color: #fff;
}

.event-image img,
.detail-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Catálogo: eventos.php */
.events-intro {
            background: linear-gradient(125deg, #09274c, #17548c);
            color: #fff;
            padding: 76px 20px;
            text-align: center;
        }

        .events-intro h1 {
            color: #fff;
            font-size: clamp(30px, 4vw, 46px);
            margin-bottom: 18px;
        }

        .events-intro p {
            max-width: 780px;
            margin: 0 auto;
            line-height: 1.8;
            color: #e6eef8;
        }

        .events-content {
            padding: 65px 0 90px;
            background: #f6f8fc;
        }

        .events-list {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 30px;
        }


        .event-image {
            width: 100%;
    height: auto;
    background: #e7eff8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
        }


        .event-image-placeholder {
            font-size: 64px;
            color: #386c9b;
        }

        .event-body {
            padding: 30px;
        }

        .event-label {
            display: inline-block;
            padding: 7px 13px;
            border-radius: 30px;
            background: #e8f1fb;
            color: #174d81;
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 18px;
        }

        .event-body h2 {
            font-size: 25px;
            line-height: 1.3;
            color: #102f50;
            margin-bottom: 16px;
        }

        .event-date {
            color: #49667e;
            margin-bottom: 18px;
            font-weight: 600;
        }

        .event-date i {
            margin-right: 7px;
        }

        .event-description {
            color: #4c6072;
            line-height: 1.8;
            white-space: pre-line;
            margin-bottom: 20px;
        }


        .events-empty {
            text-align: center;
            background: #fff;
            border-radius: 14px;
            padding: 65px 25px;
            color: #49667e;
            border: 1px solid #e6edf5;
        }

        .events-empty i {
            font-size: 48px;
            color: #376f9f;
            margin-bottom: 20px;
        }

        @media (max-width: 768px) {
            .events-list {
                grid-template-columns: 1fr;
            }

            .events-intro {
                padding: 55px 20px;
            }

            .event-image {
                width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: auto;
        overflow: visible;
            }
			.event-image img {
        display: block;
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
    }

            .event-body {
                padding: 23px;
            }
        }
		
.event-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 24px 0;
    padding: 22px;
    background: #f4f8fd;
    border-radius: 12px;
}

.event-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.event-detail i {
    color: #17639c;
    font-size: 21px;
    width: 26px;
    margin-top: 3px;
    flex-shrink: 0;
}

.event-detail strong {
    display: block;
    color: #103b65;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 5px;
}

.event-detail p {
    margin: 0;
    color: #455c72;
    line-height: 1.6;
    font-size: 14px;
}

/* Detalle: evento_detalle.php */
.detail-hero {
            background: linear-gradient(125deg, #09274c, #17548c);
            color: #fff;
            padding: 55px 20px;
            text-align: center;
        }

        .detail-hero h1 {
            color: #fff;
            font-size: clamp(27px, 4vw, 42px);
            margin: 0 0 14px;
            line-height: 1.3;
        }

        .detail-hero p {
            color: #e6eef8;
            margin: 0;
        }

        .detail-section {
            background: #f6f8fc;
            padding: 45px 15px 85px;
        }

        .detail-container {
            max-width: 1050px;
            margin: 0 auto;
        }


        .detail-image {
            background: #e7eff8;
            width: 100%;
            height: auto;
        }


        .detail-image-empty {
            min-height: 220px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #386c9b;
            font-size: 65px;
        }

        .detail-content {
            padding: 35px;
        }

        .detail-date {
            display: flex;
            gap: 10px;
            align-items: center;
            color: #245a86;
            font-weight: 700;
            margin-bottom: 25px;
        }

        .detail-date i {
            font-size: 20px;
        }

        .detail-info {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 22px;
            background: #f4f8fd;
            padding: 25px;
            border-radius: 12px;
            margin-bottom: 32px;
        }

        .detail-info-item {
            display: flex;
            gap: 13px;
            align-items: flex-start;
            min-width: 0;
        }

        .detail-info-item i {
            color: #17639c;
            width: 26px;
            flex-shrink: 0;
            font-size: 22px;
            margin-top: 3px;
        }

        .detail-info-item strong {
            display: block;
            color: #103b65;
            font-weight: 800;
            font-size: 13px;
            margin-bottom: 7px;
        }

        .detail-info-item p {
            margin: 0;
            color: #455c72;
            font-size: 14px;
            line-height: 1.7;
            overflow-wrap: anywhere;
        }

        .detail-description h2 {
            color: #103b65;
            font-size: 25px;
            margin-bottom: 16px;
        }

        .detail-description p {
            white-space: pre-line;
            line-height: 1.9;
            color: #455c72;
            margin: 0;
        }

        .detail-actions {
            margin-top: 30px;
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }


        .detail-button.secondary {
            background: #edf3fa;
            color: #103b65;
        }

        .detail-button.secondary:hover {
            background: #dce9f6;
        }

        .detail-empty {
            text-align: center;
            background: #fff;
            border-radius: 14px;
            padding: 65px 25px;
            color: #455c72;
        }

        @media (max-width: 768px) {
            .detail-section {
                padding: 25px 12px 55px;
            }

            .detail-content {
                padding: 22px;
            }

            .detail-info {
                grid-template-columns: 1fr;
                padding: 20px;
                gap: 20px;
            }

            .detail-image,
            .detail-image img {
                height: auto;
                max-width: 100%;
                object-fit: contain;
            }

            .detail-description h2 {
                font-size: 22px;
            }
        }
		
.detail-schedules {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #e6edf5;
}

.detail-schedules h2 {
    color: #103b65;
    font-size: 25px;
    margin-bottom: 12px;
}

.detail-schedules > p {
    color: #455c72;
    line-height: 1.7;
    margin-bottom: 20px;
}

.detail-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e6edf5;
    border-radius: 10px;
}

.detail-schedules-table {
    width: 100%;
    min-width: 780px;
    border-collapse: collapse;
    font-size: 13px;
}

.detail-schedules-table th,
.detail-schedules-table td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid #e6edf5;
    white-space: nowrap;
}

.detail-schedules-table thead {
    background: #103b65;
    color: #fff;
}

.detail-schedules-table tbody th {
    text-align: left;
    font-weight: 700;
    color: #103b65;
}

.detail-schedules-table tbody tr:nth-child(even) {
    background: #f4f8fd;
}

.detail-schedules-table tbody tr:last-child th,
.detail-schedules-table tbody tr:last-child td {
    border-bottom: none;
}
