/* ==========================================
   BLOQUE CAMPAÑAS - RESCOP LANDING
========================================== */

/* Estilos específicos para el componente de campañas de la landing */
.rescop-campaigns-landing {
    padding: 80px 0;
    margin: 0;
    background: white;
    overflow: hidden;
}

.rescop-campaigns-block-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rescop-campaigns-block-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
}

.rescop-campaigns-block-title {
    font-size: clamp(32px, 4vw, 48px) !important;
    font-family: 'Anton', sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: black !important;
    text-transform: uppercase;
    margin: 0 0 2rem 0 !important;
    padding: 0 !important;
}

.rescop-campaigns-block-subtitle {
    font-size: clamp(18px, 2.5vw, 24px) !important;
    font-family: 'Merriweather Sans', serif !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: rgba(0, 0, 0, 0.80) !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rescop-campaigns-block-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.rescop-campaign-block-card {
    background: white;
    border: 1px rgba(0, 0, 0, 0.50) solid;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 500px;
}

.rescop-campaign-block-card:hover {
    transform: translateY(-4px);
}

.rescop-campaign-block-image {
    flex: 0 0 250px;
    width: 100%;
    overflow: hidden;
}

.rescop-campaign-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rescop-campaign-block-card:hover .rescop-campaign-block-image img {
    transform: scale(1.05);
}

.rescop-campaign-block-placeholder {
    width: 100%;
    height: 100%;
    background: #E5E5E5;
    border: 1px rgba(0, 0, 0, 0.30) solid;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

.rescop-campaign-block-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rescop-campaign-block-card-title {
    font-size: 20px !important;
    font-family: 'Anton', sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: black !important;
    text-transform: capitalize !important;
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
    flex: 0 0 auto;
}

.rescop-campaign-block-card-title a {
    color: inherit !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.rescop-campaign-block-card-title a:hover {
    color: #BE252D !important;
}

.rescop-campaign-block-excerpt {
    font-size: 16px !important;
    font-family: 'Merriweather Sans', serif !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: rgba(0, 0, 0, 0.80) !important;
    margin: 0 0 1rem 0 !important;
    padding: 0 !important;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.rescop-campaign-block-footer {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 1rem;
}

.rescop-campaign-block-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 120px;
    height: 40px;
    background: linear-gradient(0deg, #BE252D 0%, #BE252D 100%), #ED2E38;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.rescop-campaign-block-cta:hover {
    background: #a01e24;
    transform: translateY(-1px);
}

.rescop-campaign-block-cta span {
    color: white !important;
    font-size: 12px !important;
    font-family: 'Anton', sans-serif !important;
    font-weight: 400 !important;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

/* Responsive para el bloque de landing */
@media (max-width: 1024px) {
    .rescop-campaigns-block-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .rescop-campaign-block-card {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .rescop-campaigns-landing {
        padding: 60px 0;
    }
    
    .rescop-campaigns-block-container {
        padding: 0 20px;
    }
    
    .rescop-campaigns-block-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .rescop-campaign-block-card {
        height: auto;
        min-height: 400px;
    }
    
    .rescop-campaigns-block-header {
        margin-bottom: 40px;
    }
}

.rescop-campaigns-block {
    padding: 80px 0;
    margin: 0;
    background: white;
    overflow: hidden;
}

.rescop-campaigns-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 600px;
}

.rescop-campaigns-content {
    max-width: 686px;
}

.rescop-campaigns-title {
    font-size: 3.5rem;
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    line-height: 1.4;
    color: #000;
    margin: 0 0 30px 0;
    word-wrap: break-word;
}

.rescop-campaigns-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 40px;
}

.rescop-campaigns-button {
    margin-top: 40px;
}

.rescop-campaigns-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 50px;
    background: linear-gradient(0deg, #BE252D 0%, #BE252D 100%), #ED2E38;
    color: white;
    font-size: 17px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 192px;
    height: 52px;
}

.rescop-campaigns-btn:hover {
    background: #a01e24;
    transform: translateY(-2px);
}

.rescop-campaigns-visual {
    position: relative;
}

.rescop-campaigns-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 500px;
    margin-left: auto;
}

.rescop-campaign-preview-card {
    background: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rescop-campaign-preview-card:hover {
    transform: translateY(-3px);
}

.rescop-campaign-preview-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.rescop-campaign-preview-card img,
.rescop-campaign-preview-placeholder {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: #e5e5e5;
    display: block;
}

.rescop-campaign-preview-title {
    display: block;
    padding: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    color: #333;
}

.rescop-campaigns-placeholder {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 500px;
    margin-left: auto;
}

.rescop-campaigns-placeholder-card {
    background: #e5e5e5;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    height: 180px;
}

/* Layout centrado */
.rescop-campaigns-block.layout-centered .rescop-campaigns-container {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 1200px;
}

.rescop-campaigns-block.layout-centered .rescop-campaigns-preview {
    margin: 0 auto;
    max-width: 600px;
    grid-template-columns: repeat(3, 1fr);
}

/* Layout ancho completo */
.rescop-campaigns-block.layout-full_width .rescop-campaigns-container {
    max-width: 100%;
    padding: 0 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .rescop-campaigns-container {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 0 30px;
    }
    
    .rescop-campaigns-title {
        font-size: 3rem;
    }
    
    .rescop-campaigns-preview {
        margin: 0 auto;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .rescop-campaigns-block {
        padding: 60px 0;
    }
    
    .rescop-campaigns-container {
        padding: 0 20px;
        gap: 40px;
    }
    
    .rescop-campaigns-title {
        font-size: 2.5rem;
    }
    
    .rescop-campaigns-preview {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .rescop-campaigns-btn {
        width: 100%;
        max-width: 300px;
    }
}