.homenajes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.homenajes-header {
    text-align: center;
    margin-bottom: 40px;
}

.homenajes-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 300;
}

.homenajes-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Barra de búsqueda */
.busqueda-container {
    max-width: 600px;
    margin: 0 auto 40px;
    display: flex;
    gap: 10px;
}

.busqueda-container input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.busqueda-container input:focus {
    border-color: #3498db;
}

.busqueda-container button {
    padding: 12px 30px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.busqueda-container button:hover {
    background: #2980b9;
}

/* Grid tipo Pinterest/Masonry */
.memoriales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.memorial-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.memorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.memorial-card.destacado {
    border: 2px solid #f39c12;
    position: relative;
}

.memorial-card.destacado::before {
    content: '⭐';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    z-index: 1;
}

.memorial-photo {
    width: 100%;
    height: 250px;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.memorial-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memorial-photo-placeholder {
    font-size: 4rem;
    color: #bdc3c7;
}

.memorial-info {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.memorial-name {
    font-size: 1.3rem;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.memorial-dates {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.memorial-location {
    font-size: 0.85rem;
    color: #95a5a6;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.memorial-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.memorial-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.memorial-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
    margin-top: auto;
}

.memorial-btn:hover {
    background: #2980b9;
}

/* Paginación */
.paginacion {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.paginacion a, .paginacion span {
    padding: 8px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
}

.paginacion a:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.paginacion .actual {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
    font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .memoriales-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .memorial-card.destacado {
        border: 2px solid #f39c12;
        background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
    }
    
    .homenajes-header h1 {
        font-size: 2rem;
    }
}