/* Business Card QR Styles - Zero Margins Version */
:root { 
    --bcqr-accent: #001A70; 
    --bcqr-yellow: #e0e02a;
}

/* Reset completo - SIN MÁRGENES */
.bcqr-card {
    font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #111;
    display: grid;
    place-items: center;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}

.bcqr-card-inner {
    width: 100% !important;
    background: #fff;
    border-radius: 20px !important;
    box-shadow: 0 8px 30px rgba(0,0,0,.08) !important;
    overflow: hidden;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* Header con logo - compacto */
.bcqr-marcial-top {
    background: var(--bcqr-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px !important;
    padding: 12px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.bcqr-logo-top {
    max-width: 80% !important;
    width: auto !important;
    height: auto;
    display: block;
    margin: 0 auto !important;
}

/* Información personal - ultra compacta */
.bcqr-header {
    display: grid;
    grid-template-columns: 80px 1fr !important;
    gap: 12px !important;
    align-items: center;
    padding: 16px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.bcqr-avatar {
    width: 80px !important;
    height: 80px !important;
    border-radius: 999px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.bcqr-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bcqr-name {
    font-size: 24px !important;
    font-weight: 600;
    line-height: 1.3 !important; /* CORREGIDO: para que no corte letras como "g" */
    letter-spacing: -.3px;
    white-space: nowrap;
    margin: 0;
    color: var(--bcqr-accent);
    overflow: hidden;
    text-overflow: ellipsis;
    padding-top: 2px !important; /* Extra espacio para letras que bajan */
}

.bcqr-sub {
    margin-top: 2px !important;
    font-weight: 600;
    font-size: 16px !important;
    line-height: 1.3 !important; /* CORREGIDO: misma corrección */
    white-space: nowrap;
    margin: 0;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-top: 1px !important; /* Extra espacio */
}

/* Lista de información - ultra compacta */
.bcqr-info-list {
    padding: 8px 16px 0 16px !important;
    display: grid;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.bcqr-row {
    display: flex;
    align-items: center;
    gap: 10px !important;
    text-decoration: none;
    color: #111;
    transition: opacity 0.2s ease;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 40px !important; /* Asegura altura mínima para el texto */
}

.bcqr-ico {
    width: 32px !important;
    height: 32px !important;
    border-radius: 999px;
    flex-shrink: 0;
}

.bcqr-txt {
    font-size: 15px !important;
    font-weight: 500;
    overflow-wrap: anywhere;
    word-break: keep-all !important;
    line-height: 1.4 !important; /* CORREGIDO: más espacio entre líneas */
    margin: 0;
    flex: 1;
    min-width: 0;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 2px 0 !important; /* Espacio extra arriba y abajo */
}

/* Botones - compactos */
.bcqr-pills {
    display: grid;
    gap: 12px !important;
    padding: 16px 16px 0 16px !important;
    justify-items: center;
    width: 100% !important;
    box-sizing: border-box !important;
}

.bcqr-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px !important;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    width: 100% !important;
    max-width: 260px !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease;
    font-size: 14px !important;
    min-height: 48px !important;
    line-height: 1.2 !important; /* CORREGIDO: para texto de botones */
}

.bcqr-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.bcqr-pill-blue {
    background: var(--bcqr-accent);
    color: #fff;
}

.bcqr-pill-yellow {
    background: var(--bcqr-yellow, #e0e02a) !important;
    color: #111;
}

/* QR Section - compacto */
.bcqr-qr {
    display: grid;
    place-items: center;
    padding: 16px 0 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.bcqr-qr img {
    width: min(160px, 45vw) !important;
    height: auto;
    border-radius: 8px !important;
    background: #fff;
    padding: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    display: block;
}

/* ===== SOLO PARA PC ===== */
@media (min-width: 769px) {
    .bcqr-card {
        padding: 20px !important;
        max-width: 680px !important;
        margin: 24px auto !important;
    }
    
    .bcqr-card-inner {
        width: 100% !important;
    }
    
    /* Tamaños más grandes para PC */
    .bcqr-header {
        grid-template-columns: 110px 1fr !important;
        gap: 18px !important;
        padding: 22px 28px !important;
    }
    
    .bcqr-avatar {
        width: 110px !important;
        height: 110px !important;
    }
    
    .bcqr-name {
        font-size: 34px !important;
        line-height: 1.2 !important;
        padding-top: 4px !important;
    }
    
    .bcqr-sub {
        font-size: 20px !important;
        line-height: 1.2 !important;
        padding-top: 2px !important;
    }
    
    .bcqr-info-list {
        padding: 12px 28px 0 28px !important;
        gap: 18px !important;
    }
    
    .bcqr-ico {
        width: 42px !important;
        height: 42px !important;
    }
    
    .bcqr-txt {
        font-size: 18px !important;
        line-height: 1.4 !important;
        padding: 3px 0 !important;
    }
    
    .bcqr-pills {
        padding: 24px 28px 0 28px !important;
        gap: 14px !important;
    }
    
    .bcqr-pill {
        padding: 16px 28px !important;
        font-size: 16px !important;
        max-width: 280px !important;
        min-height: 56px !important;
    }
    
    .bcqr-marcial-top {
        min-height: 120px !important;
        padding: 18px 0 !important;
    }
    
    .bcqr-logo-top {
        max-width: 70% !important;
    }
    
    .bcqr-qr {
        padding: 24px 0 32px !important;
    }
    
    .bcqr-qr img {
        width: min(200px, 50vw) !important;
        padding: 12px !important;
    }
}

/* ===== PARA MÓVIL ===== */
@media (max-width: 768px) {
    .bcqr-card {
        padding: 0 !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .bcqr-card-inner {
        border-radius: 16px !important;
    }
}

/* Mobile Responsive - iPhone 11 específico */
@media (max-width: 414px) {
    .bcqr-card-inner {
        border-radius: 16px !important;
    }
    
    .bcqr-header {
        grid-template-columns: 70px 1fr !important;
        gap: 10px !important;
        padding: 14px 12px !important;
    }
    
    .bcqr-avatar {
        width: 70px !important;
        height: 70px !important;
    }
    
    .bcqr-name {
        font-size: 22px !important;
        line-height: 1.3 !important;
        padding-top: 3px !important;
    }
    
    .bcqr-sub {
        font-size: 15px !important;
        line-height: 1.3 !important;
        padding-top: 1px !important;
    }
    
    .bcqr-info-list {
        padding: 6px 12px 0 12px !important;
        gap: 10px !important;
    }
    
    .bcqr-ico {
        width: 30px !important;
        height: 30px !important;
    }
    
    .bcqr-txt {
        font-size: 14px !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
        padding: 2px 0 !important;
    }
    
    .bcqr-pills {
        padding: 14px 12px 0 12px !important;
        gap: 10px !important;
    }
    
    .bcqr-pill {
        padding: 10px 18px !important;
        font-size: 13px !important;
        max-width: 240px !important;
        min-height: 44px !important;
    }
    
    .bcqr-marcial-top {
        min-height: 90px !important;
        padding: 10px 0 !important;
    }
    
    .bcqr-logo-top {
        max-width: 85% !important;
    }
    
    .bcqr-qr {
        padding: 14px 0 18px !important;
    }
    
    .bcqr-qr img {
        width: min(150px, 42vw) !important;
        box-shadow: 0 3px 12px rgba(0,0,0,0.1) !important;
    }
}

/* Para pantallas muy pequeñas (iPhone SE, etc) */
@media (max-width: 320px) {
    .bcqr-card-inner {
        border-radius: 14px !important;
    }
    
    .bcqr-header {
        grid-template-columns: 60px 1fr !important;
        gap: 8px !important;
        padding: 12px 10px !important;
    }
    
    .bcqr-avatar {
        width: 60px !important;
        height: 60px !important;
    }
    
    .bcqr-name {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
    
    .bcqr-txt {
        font-size: 13px !important;
        line-height: 1.4 !important;
        padding: 2px 0 !important;
    }
    
    .bcqr-pill {
        padding: 8px 16px !important;
        font-size: 12px !important;
    }
}

/* Fuerza eliminación de cualquier margen/padding externo */
body .bcqr-card,
body .bcqr-card-inner,
html .bcqr-card,
html .bcqr-card-inner {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Elimina cualquier espacio del contenedor de WordPress */
.wp-block-shortcode,
.entry-content,
.main-content,
.content-area {
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}