/* =========================================
   1. Hero Banner
   ========================================= */

.dynamic-hero {
    position: relative;
    width: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    font-family: 'veterinalia', sans-serif;
}

.dynamic-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 80%;
    color: white;
}

.dynamic-hero .hero-content h1 {
    font-size: 3em;
    margin-bottom: 15px;
    font-weight: normal;
    line-height: 1.2;
    color: white;
    font-family: 'veterinalia', sans-serif;
}

.dynamic-hero .hero-content p {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.5;
    color: white;
    font-family: 'veterinalia', sans-serif;
}

.no-category-found {
    padding: 20px;
    text-align: center;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin: 20px 0;
    font-family: sans-serif;
}

@media (max-width: 768px) {
    .dynamic-hero {
        min-height: 300px;
    }
    .dynamic-hero .hero-content h1 {
        font-size: 2.2em;
    }
    .dynamic-hero .hero-content p {
        font-size: 1.1em;
    }
}

@media (max-width: 576px) {
    .dynamic-hero .hero-content h1 {
        font-size: 1.8em;
    }
    .dynamic-hero .hero-content p {
        font-size: 1em;
    }
}

/* =========================================
   2. Grid de Resultados
========================================= */
.ppf-results-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.ppf-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.ppf-loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
    font-size: 1.2rem;
    color: #d72660;
    font-weight: 600;
}

/* =========================================
   3. Cards de Profesionales
========================================= */
.ppf-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.ppf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(215, 38, 96, 0.15);
}

.ppf-card-header {
    display: flex;
    padding: 20px;
    gap: 15px;
    border-bottom: 1px solid #f8f9fa;
    align-items: center;
}

.ppf-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ffe0ef;
    background: #f8f9fa;
}

.ppf-card-title-area {
    flex-grow: 1;
}

.ppf-card-name {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
    color: #111827;
    font-family: 'veterinalia', sans-serif;
    font-weight: normal;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.ppf-card-name:hover {
    color: #d72660;
}

.ppf-card-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: #666;
}

.ppf-stars {
    color: #ffc107;
}

.ppf-card-body {
    padding: 20px;
    flex-grow: 1;
}

.ppf-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ppf-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: #444;
}

.ppf-contact-list i {
    color: #f7a1c4;
    width: 16px;
    text-align: center;
}

.ppf-card-footer {
    padding: 15px 20px;
    background: #fdfdfd;
    border-top: 1px dashed #eee;
    min-height: 50px;
    /* Reservado para el plugin de citas */
}

/* =========================================
   4. Paginación
========================================= */
.ppf-pagination {
    text-align: center;
    margin-top: 40px;
}

.ppf-btn-load-more {
    background: transparent;
    border: 2px solid #d72660;
    color: #d72660;
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ppf-btn-load-more:hover {
    background: #d72660;
    color: #fff;
}

/* =========================================
   5. Skeleton Loading
========================================= */
.ppf-skeleton-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    overflow: hidden;
    height: 250px;
}

.ppf-skeleton-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ppf-skeleton-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f1f5f9;
}

.ppf-skeleton-title-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ppf-skeleton-name {
    width: 60%;
    height: 18px;
    background: #f1f5f9;
    border-radius: 4px;
}

.ppf-skeleton-rating {
    width: 40%;
    height: 14px;
    background: #f1f5f9;
    border-radius: 4px;
}

.ppf-skeleton-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
    flex-grow: 1;
}

.ppf-skeleton-line {
    width: 80%;
    height: 14px;
    background: #f1f5f9;
    border-radius: 4px;
}

.ppf-skeleton-line.short {
    width: 50%;
}

.ppf-skeleton-footer {
    height: 30px;
    background: #f1f5f9;
    border-radius: 4px;
    margin-top: auto;
}

/* Shimmer Animation Effect */
.ppf-skeleton-card::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 20%,
        rgba(255, 255, 255, 0.9) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: ppf-shimmer 1.5s infinite;
}

@keyframes ppf-shimmer {
    100% {
        transform: translateX(100%);
    }
}
