@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* ============================================
   SECCIÓN CARDS PRINCIPAL
   ============================================ */
.codepres-biz-section {
    width: 100%;
    background: #ffffff;
    padding: 35px 15px;
    font-family: 'Poppins', sans-serif;
    border-top: 1px solid #f0f0f0;
}

.codepres-biz-container {
    max-width: 1200px;
    margin: 0 auto;
}

.codepres-biz-header {
    text-align: center;
    margin-bottom: 25px;
}

.codepres-biz-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 122, 31, 0.08);
    border: 1px solid rgba(0, 122, 31, 0.15);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    color: #007A1F;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.codepres-biz-title {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 800;
    color: #111;
    margin: 0;
    line-height: 1.2;
}

.codepres-biz-subtitle {
    font-size: 13px;
    color: #777;
    margin: 6px 0 0 0;
}

.codepres-biz-slider {
    position: relative;
    overflow: hidden;
}

.codepres-biz-track {
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.codepres-biz-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    align-items: stretch;
}

@media (max-width: 1024px) and (min-width: 769px) {
    .codepres-biz-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.codepres-biz-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #F0F0F0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.codepres-biz-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.1);
}

.codepres-biz-imgwrap {
    position: relative;
    width: 100%;
    height: 100px;
    overflow: hidden;
    flex-shrink: 0;
}

.codepres-biz-imgwrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.codepres-biz-card:hover .codepres-biz-imgwrap img {
    transform: scale(1.08);
}

.codepres-biz-imgfallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
}

.codepres-biz-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #007A1F, #006018);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,122,31,0.3);
}

.codepres-biz-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.codepres-biz-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.codepres-biz-cat {
    font-size: 10px;
    font-weight: 700;
    color: #007A1F;
    background: rgba(0,122,31,0.08);
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.codepres-biz-rating {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.codepres-biz-name {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.codepres-biz-desc {
    font-size: 11px;
    color: #777;
    line-height: 1.4;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.codepres-biz-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #666;
    margin-bottom: 10px;
    margin-top: auto;
}

.codepres-biz-location svg {
    flex-shrink: 0;
}

.codepres-biz-actions {
    display: flex;
    gap: 6px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.codepres-biz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    flex: 1;
}

.codepres-biz-btn-wa {
    background: #007A1F;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,122,31,0.2);
}

.codepres-biz-btn-wa:hover {
    background: #064D1F;
    transform: translateY(-2px);
}

.codepres-biz-btn-web {
    background: #F5F5F5;
    color: #555;
    border: 1px solid #e0e0e0;
}

.codepres-biz-btn-web:hover {
    background: #fff;
    border-color: #007A1F;
    color: #007A1F;
}

.codepres-biz-btn-ig {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(220,39,67,0.2);
}

.codepres-biz-btn-ig:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.codepres-biz-btn-compact {
    padding: 8px;
    justify-content: center;
}

.codepres-biz-btn-compact svg {
    width: 18px;
    height: 18px;
}

/* Placeholder */
.codepres-biz-placeholder {
    min-height: 100%;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    border: 2px dashed #e0e0e0;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.codepres-biz-placeholder:hover {
    border-color: #007A1F;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e9 100%);
}

.codepres-biz-placeholder-inner {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    text-align: center;
}

.codepres-biz-placeholder-icon {
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007A1F;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.codepres-biz-placeholder-text {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    line-height: 1.3;
}

/* ============================================
   ESTADO VACÍO
   ============================================ */
.codepres-empty-state {
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e9 100%);
    border: 2px dashed #007A1F;
    border-radius: 16px;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.codepres-empty-main {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.codepres-empty-icon {
    font-size: 32px;
    line-height: 1;
}

.codepres-empty-text h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111;
}

.codepres-empty-text p {
    margin: 4px 0 0 0;
    font-size: 12px;
    color: #666;
}

.codepres-empty-btn {
    background: #007A1F;
    color: #fff;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

.codepres-empty-btn:hover {
    background: #064D1F;
    transform: translateY(-2px);
}

.codepres-empty-benefits {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.codepres-benefit {
    font-size: 12px;
    color: #007A1F;
    font-weight: 600;
    background: rgba(0,122,31,0.08);
    padding: 6px 14px;
    border-radius: 20px;
}

/* ============================================
   BANNERS HORIZONTALES
   ============================================ */
.codepres-banner-section {
    width: 90%;
    height: 100px;
    margin: 15px auto;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    background: #000;
}

.codepres-banner-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 0;
}

.codepres-banner-card.active {
    opacity: 1;
    z-index: 1;
}

.codepres-banner-main-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
}

.codepres-banner-overlay {
    background: linear-gradient(90deg, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.88) 35%, rgba(0,0,0,0.70) 70%, rgba(0,0,0,0.45) 100%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    padding: 10px 30px;
    position: relative;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 2;
}

.codepres-banner-badge {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.85);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.15);
    z-index: 2;
}

.codepres-banner-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    padding-top: 2px;
}

.codepres-banner-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.codepres-banner-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50%;
    text-shadow: 0 0 14px rgba(255,255,255,0.25), 0 2px 6px rgba(0,0,0,0.4);
}

.codepres-banner-badges {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

.codepres-banner-badge-cat {
    background: #007A1F;
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,122,31,0.3);
}

.codepres-banner-badge-offer {
    background: linear-gradient(135deg, #f8a20d, #e67e22);
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(248,162,13,0.3);
}

.codepres-banner-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 700;
    color: #f8a20d;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.codepres-banner-desc {
    font-size: 10px;
    color: rgba(255,255,255,0.80);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.codepres-banner-location {
    font-size: 9px;
    color: rgba(255,255,255,0.65);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.codepres-banner-location svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.codepres-banner-actions {
    position: absolute;
    bottom: 8px;
    right: 30px;
    z-index: 3;
    display: flex;
    gap: 6px;
    align-items: center;
}

.codepres-banner-actions a {
    pointer-events: auto;
}

.codepres-banner-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.codepres-banner-btn:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
}

.codepres-banner-btn-wa {
    background: #007A1F;
    border-color: #007A1F;
}

.codepres-banner-btn-wa:hover {
    background: #064D1F;
    border-color: #064D1F;
}

.codepres-banner-btn-ig {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: rgba(255,255,255,0.15);
}

.codepres-banner-btn-ig:hover {
    filter: brightness(1.1);
}

/* ============================================
   BANNER CTA - TU NEGOCIO PUEDE ESTAR AQUÍ
   ============================================ */
.codepres-banner-cta {
    background: transparent !important;
}

.codepres-banner-cta-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-decoration: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    transition: all 0.3s ease;
    padding: 0 30px;
    box-sizing: border-box;
    z-index: 2;
}

.codepres-banner-cta-link:hover {
    border-color: #007A1F;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e9 100%);
    box-shadow: 0 8px 25px rgba(0,122,31,0.15);
}

.codepres-banner-cta-plus {
    width: 44px;
    height: 44px;
    background: #007A1F;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,122,31,0.3);
    transition: all 0.3s ease;
}

.codepres-banner-cta-link:hover .codepres-banner-cta-plus {
    transform: scale(1.1);
    background: #064D1F;
}

.codepres-banner-cta-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 3px 0;
    letter-spacing: 0.3px;
}

.codepres-banner-cta-info p {
    font-size: 12px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .codepres-biz-section {
        padding: 30px 12px;
    }
    .codepres-biz-grid {
        display: flex;
        gap: 12px;
    }
    .codepres-biz-card {
        min-width: calc(50% - 6px);
        max-width: calc(50% - 6px);
        flex: 1;
        min-height: 260px;
    }
    .codepres-biz-title {
        font-size: 20px;
    }
    .codepres-biz-badge {
        font-size: 10px;
        padding: 5px 12px;
    }
    .codepres-biz-imgwrap {
        height: 90px;
    }

    /* Empty state */
    .codepres-empty-state {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }
    .codepres-empty-main {
        flex-direction: column;
    }
    .codepres-empty-benefits {
        justify-content: center;
        width: 100%;
    }

    /* Banners */
    .codepres-banner-section {
        width: 95%;
        height: auto;
        min-height: 90px;
    }
    .codepres-banner-overlay {
        padding: 10px 14px;
    }
    .codepres-banner-name {
        font-size: 14px;
        max-width: 100%;
    }
    .codepres-banner-title-row {
        gap: 6px;
    }
    .codepres-banner-badges {
        gap: 4px;
    }
    .codepres-banner-badge-cat,
    .codepres-banner-badge-offer {
        font-size: 7px;
        padding: 1px 6px;
    }
    .codepres-banner-rating {
        font-size: 9px;
    }
    .codepres-banner-rating svg {
        width: 10px;
        height: 10px;
    }
    .codepres-banner-desc {
        font-size: 9px;
    }
    .codepres-banner-location {
        font-size: 8px;
    }
    .codepres-banner-actions {
        bottom: 6px;
        right: 14px;
        gap: 5px;
    }
    .codepres-banner-btn {
        width: 28px;
        height: 28px;
    }
    .codepres-banner-btn svg {
        width: 14px;
        height: 14px;
    }
    .codepres-banner-badge {
        top: 6px;
        right: 8px;
        font-size: 6px;
        padding: 1px 6px;
    }

    /* CTA - diseño vertical tipo card vacía */
    .codepres-banner-cta-link {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
        text-align: center;
    }
    .codepres-banner-cta-plus {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }
    .codepres-banner-cta-info h3 {
        font-size: 12px;
        margin: 0;
        line-height: 1.3;
    }
    .codepres-banner-cta-info p {
        font-size: 10px;
        margin-top: 2px;
    }
}

@media (max-width: 520px) {
    .codepres-biz-imgwrap {
        height: 85px;
    }
    .codepres-biz-body {
        padding: 10px;
    }
    .codepres-banner-name {
        font-size: 13px;
    }
    .codepres-banner-desc {
        font-size: 8px;
    }
    .codepres-banner-location {
        font-size: 7px;
    }
    .codepres-banner-cta-info h3 {
        font-size: 11px;
    }
    .codepres-banner-cta-plus {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
    .codepres-banner-cta-info p {
        font-size: 9px;
    }
}

@media (max-height: 500px) and (orientation: landscape) {
    .codepres-biz-imgwrap {
        height: 80px;
    }
    .codepres-biz-body {
        padding: 10px;
    }
}