.historias-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.hero-section {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #f5f5f5;
    margin-bottom: 3rem;
    border-radius: 8px;
}

.hero-section h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.historias-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.historia-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.historia-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.historia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.historia-card:hover .historia-image img {
    transform: scale(1.05);
}

.historia-content {
    padding: 2rem;
}

.historia-content h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.historia-date {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.historia-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.historia-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.location {
    color: #666;
    font-size: 0.9rem;
}

.read-more {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.read-more:hover {
    background-color: var(--primary-color);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
}

.page-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-number.current {
    background-color: var(--primary-color);
    color: #fff;
}

.page-number:not(.current):hover {
    background-color: #f5f5f5;
}

.prev-page {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.prev-page:hover {
    color: var(--primary-color);
}

.next-page {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.next-page:hover {
    color: var(--primary-color);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    max-height: 90vh;
    overflow-y: auto;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .historias-main {
        padding: 1rem;
        margin-top: 4.5rem;
    }

    .hero-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .historia-card {
        margin-bottom: 1.5rem;
    }

    .historia-image {
        height: 250px;
    }

    .historia-content {
        padding: 1.5rem;
    }

    .historia-content h2 {
        font-size: 1.5rem;
    }

    .pagination {
        gap: 0.75rem;
        margin: 2rem 0;
    }

    .page-number {
        width: 35px;
        height: 35px;
    }
}