/* ============================================
   Display Fields Styles
   ============================================ */

/* FIELD (cada campo individual) */
.cpv-field {
    margin-bottom: 12px;
}

.cpv-field:last-child {
    margin-bottom: 0;
}

.cpv-field-content {
    /* Wrapper del contenido real del campo */
}

/* ============================================
   FIELD: FEATURED IMAGE
   ============================================ */
.cpv-field-featured-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    margin-bottom: 0;
    height: 250px;
}

.cpv-field-featured-image .cpv-field-content {
    display: block;
    height: 100%;
}

.cpv-field-featured-image a {
    display: block;
    height: 100%;
}

.cpv-field-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.cpv-view-row:hover .cpv-field-featured-image img {
    transform: scale(1.05);
}

/* Altura de imagen en modo tabla */
.cpv-display-table .cpv-field-featured-image {
    height: 80px;
}

.cpv-display-table .cpv-field-featured-image img {
    width: auto;
    max-width: 120px;
}

/* ============================================
   FIELD: TITLE
   ============================================ */
.cpv-field-title .cpv-field-content {
    margin: 0;
}

.cpv-field-title h2,
.cpv-field-title h3,
.cpv-field-title h4,
.cpv-field-title h5,
.cpv-field-title h6 {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #1d2327;
}

.cpv-field-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cpv-field-title a:hover {
    color: #2271b1;
}

/* ============================================
   FIELD: EXCERPT
   ============================================ */
.cpv-field-excerpt .cpv-field-content {
    font-size: 15px;
    line-height: 1.6;
    color: #50575e;
}

.cpv-field-excerpt .cpv-read-more {
    display: inline-block;
    margin-top: 10px;
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.cpv-field-excerpt .cpv-read-more:hover {
    color: #135e96;
    text-decoration: underline;
}

/* ============================================
   FIELD: DATE
   ============================================ */
.cpv-field-date .cpv-field-content {
    font-size: 14px;
    color: #646970;
}

.cpv-field-date a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cpv-field-date a:hover {
    color: #2271b1;
}

/* ============================================
   FIELD: AUTHOR
   ============================================ */
.cpv-field-author .cpv-field-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #646970;
}

.cpv-field-author .cpv-author-avatar {
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
    line-height: 0;
}

.cpv-field-author .cpv-author-avatar img {
    display: block;
}

.cpv-field-author a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cpv-field-author a:hover {
    color: #2271b1;
}

/* ============================================
   FIELD: CATEGORIES
   ============================================ */
.cpv-field-categories .cpv-field-content {
    font-size: 14px;
    color: #646970;
}

.cpv-field-categories a {
    color: #2271b1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cpv-field-categories a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* ============================================
   FIELD: TAGS
   ============================================ */
.cpv-field-tags .cpv-field-content {
    font-size: 13px;
    color: #646970;
}

.cpv-field-tags a {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f1;
    color: #2c3338;
    text-decoration: none;
    border-radius: 3px;
    margin-right: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.cpv-field-tags a:hover {
    background: #2271b1;
    color: #fff;
}

/* ============================================
   FIELD: CUSTOM LINK
   ============================================ */
.cpv-field-custom-link .cpv-field-content {
    margin-top: 15px;
}

.cpv-field-custom-link a {
    display: inline-block;
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.cpv-field-custom-link a:hover {
    background: #135e96;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .cpv-field-title h2,
    .cpv-field-title h3,
    .cpv-field-title h4,
    .cpv-field-title h5,
    .cpv-field-title h6 {
        font-size: 18px;
    }
    
    .cpv-field-excerpt .cpv-field-content {
        font-size: 14px;
    }
}