/*
 Theme Name:   GeneratePress Child - Guía Pro Argentina
 Theme URI:    https://generatepress.com
 Description:  Theme hijo para el proyecto Guía Pro (esguia.com.ar)
 Author:       Level Up Marketing
 Template:     generatepress
 Version:      1.0
*/

/*
 Theme Name:   GeneratePress Child - Guía Pro Argentina
 Theme URI:    https://generatepress.com
 Description:  Theme hijo para el proyecto Guía Pro (esguia.com.ar)
 Author:       Level Up Marketing
 Template:     generatepress
 Version:      1.1
*/

.gp-results-grid {
    display: grid;    
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 25px;
    margin: 40px 0;
    width: 100%;
}

.gp-archive-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gp-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    height: 100%; 
}

.gp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    border-color: #0073aa;
    z-index: 2;
}

.gp-card-premium {
    border: 2px solid #b8e6ff;
    background: linear-gradient(to bottom, #ffffff 0%, #f0f9ff 100%);
}

.gp-card-link {
    text-decoration: none !important; 
    color: inherit !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gp-card-body {
    padding: 20px 25px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.gp-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.gp-card-badge {
    background: #f0f2f5;
    color: #555;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 50px;
}

.gp-premium-star {
    color: #0073aa;
    font-weight: 800;
    font-size: 0.7rem;
    background: #e7f5fe;
    padding: 4px 8px;
    border-radius: 50px;
}

.gp-card-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    line-height: 1.3;  
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.6em; 
}

.gp-card-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gp-card-footer {
    margin-top: auto;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    text-align: right;
}

.gp-btn-ver {
    color: #0073aa;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s;
}

.gp-card:hover .gp-btn-ver {
    color: #004a6e;
    text-decoration: underline;
}

@media(max-width: 480px) {
    .gp-results-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .gp-card-body {
        padding: 20px;
    }
}

.gp-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 50px; 
}

.gp-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px; 
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}

.gp-carousel-track::-webkit-scrollbar {
    display: none;
}

.gp-cat-card {
    flex: 0 0 calc(25% - 15px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    scroll-snap-align: start;
    border: 1px solid #eee;
    height: 280px; 
    justify-content: space-between;
}

.gp-cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    border-color: #1E67F7; 
}

.gp-cat-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.gp-cat-icon-wrapper {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gp-icon-circle {
    width: 90px;
    height: 90px;
    background: #FFE600; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(255, 230, 0, 0.4);
    position: relative;
}

.gp-icon-circle .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #1a1a1a; 
}

.gp-cat-btn {
    display: block;
    width: 100%;
    background: rgba(30, 103, 247, 0.1); 
    color: #1E67F7; 
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
}

.gp-cat-btn:hover {
    background: #1E67F7;
    color: #fff;
}

.gp-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    color: #1E67F7;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.gp-carousel-arrow:hover {
    background: #1E67F7;
    color: #fff;
    border-color: #1E67F7;
}

.gp-carousel-arrow.gp-prev { left: 0; }
.gp-carousel-arrow.gp-next { right: 0; }

.gp-carousel-arrow .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .gp-carousel-wrapper {
        padding: 0; 
        margin: 20px 0;
    }
    
    .gp-carousel-track {
        gap: 15px;
        padding: 0 20px 20px 20px; 
    }
    
    .gp-cat-card {
        flex: 0 0 85%; 
        height: 260px;
    }
    
    .gp-carousel-arrow {
        display: none;
    }
}