/* features/destacados/destacados.css */

body.destacados-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: #f8fafc;
    margin: 0;
}

.destacados-container {
    flex: 1 0 auto;
    padding: 6rem 2rem 5rem;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
}

.destacados-title {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 800;
}

.destacados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
}

.destacados-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.destacados-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: #00667e;
}

.destacados-card-media {
    display: block;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background-color: #f1f5f9;
}

.destacados-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.destacados-card:hover .destacados-card-media img {
    transform: scale(1.03);
}

.destacados-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.destacados-card-cat {
    font-size: 0.75rem;
    color: #00667e;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.destacados-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.destacados-card-title a {
    color: inherit;
    text-decoration: none;
}

.destacados-card-title a:hover {
    color: #00667e;
}

.destacados-card-desc {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.4;
    margin: 0 0 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.destacados-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 1rem;
    margin-top: auto;
    gap: 0.5rem;
}

.destacados-card-loc {
    font-size: 0.78rem;
    color: #475569;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.destacados-card-loc .loc-pin {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.destacados-card-loc .loc-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.destacados-btn-ver {
    background: #e0f2fe;
    color: #00667e;
    padding: 0.45rem 0.9rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.destacados-btn-ver:hover {
    background: #bae6fd;
    color: #004d5f;
}

/* Paginación */
.destacados-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    width: 100%;
}

.pagination-btn {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    color: #374151;
    padding: 0.5rem 0.95rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.pagination-btn:hover:not(.disabled) {
    border-color: #00667e;
    color: #00667e;
    background-color: #f0fdf4;
}

.pagination-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background-color: #f1f5f9;
    pointer-events: none;
}

.pagination-info {
    font-size: 0.88rem;
    color: #64748b;
    font-weight: 500;
}

/* Sin resultados */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    font-size: 1rem;
    padding: 3rem 1rem;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
}

/* Barra Fija Inferior */
.fixed-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1050;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.08);
}

.bottom-nav-link {
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.bottom-nav-link:hover,
.bottom-nav-link.active {
    color: #00667e;
}

.bottom-nav-separator {
    color: #cbd5e1;
    font-weight: 300;
}

.page-footer-credits {
    background-color: #ffffff;
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    z-index: 11;
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    margin-bottom: calc(55px + env(safe-area-inset-bottom));
}

.footer-text {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.4;
    margin: 0;
    width: 100%;
    max-width: 1200px;
}

@media (min-width: 769px) {
    .fixed-bottom-nav {
        justify-content: center;
        gap: 3rem;
    }

    .page-footer-credits {
        margin-bottom: 0;
    }
}